/*
 * sections.css — the page BANDS.
 *
 * Everything that is a section of a page rather than part of the site frame:
 * the hero, the quote band, program cards, the impact band, "What's happening",
 * the student story, the donation bands, and the About timeline.
 *
 * Split out of the block theme's single 1,137-line style.css so that the frame
 * (chrome.css) and the bands (this file) can be reasoned about separately. The
 * rules themselves are ported unchanged — the class names are the contract
 * between these bands and the patterns that emit them, and every one of those
 * patterns is now editable content in the database.
 *
 * Loads THIRD, after chrome.css. See inc/enqueue.php for why the order is
 * expressed as a dependency chain rather than as call order.
 */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.bb-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--forest);
	margin: 0;
}

.bb-hero__title-em {
	font-style: italic;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   Quote band
   -------------------------------------------------------------------------- */

.bb-quote-band__quote {
	margin: 0;
	position: relative;
	padding-inline-start: 2.2rem;
}

.bb-quote-band__quote p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.5rem, 3.2vw, 2.35rem );
	font-style: italic;
	line-height: 1.28;
	margin: 0;
}

.bb-quote-band__glyph,
.bb-c2g__glyph {
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: -0.15em;
	font-family: var(--wp--preset--font-family--display);
	font-size: 3rem;
	line-height: 1;
	color: var(--wp--preset--color--terracotta-on-dark);
}

/* --------------------------------------------------------------------------
   Program cards
   -------------------------------------------------------------------------- */

.bb-program-card {
	position: relative;
}

.bb-program-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bb-program-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-top: -1.5rem;
	margin-inline-start: 0.5rem;
	position: relative;
	border-radius: 50%;
	background: var(--wp--preset--color--sage);
	/* Sage is 2.23:1 on cream — decorative only. The forest stroke carries the
	   icon's meaning, and every card also has a text title. */
	color: var(--wp--preset--color--forest);
}

.bb-program-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	color: var(--wp--preset--color--forest);
	margin: 0.75rem 0 0.5rem;
}

.bb-program-card__text {
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 0.9rem;
}

.bb-program-card__more a,
.bb-feature-card__more a,
.bb-event-list__all a {
	color: var(--wp--preset--color--terracotta-text);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.bb-program-card__more a:hover,
.bb-feature-card__more a:hover,
.bb-event-list__all a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Impact band
   -------------------------------------------------------------------------- */

.bb-impact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp( 1.5rem, 4vw, 3rem );
}

.bb-impact__heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	position: relative;
	padding-bottom: 0.4em;
}

.bb-impact__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2em;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--gold);
}

.bb-impact__list {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	margin: 0;
	gap: 0;
}

/* flex-basis 0 rather than 10rem: with a 10rem basis the four stats need
   ~680px before padding and wrap to a second row at the design's own 856px
   width, which breaks the single-rule-separated band the mockup shows. */
.bb-impact__item {
	flex: 1 1 0;
	min-width: 0;
	padding-inline: clamp( 0.5rem, 1.5vw, 1.25rem );
	text-align: center;
	border-inline-start: 1px solid rgba( 201, 162, 39, 0.4 );
}

.bb-impact__item:first-child {
	border-inline-start: 0;
}

.bb-impact__icon {
	display: block;
	color: var(--wp--preset--color--gold);
	margin-bottom: 0.4rem;
}

.bb-impact__icon svg {
	margin-inline: auto;
}

.bb-impact__figure {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.6rem, 3.4vw, 2.35rem );
	font-weight: 600;
	line-height: 1.1;
}

.bb-impact__label {
	margin: 0.3rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
	opacity: 0.9;
}

/* --------------------------------------------------------------------------
   What's happening
   -------------------------------------------------------------------------- */

.bb-feature-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
}

.bb-feature-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.bb-feature-card__body {
	position: relative;
	margin: -3.5rem 1rem 0;
	padding: 1.25rem 1.4rem;
	background: var(--wp--preset--color--base);
	border-radius: 6px 26px 6px 26px;
}

.bb-feature-card__date {
	color: var(--wp--preset--color--terracotta-text);
	margin: 0 0 0.35rem;
}

.bb-feature-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	color: var(--wp--preset--color--forest);
	margin: 0 0 0.4rem;
}

.bb-feature-card__text {
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 0.8rem;
}

.bb-event-list {
	list-style: none;
	margin: 0;
	padding: 1.5rem;
	background: var(--wp--preset--color--base-alt);
	border-radius: 6px 26px 6px 26px;
}

