/**
 * Front page: full-bleed bands.
 *
 * The rhythm follows the Abrahamic theme. Every section is a band that spans
 * the viewport, alternating white, tint and dark, with a centred head of
 * label, title and subtitle. The alternation is what gives the page its
 * sense of room; content sits in the wide column inside each band.
 */

.boi-front {
	padding: 0 !important;
}

/* WordPress puts the block gap between the header and main. On the front page
   the hero is a full-bleed band, so the gap shows as a white strip. */
.wp-site-blocks > main.boi-front,
.wp-site-blocks > .boi-front,
.wp-site-blocks > header + main,
.wp-site-blocks > .wp-block-template-part + .boi-front {
	margin-block-start: 0 !important;
}

/* The header part can also carry a bottom margin of its own. */
.wp-site-blocks > .wp-block-template-part:has(+ .boi-front),
.wp-site-blocks > header:has(+ .boi-front) {
	margin-block-end: 0 !important;
}

.boi-front > .boi-band {
	margin-block: 0 !important;
	/* The front page removes the root padding from main, but WordPress still
	   pulls full-width blocks outward by that padding. Without this reset
	   every band overshoots the screen by the padding on each side. */
	margin-inline: 0 !important;
	max-inline-size: none;
}

.boi-band {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	background: var(--wp--preset--color--base, #fff);
}

.boi-band.is-tint {
	background: var(--wp--preset--color--accent-3, #EAF2FB);
}

.boi-band.is-dark {
	background: #0D2B4E;
	color: #EAF2FB;
}

:root[data-theme="dark"] .boi-band.is-dark {
	background: #06182C;
}

.boi-band.is-dark :where(h2, h3, a) {
	color: #fff;
}

.boi-band--slim {
	padding-block: 1.75rem;
}

/* Section head: label, title, subtitle, centred. */
.boi-band__head {
	text-align: center;
	margin-block-end: clamp(2rem, 4vw, 3rem) !important;
}

.boi-band__head.is-left {
	text-align: start;
}

.boi-band__head > * {
	margin-block: 0;
}

.boi-band__label {
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1, #1F6FCC);
	margin-block-end: 0.75rem !important;
}

.boi-band.is-dark .boi-band__label {
	color: var(--wp--preset--color--accent-2, #E8B33C);
}

.boi-band__title {
	font-size: clamp(1.7rem, 3.6vw, 2.6rem) !important;
	line-height: 1.15;
	text-wrap: balance;
	margin-block-end: 0.75rem !important;
}

.boi-band__sub {
	max-inline-size: 38rem;
	margin-inline: auto !important;
	font-size: 1.05rem;
	color: var(--wp--preset--color--accent-5, inherit);
}

.boi-band.is-dark .boi-band__sub {
	color: #9DB3C9;
}

.boi-band__more {
	margin-block-start: 2rem !important;
}

/* Buttons used across the bands. */
.boi-front .wp-block-button.is-primary .wp-block-button__link {
	background: var(--wp--preset--color--accent-1, #1F6FCC);
	color: #fff;
	border-radius: 999px;
	padding: 0.8rem 1.5rem;
	font-weight: 600;
}

.boi-front .wp-block-button.is-ghost .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 0.8rem 1.5rem;
	font-weight: 600;
}

/* Hero. */
.boi-hero {
	padding-block: clamp(3rem, 8vw, 6rem);
}

.boi-hero__grid {
	display: grid !important;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.boi-hero__title {
	font-size: clamp(2.6rem, 6.5vw, 4.4rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.03em !important;
	margin-block: 0 1.25rem !important;
}

.boi-hero__lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: var(--wp--preset--color--accent-5, inherit);
	max-inline-size: 34rem;
	margin-block: 0 2rem !important;
}

.boi-hero__ctas {
	gap: 0.75rem;
}

/* Hero stack: three numbered cards, offset like a fanned deck. */
.boi-stack {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	/* Room for the cards' stepped offset, so the last card stays inside. */
	padding-inline-end: 2.5rem;
}

.boi-stack__from {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-5, inherit);
}

.boi-stack__from a {
	color: inherit;
	font-weight: 600;
}

.boi-stack__card {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--accent-6, #D9E3EF);
	border-radius: var(--wp--custom--radius--md, 10px);
	box-shadow: 0 10px 30px -18px rgba(13, 43, 78, 0.45);
	text-decoration: none;
	color: #0D2B4E;
	transform: translateX(calc(var(--i) * 1.25rem));
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.boi-stack__card:hover {
	border-color: var(--wp--preset--color--accent-1, #1F6FCC);
	transform: translateX(calc(var(--i) * 1.25rem - 0.35rem));
}

.boi-stack__num {
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--accent-1, #1F6FCC);
}

.boi-stack__card:nth-of-type(1) .boi-stack__num {
	color: #C8961E;
}

.boi-stack__title {
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
}

/* Stats strip. */
.boi-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.boi-stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.boi-stats__item + .boi-stats__item {
	border-inline-start: 1px solid #1A3555;
}

.boi-stats__num {
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.boi-stats__label {
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: #9DB3C9;
}

/* Section cards inside a tint band sit on white. */
.boi-band.is-tint .boi-sections__item,
.boi-band.is-tint .boi-strip__item a,
.boi-band.is-tint .wp-block-post-template.is-layout-grid > li {
	background: #fff;
}

:root[data-theme="dark"] .boi-band.is-tint :where(.boi-sections__item, .boi-strip__item a, .wp-block-post-template.is-layout-grid > li) {
	background: var(--wp--preset--color--base);
}

/* Modules carried over from earlier releases lose their own top margin
   inside a band, since the band supplies the rhythm. */
.boi-band :where(.boi-mission, .boi-strip, .boi-follow) {
	margin-block-start: 0;
}

.boi-band .boi-strip + .boi-mission {
	margin-block-start: 3rem;
}

.boi-band.is-dark .boi-follow {
	border-block-start-color: #1A3555;
	margin-block-start: 2.5rem;
	text-align: center;
}

.boi-band.is-dark .boi-follow .boi-eyebrow,
.boi-band.is-dark .boi-follow__text {
	color: #9DB3C9;
}

.boi-band.is-dark .boi-follow__links {
	justify-content: center;
}

.boi-band.is-dark .boi-follow__link {
	background: transparent;
	border-color: #3A5A80;
	color: #fff;
}

/* Objections accordion. */
.boi-objections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	/* Each question keeps its own height. Grid rows stretch their items by
	   default, so opening one question would stretch its closed neighbour. */
	align-items: start;
	gap: 0.85rem;
	max-inline-size: 64rem;
	margin-inline: auto;
}

.boi-objection {
	background: var(--wp--preset--color--accent-3, #EAF2FB);
	border: 1px solid var(--wp--preset--color--accent-6, #D9E3EF);
	border-radius: var(--wp--custom--radius--md, 10px);
	transition: border-color 0.15s ease;
}

.boi-objection[open] {
	border-color: var(--wp--preset--color--accent-1, #1F6FCC);
	background: var(--wp--preset--color--base, #fff);
}

.boi-objection summary {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 3rem 1.1rem 1.25rem;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.boi-objection summary::-webkit-details-marker {
	display: none;
}

.boi-objection summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 1.25rem;
	inset-block-start: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-1, #1F6FCC);
}

.boi-objection[open] summary::after {
	content: "\2212";
}

.boi-objection__label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #B08432;
}

.boi-objection__claim {
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.35;
}

.boi-objection__answer {
	padding: 0 1.25rem 1.2rem;
}

.boi-objection__answer p {
	margin: 0 0 0.7rem;
	font-size: 0.95rem;
}

.boi-objection__answer a {
	font-weight: 600;
	font-size: 0.9rem;
}

/* Editor's picks. */
.boi-picks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.boi-picks__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid #1A3555;
	border-radius: var(--wp--custom--radius--md, 10px);
	background: rgba(255, 255, 255, 0.03);
}

.boi-picks__rank {
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--accent-2, #E8B33C);
}

.boi-picks__term {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9DB3C9;
}

.boi-picks__title {
	display: block;
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	text-wrap: balance;
}

.boi-picks__title:hover {
	text-decoration: underline;
}

.boi-picks__meta {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	color: #9DB3C9;
}

/* Start here path. */
.boi-path {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
	position: relative;
}

.boi-path__step {
	position: relative;
	padding: 1.75rem 1.5rem 1.5rem;
	border: 1px solid var(--wp--preset--color--accent-6, #D9E3EF);
	border-radius: var(--wp--custom--radius--md, 10px);
	background: var(--wp--preset--color--base, #fff);
}

.boi-path__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.4rem;
	block-size: 2.4rem;
	margin-block-end: 1rem;
	border-radius: 50%;
	background: #0D2B4E;
	color: #fff;
	font-family: var(--wp--preset--font-family--platypi, serif);
	font-weight: 700;
}

.boi-path__step:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-block-start: 2.95rem;
	inset-inline-end: -1.25rem;
	inline-size: 1.25rem;
	border-block-start: 2px dashed var(--wp--preset--color--accent-6, #D9E3EF);
}

.boi-path__title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.boi-path__title a {
	color: inherit;
	text-decoration: none;
}

.boi-path__title a:hover {
	color: var(--wp--preset--color--accent-1, #1F6FCC);
}

.boi-path__text {
	margin: 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--accent-5, inherit);
}


/* HTML sitemap. */
.boi-sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 2rem;
}

.boi-sitemap__group h2 {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
	padding-block-end: 0.5rem;
	border-block-end: 1px solid var(--wp--preset--color--accent-6, #D9E3EF);
}

.boi-sitemap__group h2 a {
	color: inherit;
	text-decoration: none;
}

.boi-sitemap__group ul {
	margin: 0;
	padding-inline-start: 1.1rem;
	display: grid;
	gap: 0.4rem;
	font-size: 0.95rem;
}

/* Responsive. */
@media (max-width: 1024px) {
	.boi-picks {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 781px) {
	.boi-hero__grid {
		grid-template-columns: 1fr;
	}

	.boi-stack {
		padding-inline-end: 0;
	}

	.boi-stack__card {
		transform: none;
	}

	.boi-stack__card:hover {
		transform: translateX(-0.25rem);
	}

	.boi-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 1.5rem;
	}

	.boi-stats__item:nth-child(3) {
		border-inline-start: 0;
	}

	.boi-objections,
	.boi-path {
		grid-template-columns: 1fr;
	}

	.boi-path__step:not(:last-child)::after {
		display: none;
	}
}

@media (max-width: 600px) {
	.boi-band__head {
		text-align: start;
	}

	.boi-band__sub {
		margin-inline: 0 !important;
	}

	.boi-hero__ctas .wp-block-button {
		flex: 1 1 100%;
	}

	.boi-hero__ctas .wp-block-button__link {
		display: block;
		text-align: center;
	}


	.boi-stack__num {
		font-size: 1.7rem;
	}
}

/* Questions answered: the link beneath the front-page accordion. */
.boi-objections__more {
	text-align: center;
	margin: 2rem 0 0;
}

.boi-objections__all {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

/* The remaining questions, behind one disclosure beneath the featured set. */
.boi-qmore {
	max-inline-size: 64rem;
	margin: 2rem auto 0;
}

.boi-qmore > summary {
	display: block;
	inline-size: max-content;
	margin-inline: auto;
	cursor: pointer;
	list-style: none;
}

.boi-qmore > summary::-webkit-details-marker {
	display: none;
}

.boi-qmore[open] > summary {
	margin-block-end: 2rem;
}

.boi-qmore__body .boi-qgroup {
	margin-block-end: 2rem;
}

.boi-qmore__body .boi-qgroup__title {
	font-size: 1.15rem;
}

/* A question reached by its anchor opens itself in view. */
.boi-front .boi-objection:target {
	border-color: var(--wp--preset--color--accent-2, #E8B33C);
}

/* Question cards sit on white when their band is tinted. */
.boi-band.is-tint .boi-objection {
	background: var(--wp--preset--color--base, #fff);
}

.boi-band.is-tint .boi-objection[open] {
	border-color: var(--wp--preset--color--accent-1, #1F6FCC);
}

/* Start here: the article each step opens with. */
.boi-path__first {
	margin: 0.75rem 0 0;
	padding-block-start: 0.6rem;
	border-block-start: 1px solid var(--wp--preset--color--accent-6, #D9E3EF);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Follow links, closing the last band. */
.boi-band .boi-follow {
	margin-block-start: 3rem;
	padding-block-start: 2rem;
	text-align: center;
}

.boi-band .boi-follow__links {
	justify-content: center;
}

.boi-band.is-tint .boi-follow__link {
	background: var(--wp--preset--color--base, #fff);
}

/* Hero with a background image. The overlay is darkest behind the headline
   and lifts towards the card stack, so the image shows where no text needs
   reading. Text switches to light; the cards stay white. */
.boi-has-hero-image .boi-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background-color: #0D2B4E;
	background-image:
		linear-gradient(100deg, rgba(13, 43, 78, 0.94) 0%, rgba(13, 43, 78, 0.86) 45%, rgba(13, 43, 78, 0.6) 100%),
		var(--boi-hero-img);
	background-size: cover;
	background-position: center 40%;
}

.boi-has-hero-image .boi-hero .boi-band__label {
	color: var(--wp--preset--color--accent-2, #E8B33C);
}

.boi-has-hero-image .boi-hero .boi-hero__title {
	color: #fff;
}

.boi-has-hero-image .boi-hero .boi-hero__lead {
	color: #D9E6F4;
}

.boi-has-hero-image .boi-hero .wp-block-button.is-ghost .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

.boi-has-hero-image .boi-hero .boi-stack__from,
.boi-has-hero-image .boi-hero .boi-stack__from a {
	color: #D9E6F4;
}

.boi-hero__credit {
	position: absolute;
	inset-inline-end: 1.25rem;
	inset-block-end: 0.75rem;
	margin: 0;
	max-inline-size: 60%;
	font-size: 0.75rem;
	text-align: end;
	color: rgba(234, 242, 251, 0.75);
}

.boi-hero__credit a {
	color: inherit;
}

/* On narrow screens the overlay evens out, since text runs full width. */
@media (max-width: 781px) {
	.boi-has-hero-image .boi-hero {
		background-image:
			linear-gradient(180deg, rgba(13, 43, 78, 0.92) 0%, rgba(13, 43, 78, 0.84) 100%),
			var(--boi-hero-img);
		padding-block-end: 3.5rem;
	}

	.boi-hero__credit {
		max-inline-size: none;
		inset-inline: 1.25rem;
		text-align: start;
	}
}

/* Dark appearance: the overlay deepens to match the darker page. */
:root[data-theme="dark"] .boi-has-hero-image .boi-hero {
	background-image:
		linear-gradient(100deg, rgba(6, 24, 44, 0.95) 0%, rgba(6, 24, 44, 0.88) 45%, rgba(6, 24, 44, 0.66) 100%),
		var(--boi-hero-img);
}
