/* C.L.E.A.N Events: conference landing and registration. Builds on cwo-base.css. */

/* Hero: conference photo with the new book breaking out of its frame */
.ce-hero .cwo-hero__inner { padding-bottom: 96px; }
.ce-hero .cwo-lede strong { color: #fff; }
.ce-hero__art { display: flex; align-items: center; justify-content: flex-end; min-height: 520px; }
.ce-hero__photo { width: 86%; height: 100%; max-height: 600px; object-fit: cover; object-position: 50% 20%; border-radius: 120px 4px 4px 4px; }
.ce-hero__book {
	position: absolute; left: 0; bottom: -64px; width: 38%; max-width: 210px;
	transform: rotate(-6deg); border-radius: 3px;
	box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Facts strip in C.L.E.A.N Gold */
.ce-facts { background: var(--cwo-gold); color: var(--cwo-ink); position: relative; z-index: 0; }
.ce-facts__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; }
.ce-facts__row > div { padding: 22px 22px 22px 0; border-right: 1px solid rgba(27, 31, 41, .2); }
.ce-facts__row > div + div { padding-left: 22px; }
.ce-facts__row > div:last-child { border-right: 0; }
.ce-facts dt { font-family: var(--cwo-sub); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(27, 31, 41, .75); }
.ce-facts dd { margin: 4px 0 0; font-family: var(--cwo-sub); font-weight: 600; font-size: 16px; line-height: 1.35; }
.ce-facts dd small { display: block; font-family: var(--cwo-body); font-weight: 400; font-size: 15px; }

/* Pillars: the logo's tiles carry the acronym */
.ce-pillars { padding: clamp(72px, 9vw, 116px) 0 clamp(56px, 7vw, 88px); background: var(--cwo-surface); }
.ce-pillars__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.ce-pillars__list li { padding: 0 22px 0 0; margin: 0; }
.ce-pillars__list li + li { padding-left: 22px; border-left: 1px solid var(--cwo-line); }
.ce-pillars__tile {
	display: grid; place-items: center; width: 76px; height: 76px; border-radius: 38px 38px 38px 0;
	font-family: var(--cwo-display); font-weight: 700; font-size: 40px; line-height: 1; color: #fff;
}
.ce-pillars__list li:nth-child(1) .ce-pillars__tile { background: var(--cwo-orange); }
.ce-pillars__list li:nth-child(2) .ce-pillars__tile { background: var(--cwo-gold); color: var(--cwo-ink); }
.ce-pillars__list li:nth-child(3) .ce-pillars__tile { background: var(--cwo-purple); }
.ce-pillars__list li:nth-child(4) .ce-pillars__tile { background: var(--cwo-leaf); }
.ce-pillars__list li:nth-child(5) .ce-pillars__tile { background: var(--cwo-green); }
.ce-pillars__list strong { display: block; margin: 18px 0 6px; font-family: var(--cwo-sub); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cwo-ink); }
.ce-pillars__list p { font-size: 16px; color: var(--cwo-muted); margin: 0; }

/* Past conferences */
.ce-gallery { padding: 0 0 clamp(64px, 8vw, 104px); background: var(--cwo-surface); }
.ce-gallery .cwo-h2 { max-width: 16em; }
.ce-gallery__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.ce-gallery__grid figure { margin: 0; overflow: hidden; border-radius: var(--cwo-r); }
.ce-gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
.ce-gallery__grid figure:first-child { grid-row: span 2; border-radius: 4px 4px 4px 96px; }
.ce-gallery__grid--3 { grid-template-columns: 1.4fr 1fr; }
.ce-gallery__grid--4 figure:nth-child(4) { grid-column: span 2; }

/* Book launch */
.ce-launch { padding: clamp(64px, 8vw, 104px) 0; background: var(--cwo-ground); }
.ce-launch__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ce-launch__cover { margin: 0; justify-self: center; transform: rotate(-3deg); }
.ce-launch__cover img { width: min(340px, 70vw); border-radius: 3px; box-shadow: 0 36px 60px -30px rgba(27, 31, 41, .7); }
.ce-launch__copy { max-width: 34em; }
.ce-launch__copy .cwo-h2 { margin-bottom: 0; }
.ce-launch__copy .cwo-tagline { color: var(--cwo-green-2); }
.ce-launch__prices { list-style: none; margin: 26px 0 18px; padding: 0; display: flex; border-top: 1px solid var(--cwo-line); border-bottom: 1px solid var(--cwo-line); }
.ce-launch__prices li { flex: 1; padding: 14px 0; margin: 0; display: flex; flex-direction: column; }
.ce-launch__prices li + li { padding-left: 20px; border-left: 1px solid var(--cwo-line); }
.ce-launch__prices span { font-family: var(--cwo-sub); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cwo-muted); font-weight: 700; }
.ce-launch__prices strong { font-family: var(--cwo-display); font-weight: 700; font-size: 38px; line-height: 1.15; color: var(--cwo-green); }
.ce-launch__note { font-size: 17px; }