.bb-event-list__item + .bb-event-list__item {
	border-top: 1px solid rgba( 42, 42, 36, 0.15 );
}

/* 7rem, not 5.5rem: "ANNOUNCEMENT" is a single long word and the eyebrow's
   uppercase letter-spacing makes it wider still, so a narrower track split it
   across lines mid-word. */
.bb-event-list__link {
	display: grid;
	grid-template-columns: 7rem 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.9rem;
	text-decoration: none;
	color: inherit;
}

.bb-event-list__link:hover .bb-event-list__title,
.bb-event-list__link:focus .bb-event-list__title {
	text-decoration: underline;
}

.bb-event-list__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.bb-event-list__kind {
	color: var(--wp--preset--color--terracotta-text);
	/* "ANNOUNCEMENT" is one long word and the eyebrow's uppercase tracking
	   widens it further, so the inherited break-word split it mid-word. */
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	font-size: 0.65rem;
	line-height: 1.3;
}

.bb-event-list__date {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--forest);
	line-height: 1.1;
}

.bb-event-list__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--forest);
	line-height: 1.25;
}

.bb-event-list__arrow {
	color: var(--wp--preset--color--terracotta-text);
}

.bb-event-list__all {
	margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Student story
   -------------------------------------------------------------------------- */

.bb-student-story {
	margin: 1.5rem 0 0;
}

.bb-student-story__quote {
	margin: 0;
	border: 0;
	padding: 0;
}

.bb-student-story__quote p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.35rem, 2.6vw, 1.85rem );
	font-style: italic;
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--forest);
	margin: 0;
}

.bb-student-story__context {
	font-size: var(--wp--preset--font-size--small);
	margin: 1rem 0 0.5rem;
}

.bb-student-story__cite {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--forest);
}

/* --------------------------------------------------------------------------
   Donation bands
   -------------------------------------------------------------------------- */

.bb-donate-band__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.9rem, 4vw, 2.9rem );
	font-weight: 500;
	line-height: 1.1;
	margin: 0;
}

.bb-donate-band__title em {
	display: block;
	font-style: italic;
	font-weight: 400;
}

.bb-give {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	aspect-ratio: 1;
	max-width: 12rem;
	margin-inline: auto;
	padding: 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--terracotta-text);
	text-decoration: none;
	text-align: center;
}

.bb-give:hover,
.bb-give:focus {
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--terracotta-text);
}

.bb-give__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.bb-give__sub {
	font-size: var(--wp--preset--font-size--x-small);
}

.bb-heart-mark {
	display: block;
	color: var(--wp--preset--color--base);
}

/* --------------------------------------------------------------------------
   About: timeline, archival photo, C2G panel
   -------------------------------------------------------------------------- */

.bb-timeline {
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	position: relative;
}

.bb-timeline::before {
	content: "";
	position: absolute;
	inset-inline-start: 4px;
	inset-block: 0.5rem 1rem;
	width: 2px;
	background: rgba( 143, 69, 41, 0.35 );
}

.bb-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 3.6rem 1fr;
	gap: 0.75rem;
	padding-inline-start: 1.5rem;
	padding-block: 0.5rem;
}

.bb-timeline__item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 1rem;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--terracotta-text);
}

.bb-timeline__year {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--forest);
	line-height: 1.3;
}

.bb-timeline__text {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
}

.bb-archival {
	margin: 0;
	padding: 0.7rem 0.7rem 1.8rem;
	background: #f3ece0;
	box-shadow: 0 3px 14px rgba( 42, 42, 36, 0.18 );
	transform: rotate( -1.5deg );
}

.bb-archival img {
	display: block;
	width: 100%;
	height: auto;
	filter: sepia( 0.35 ) contrast( 1.02 );
}

.bb-c2g {
	position: relative;
	padding: clamp( 1.75rem, 4vw, 3rem );
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--base);
}

.bb-c2g__lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.35rem, 2.8vw, 1.95rem );
	font-style: italic;
	line-height: 1.25;
	margin: 0 0 1.5rem;
	position: relative;
	padding-inline-start: 2rem;
}

.bb-c2g__lead::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--terracotta-on-dark);
	margin-top: 0.9rem;
}

