:root {
	--hmax: 4vw;
	--field-gap: 1.5rem;
	--red-bright: hsl(357.5deg 85.7% 61.6%);
	--red-hsl: 357.5deg 85% 52%;
	--red: hsl(var(--red-hsl));
	--link-color: var(--red);
	--link-line-color: hsl(var(--red-hsl) / 0.5);
	--submit-tmar: 2rem;
}

body {
	background: hsl(0deg 0% 96%);
}

a:not([class]) {
	text-decoration-skip-ink: auto;
}


/* banner */

.banner.page-area {
	background: black url('/assets/graphics/ue27-baby-scan.jpg') no-repeat 15% 50%;
	background-size: cover;
	color: white;
	gap: 2rem 4vw;
	padding: 2rem 4vw;
	grid-template-areas: 'b' 'e' 'p';
	container: banner / inline-size;
}

.banner figure   {margin: 0;}
.banner__brand   {grid-area: b;}
.banner__event   {grid-area: e;}
.banner__partner {grid-area: p; gap: 1rem; transform: translateY(-1rem);}

.partner-thanks {
	opacity: 0.65;
	max-width: 200px;
}

.event-title {
	line-height: 0.95;
	font-weight: 600;
	font-size: clamp(2.5rem, calc(1rem + 14.3vw), 5rem);
}

.event-meta {
	margin: 1.3rem 3px;
	padding-top: 0.65rem;
	border-top: 1px solid rgb(255 255 255 / 0.4);
	gap: 0.25rem 2rem;
}


/* body containers */

[data-context="registration"] {
	margin: 0;
}

[data-context="holding"] > .core-hpad,
[data-context="registration"] > .core-hpad {
	padding-block: 4rem;
}

.core-hpad > *:first-child,
.core-hpad > h2:first-of-type {
	margin-top: 0;
}


/*
[data-context="registration"] > * {
	margin: 0;
}
*/

[data-context="holding"] > .core-hpad > *,
[data-context="registration"] > .core-hpad > * {
	max-width: 49rem;
}


/* ineligible messaging */

.eligibility .yes {background: hsl(75deg 80% 84%);} 
.eligibility .no  {background: hsl(0deg 100% 88%);}

.eligibility, 
.lr-list {
	max-width: unset !important;
}

.lr-list {
	column-width: 11em;
	column-gap: 2em;
}

.lr-list > li {
	padding: 0.25em;
	border-top: 1px solid rgb(0 0 0 / 0.1);
}


/* registration form */

.form-preface,
.input-text {
	background: white;
}

.field-label     {color: hsl(0deg 0% 44%);}
.field-optional  {font-weight: bold;}
.fields-guidance {margin-bottom: 1em;}

.btn {
	padding: 0.5em 0.75em;
	background: var(--red-bright);
}

[type="submit"] {
	font-size: 1.5rem;
	font-weight: bold;
	border-radius: 0.25rem;
}


/* details for isuog account */

.isuog-account summary {
	display: inline-block;
	background: rgb(0 0 0 / 0.05);
	padding: 0.25em 0.4em;
	border: 1px solid rgb(0 0 0 / 0.1);
	border-radius: 3px;
	line-height: 1;
	text-transform: uppercase;
	font-weight: 500;
	font-size: 0.8125rem;
}

.isuog-account[open] summary {
	background: #333;
	color: white;
}

.isuog-account summary::before {content: 'Show ';}
.isuog-account[open] summary::before {content: 'Hide ';}


/* thanks messaging */

.u-photo {
	border-radius: 50%;
}

.flex figure, 
.grid figure,
figure > p {margin: 0;}

.ue-sell {
	padding-block: 1em;
	margin-block: 1em;
	border-top: 1px solid rgb(0 0 0 / 0.1);
}

.ue-sell > div > p:first-child {margin-top: 0;}


/* container and media conditions */

@supports (container-type: inline-size) {
	@container banner (min-width: 416px) and (max-width: 942px){
		.banner__partner {
			display: grid;
			grid-template-columns: 200px 200px;
			gap: 0 4vw;
		}
	}
	
	@container banner (min-width: 432px) and (max-width: 942px){
		.brand-logos {
			grid-template-columns: max-content max-content;
			gap: 2rem;
			align-items: center;
		}
		
		.event-title {
			font-size: 3.5rem;
		}
	}
}

@media (min-width: 768px) {
	.banner.page-area {
		background-image: url('/assets/graphics/ue27-baby-scan_wide.jpg');
		background-size: 560px;
		background-position: 75% 50%;
	}
	
	.ue-sell {
		grid-template-columns: 88px 1fr;
	}
}

@media (min-width: 1024px) {
	.banner.page-area {
		grid-template-columns: 200px 1fr 200px;
		grid-template-areas: 'b e p';
	}
	
	.brand-logos {
		transform: translateY(9.5px);
	}
	
	
	.banner__event > div {
		max-width: 28.5rem;
	}

	.event-title {
		font-size: 4rem;
	}
}

@media (min-width: 1280px) {
	.core-hpad {
		padding-left: calc(8vw + 200px);
	}
}