/* Registration */
.ce-register { padding: clamp(64px, 9vw, 110px) 0; background: var(--cwo-green-tint); scroll-margin-top: 80px; }
.ce-register__head { max-width: 760px; margin-bottom: 30px; }
.ce-register__head .cwo-h2 { margin-bottom: 12px; }
.ce-register__head p { color: var(--cwo-text); margin: 0; }
.ce-form, .ce-success { max-width: 820px; }

.ce-progress { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: step; }
.ce-progress li { counter-increment: step; margin: 0; padding-top: 12px; border-top: 4px solid var(--cwo-line); font-family: var(--cwo-sub); font-size: 13px; font-weight: 600; color: var(--cwo-muted); }
.ce-progress li span::before { content: counter(step) ". "; }
.ce-progress li.is-done { border-color: var(--cwo-green-3); color: var(--cwo-ink); }
.ce-progress li.is-current { border-color: var(--cwo-green); color: var(--cwo-ink); }

.ce-step__title { font-family: var(--cwo-display); font-weight: 700; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; color: var(--cwo-ink); margin: 0 0 22px !important; }
.ce-step__title em { font-style: normal; color: var(--cwo-green); }
.ce-step__intro { color: var(--cwo-muted); margin: -12px 0 0; }
.ce-bookstep { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.ce-bookstep img { width: 72px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 12px 24px -12px rgba(27, 31, 41, .6); transform: rotate(-3deg); }
.ce-bookstep .ce-step__title { margin-bottom: 18px !important; }
.ce-step .cwo-grid { gap: 22px 20px; }
.cwo-fieldset--q { margin: 0; }
.cwo-fieldset--q > legend.cwo-label { font-size: 14px; letter-spacing: 0; text-transform: none; margin-bottom: 10px; }
.cwo-fieldset--q .cwo-hint { margin: -4px 0 10px; }
.cwo-fieldset--q .cwo-hint a { font-weight: 600; }
.cwo-field.is-invalid .cwo-choice__body { border-color: var(--cwo-err); }

.ce-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--cwo-line); padding-top: 22px; margin-top: 30px; }
.ce-nav [data-ce-next], .ce-nav [data-ce-submit] { margin-left: auto; min-width: 220px; }
.cwo .ce-back { background: transparent; border-color: var(--cwo-green); color: var(--cwo-green); }
.cwo .ce-back:hover { background: var(--cwo-green-tint); }

.ce-success:focus { outline: none; }
.ce-success .cwo-h2 { margin-bottom: 14px; }
.ce-enquiries { color: var(--cwo-muted); font-size: 15px; margin-top: 22px; }

/* Return from Paystack */
.ce-done { padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.ce-done .cwo-h2 { margin-bottom: 10px; }
.ce-done__num { color: var(--cwo-on-dark-muted); margin: 0; }
.ce-done__num strong { color: var(--cwo-gold); }

@media (max-width: 900px) {
	.ce-hero .cwo-hero__inner { padding-bottom: 80px; }
	.ce-hero__art { min-height: 0; }
	.ce-hero__photo { width: 88%; max-height: 420px; aspect-ratio: 4 / 5; border-radius: 80px 4px 4px 4px; }
	.ce-hero__book { width: 30%; bottom: -48px; }
	.ce-facts__row { grid-template-columns: 1fr 1fr; }
	.ce-facts__row > div { padding: 16px 16px 16px 0 !important; border-right: 0; border-bottom: 1px solid rgba(27, 31, 41, .15); }
	.ce-facts__row > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid rgba(27, 31, 41, .15); }
	.ce-pillars__list { grid-template-columns: 1fr; }
	.ce-pillars__list li, .ce-pillars__list li + li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--cwo-line); }
	.ce-pillars__tile { grid-row: span 2; width: 60px; height: 60px; font-size: 30px; }
	.ce-pillars__list strong { margin: 4px 0 2px; }
	.ce-gallery__grid, .ce-gallery__grid--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
	.ce-gallery__grid figure:first-child { grid-column: span 2; grid-row: auto; border-radius: 4px 4px 4px 64px; }
	.ce-gallery__grid--4 { grid-template-rows: 220px 150px 150px; }
	.ce-gallery__grid--4 figure:nth-child(4) { grid-column: span 2; }
	.ce-gallery__grid--4 figure:nth-child(2), .ce-gallery__grid--4 figure:nth-child(3) { grid-column: auto; }
	.ce-launch__grid { grid-template-columns: 1fr; }
	.ce-launch__cover img { width: min(240px, 60vw); }
}
@media (max-width: 640px) {
	.ce-progress li { font-size: 0; }
	.ce-progress li span::before { font-size: 13px; }
	.ce-progress li.is-current { font-size: 13px; }
	.ce-nav { flex-wrap: wrap; }
	.ce-nav [data-ce-next], .ce-nav [data-ce-submit] { min-width: 0; flex: 1; }
	.ce-facts dd { font-size: 15px; }
}