.bb-c2g__sub {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
	padding-inline-start: 2rem;
	opacity: 0.92;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media ( max-width: 781px ) {
	.bb-impact {
		flex-direction: column;
		align-items: flex-start;
	}

	.bb-impact__item {
		border-inline-start: 0;
		border-block-start: 1px solid rgba( 201, 162, 39, 0.4 );
		text-align: start;
		padding-block: 1rem;
		padding-inline: 0;
		flex-basis: 100%;
	}

	.bb-impact__item:first-child {
		border-block-start: 0;
	}

	.bb-impact__icon svg {
		margin-inline: 0;
	}

	.bb-event-list__link {
		grid-template-columns: 4.5rem 1fr auto;
	}

	.bb-archival {
		max-width: 16rem;
		margin-inline: auto;
	}
}

/* --------------------------------------------------------------------------
   Donate page — components
   --------------------------------------------------------------------------
   The bands themselves (backgrounds, waves, the two-column grid) live in
   art-direction.css, next to the home page's donation band whose wave tokens
   they reuse. What is here is the type-and-surface layer: the designation
   tiles, the giving cards, and the frame around the embedded form.

   ONE RULE GOVERNS ALL OF IT: nothing here can style the donation form. It is a
   cross-origin iframe inside a shadow root, so every selector below stops at
   its edge. We style the room, not the furniture Givebutter puts in it. */

/* The designation tiles.
   auto-fit rather than a fixed column count: this list sits in a column that is
   ~440px at 900px wide and ~700px at 1200px, so a fixed grid would either strand
   whitespace at the top of the range or crush the blurbs at the bottom. */
.bb-fund-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat( auto-fit, minmax( 14rem, 1fr ) );
}

.bb-fund {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	height: 100%;
	box-sizing: border-box;
	padding: 1rem 1.1rem;
	border: 1px solid rgba( 57, 62, 46, 0.18 );
	border-radius: 10px;
	background-color: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.bb-fund:hover,
.bb-fund:focus-visible {
	border-color: var(--wp--preset--color--terracotta-text);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/*
 * Selected state. NOT COLOUR ALONE (WCAG 1.4.1): the ring thickens from 1px to
 * 2px and a filled marker appears before the name, so the state survives a
 * monochrome rendering and a colour-blind reader.
 */
.bb-fund[aria-pressed="true"] {
	border-color: var(--wp--preset--color--terracotta-text);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--terracotta-text);
	background-color: var(--wp--preset--color--base);
}

.bb-fund[aria-pressed="true"] .bb-fund__name::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-inline-end: 0.45rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--terracotta-text);
	vertical-align: middle;
}

.bb-fund__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--forest);
}

.bb-fund__blurb {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/*
 * Once assets/js/donate.js locks the tiles — which it does the moment focus
 * enters the form — they stop being controls and become labels. They keep their
 * href and their focusability on purpose: a dead link a keyboard user can still
 * reach is worse than a working one, and the href reloads the page with the
 * fund preselected, which is a legitimate thing to want.
 */
.bb-donate-give__note {
	display: none;
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 1rem;
	padding-inline-start: 0.9rem;
	border-inline-start: 2px solid var(--wp--preset--color--terracotta);
}

[data-bb-locked] .bb-donate-give__note {
	display: block;
}

[data-bb-locked] .bb-fund {
	opacity: 0.72;
}

/* The frame around the embed.
   A plain radius, and no `overflow: hidden`: the iframe resizes itself as the
   donor works — expanding for "give in honor", for validation errors, for the
   monthly toggle — and anything that clips it clips a payment field. This is
   also why it carries no --bb-clip-* mask like every other card in the theme. */
.bb-donate-form {
	background-color: var(--wp--preset--color--base-alt);
	border: 1px solid rgba( 57, 62, 46, 0.14 );
	border-radius: 14px;
	padding: clamp( 1rem, 2.5vw, 1.5rem );
	box-sizing: border-box;
}

/* 440px is the campaign's own embed_max_width, which the widget applies once its
   config request lands. Stated here too so the card is the right size from the
   first paint rather than reflowing under the donor mid-decision. */
.bb-donate-form__embed {
	display: block;
	width: 100%;
	max-width: 27.5rem;
	margin-inline: auto;
	min-height: 32rem;
}

.bb-donate-form__trust {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
	margin: 1rem 0 0;
	text-align: center;
}

/* A tall iframe is a wall for keyboard users: without this, reaching the
   check-by-mail card below means tabbing through an entire payment form. */
.bb-donate-give__skip {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
}

.bb-donate-give__skip:focus {
	position: static;
	display: inline-block;
	width: auto;
	height: auto;
	clip-path: none;
	margin-block-start: 1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* Other ways to give. */
.bb-give-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.15;
	color: var(--wp--preset--color--forest);
	margin: 0 0 0.75rem;
}

.bb-give-card__subtitle {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--forest);
	margin: 1.25rem 0 0.5rem;
}

.bb-give-card__text {
	margin: 0 0 1rem;
}

/* The address is the single most consequential string on this page — a donor
   copies it onto an envelope. Monospace-adjacent treatment: generous line
   height, no justification, and large enough to read across a room. */
.bb-give-card__address {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.35;
	color: var(--wp--preset--color--forest);
	margin: 0 0 1rem;
}

.bb-give-card__note {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	margin: 0;
}

.bb-box-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 11rem, 1fr ) );
	gap: 0.3rem 1rem;
	font-size: var(--wp--preset--font-size--small);
}

.bb-box-list li::before {
	content: "";
	display: inline-block;
	width: 0.3rem;
	height: 0.3rem;
	margin-inline-end: 0.5rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--terracotta);
	vertical-align: middle;
}

.bb-donate-other__where {
	margin-block-start: clamp( 2rem, 5vw, 3rem );
	max-width: 44rem;
}

.bb-donate-other__legal {
	margin-block-start: clamp( 2rem, 5vw, 3rem );
	padding-block-start: 1.25rem;
	border-block-start: 1px solid rgba( 57, 62, 46, 0.18 );
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.7;
	max-width: 44rem;
}

/* --------------------------------------------------------------------------
   Assurance strip — "your gift is"
   --------------------------------------------------------------------------
   Four short guarantees across the foot of the giving band, spanning both of
   its columns: tax-deductible, secure, transparent, effective. It answers the
   question a donor has with the card already in hand, and it answers it in
   BASIC's terms — the "transparent" and "effective" items are LINKS to the
   transparency page and to "Where do donations go?" rather than assertions,
   because a small organisation earns those words by showing, not by claiming.

   The glyphs are masks, the same mechanism as the .bb-icon-* badges in
   components.css, so they take the terracotta text colour and the markup
   stays free of SVG. */
.bb-assure {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0;
	padding: clamp( 1.25rem, 3vw, 1.75rem ) 0 0;
	border-block-start: 1px solid rgba( 57, 62, 46, 0.18 );
	display: grid;
	gap: 1.1rem 1.75rem;
	grid-template-columns: repeat( auto-fit, minmax( 13rem, 1fr ) );
}

.bb-assure__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon title"
		"icon text";
	column-gap: 0.7rem;
	row-gap: 0.15rem;
	align-content: start;
}

.bb-assure__item::before {
	content: "";
	grid-area: icon;
	width: 1.4rem;
	height: 1.4rem;
	margin-block-start: 0.1rem;
	background-color: var(--wp--preset--color--terracotta-text);
	-webkit-mask-image: var(--bb-icon);
	mask-image: var(--bb-icon);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.bb-assure__item--tax {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.bb-assure__item--secure {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.bb-assure__item--open {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.bb-assure__item--effective {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 1 9l11 6 9-4.91V17h2V9zM5 13.18v4L12 21l7-3.82v-4L12 17z'/%3E%3C/svg%3E");
}

.bb-assure__title {
	grid-area: title;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--forest);
}

.bb-assure__text {
	grid-area: text;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* An EIN split across two lines reads as two numbers. */
.bb-assure__ein {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Tax-smart and legacy gifts
   --------------------------------------------------------------------------
   Seven ways to give that are not a card or a cheque: stock, an IRA
   distribution, a donor-advised fund, a bequest, a gift annuity, a vehicle, a
   tribute. Each is worth a paragraph, and seven paragraphs would bury the
   address above them — so each is a native <details>: closed, a tile the
   width of a sentence; open, the how-to and a pre-addressed email link. No
   script, keyboard-operable and announced as a disclosure for free (the same
   argument .bb-reveal makes in components.css).

   THE TILES DELIBERATELY RHYME WITH THE FUND TILES in the giving band —
   same border, radius, ground and hover, same thickened ring when active —
   so the page reads as one system: choose a programme, choose a way.

   Seven is odd, and a two-column grid leaves the last tile alone on its row.
   That tile spans both columns rather than sitting half-empty, which is why
   the tribute gift is placed last: the widest tile is the one that ends the
   list, and a gift in someone's memory is the right note to end on. */
.bb-donate-other__lead {
	max-width: 36rem;
	margin: 0;
}

.bb-ways {
	margin-block-start: clamp( 2.5rem, 6vw, 4rem );
}

.bb-ways__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp( 1.5rem, 3vw, 2rem );
	font-weight: 500;
	line-height: 1.15;
	color: var(--wp--preset--color--forest);
	margin: 0 0 0.6rem;
}

.bb-ways__lead {
	max-width: 40rem;
	margin: 0 0 1.5rem;
}

.bb-ways__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

@media ( min-width: 782px ) {

	.bb-ways__list {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.bb-ways__list > li:last-child:nth-child( odd ) {
		grid-column: 1 / -1;
	}
}

.bb-way {
	border: 1px solid rgba( 57, 62, 46, 0.18 );
	border-radius: 10px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.bb-way:hover {
	border-color: var(--wp--preset--color--terracotta-text);
}

.bb-way[open] {
	border-color: var(--wp--preset--color--terracotta-text);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--terracotta-text);
}

/* The summary is a three-column row: glyph, title over teaser, chevron. */
.bb-way__summary {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"icon title cue"
		"icon teaser cue";
	column-gap: 0.9rem;
	row-gap: 0.15rem;
	align-items: center;
	padding: 1rem 1.1rem;
	border-radius: 10px;
	cursor: pointer;
	list-style: none;
}

/* Safari still draws summary's disclosure triangle through this pseudo. */
.bb-way__summary::-webkit-details-marker {
	display: none;
}

.bb-way__summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta-text);
	outline-offset: 2px;
}

.bb-way__summary::before {
	content: "";
	grid-area: icon;
	width: 1.6rem;
	height: 1.6rem;
	background-color: var(--wp--preset--color--terracotta-text);
	-webkit-mask-image: var(--bb-icon);
	mask-image: var(--bb-icon);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* The chevron: a bordered corner, rotated. Points down closed, up open. */
.bb-way__summary::after {
	content: "";
	grid-area: cue;
	width: 0.55rem;
	height: 0.55rem;
	margin-inline-start: 0.5rem;
	margin-block-end: 0.25rem;
	border-inline-end: 2px solid var(--wp--preset--color--terracotta-text);
	border-block-end: 2px solid var(--wp--preset--color--terracotta-text);
	transform: rotate( 45deg );
	transition: transform 0.2s ease;
}

.bb-way[open] > .bb-way__summary::after {
	margin-block-end: 0;
	margin-block-start: 0.25rem;
	transform: rotate( 225deg );
}

@media ( prefers-reduced-motion: reduce ) {

	.bb-way__summary::after {
		transition: none;
	}
}

.bb-way--stock {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E");
}

.bb-way--ira {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E");
}

.bb-way--daf {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z'/%3E%3C/svg%3E");
}

.bb-way--will {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.bb-way--annuity {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E");
}

.bb-way--vehicle {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.bb-way--tribute {
	--bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
}

.bb-way__title {
	grid-area: title;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--forest);
}

.bb-way__teaser {
	grid-area: teaser;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* The body indents to the title's left edge — past the glyph and its gap —
   so the open tile reads as one column of text under one heading. Below
   ~30em that indent would cost a quarter of the line, so it is dropped. */
.bb-way__body {
	padding: 0 1.1rem 1.1rem calc( 1.1rem + 1.6rem + 0.9rem );
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

@media ( max-width: 30em ) {

	.bb-way__body {
		padding-inline-start: 1.1rem;
	}
}

.bb-way__body > p {
	margin: 0 0 0.75rem;
}

.bb-way__body > p:last-child {
	margin-block-end: 0;
}

/* The "to do it" line carries the same terracotta rule as the giving band's
   note, so the actionable sentence stands apart from the explanation. */
.bb-way__how {
	padding-inline-start: 0.9rem;
	border-inline-start: 2px solid var(--wp--preset--color--terracotta);
}

/* The vehicle tile is the one giving route BASIC does not run itself, so it
   ends in a hand-off: the button that opens BASIC's page on careasy.org, and
   the partner's wordmark beside it so the donor recognises where they land.
   The wordmark is a theme asset rather than an inline data: URI because page
   content may carry neither (tools/test-pages.php hygiene). */
.bb-way__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1.25rem;
	margin-block-start: 1.1rem;
}

.bb-way__logo {
	flex: 0 0 auto;
	width: 9rem;
	max-width: 100%;
	aspect-ratio: 501 / 112;
	background-image: url( "../images/careasy-logo.svg" );
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
}

.bb-ways__advice {
	max-width: 44rem;
	margin: 1.5rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
}
