/*
Theme Name:   Sartain Lanier Twentysix
Text Domain:  biscuit
Description:  Hybrid theme for the Sartain Lanier Family Foundation. PHP header, footer and templates. Gutenberg page content built from core blocks, block styles and patterns. Replaces the Cwicly build.
Author:       Biscuit Studios
Author URI:   https://biscuitstudios.com/
Version:      1.0.2
Requires at least: 7.1
Requires PHP: 8.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/*
Contents
	1. Tokens
	2. Base
	3. Spacing between blocks
	4. Header and navigation
	5. Footer
	6. Block styles
	7. Core block adjustments
	8. Plugins (TablePress, Cool Timeline, Gravity Forms)
	9. Utilities
*/

/*-------------------------------------------------------------------------*/

/* 1. TOKENS */

/*-------------------------------------------------------------------------*/

:root {
	--sl-header-height: 128px;
	--sl-shadow: 0 0 20px 0 rgba(42, 42, 42, 0.2);
	--sl-shadow-soft: 0 0 20px 0 rgba(3, 2, 2, 0.2);
	--sl-radius: 8px;
	--sl-nav-shadow: 0 4px 16px 0 rgba(42, 42, 42, 0.2);
	--sl-nav-current: #f2f2f2;
	--sl-gutter: 30px;
	--sl-ease: 0.35s ease;
}

/*-------------------------------------------------------------------------*/

/* 2. BASE */

/*-------------------------------------------------------------------------*/

html {
	scroll-padding-top: var(--sl-header-height);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p {
	text-wrap: pretty;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	transition: color var(--sl-ease), background-color var(--sl-ease), opacity var(--sl-ease);
}

/* Focus ring. Outlines need 3:1 against what they sit on (WCAG 1.4.11). The
   green measured 2.7:1 on white and 2.8:1 on blue, so the ring is blue on
   light grounds (7.4:1 on white) and white on the blue sections, the footer
   and photo heroes. A light panel inside a blue section goes back to blue. */
:root {
	--sl-focus: var(--wp--preset--color--blue);
}

:is(.has-blue-background-color, .has-black-titles-background-color, .has-black-text-background-color, .wp-block-cover, .site-footer) {
	--sl-focus: #fff;
}

:is(.has-blue-background-color, .has-black-titles-background-color, .has-black-text-background-color, .wp-block-cover, .site-footer) :is(.has-white-background-color, .has-cream-background-color, .has-gray-light-background-color, .is-style-card, .is-style-quote-box) {
	--sl-focus: var(--wp--preset--color--blue);
}

:focus-visible {
	outline: 2px solid var(--sl-focus);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 2000;
	padding: 8px 16px;
	background: var(--wp--preset--color--blue);
	color: #fff;
	border-radius: 4px;
}

.skip-link:focus {
	top: 12px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Links that open in a new tab get an icon, drawn as a mask so it takes the
   link's color. The second `content` line gives screen readers the words;
   the first keeps the icon in browsers that do not know that syntax. Image
   links are left alone. To hide the icon somewhere, remove the drawing
   (width, mask), never `content`, or the words go with it. */
a[target="_blank"]:not(:has(img))::after {
	content: "";
	content: "" / " (opens in a new tab)";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-left: 0.35em;
	vertical-align: -0.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Headings inherit white inside a white-text section, so a blue band does
   not need every heading recolored by hand. */
.has-white-color :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

.site-main {
	padding-top: var(--sl-header-height);
}

.site-main--plain {
	padding-top: 80px;
	padding-bottom: 80px;
}

/*-------------------------------------------------------------------------*/

/* 3. SPACING BETWEEN BLOCKS */

/*-------------------------------------------------------------------------*/

/* The Cwicly build spaced text with bottom margins, not gaps. theme.json sets
   blockGap to 0, and these put the margins back. Any margin set on a block in
   the editor is inline and still wins. */

/* :is() rather than :where() on purpose. Core resets these margins with
   `:root :where(.is-layout-flow) > *`, which carries the weight of one class,
   so these rules need a class plus an element to win. */

:is(.is-layout-flow, .is-layout-constrained) > :is(p, ul, ol, figure, .wp-block-buttons, .wp-block-table, .wp-block-tablepress-table) {
	margin-block-end: 24px;
}

:is(.is-layout-flow, .is-layout-constrained) > :is(h1, h2, h5, h6) {
	margin-block-end: 24px;
}

:is(.is-layout-flow, .is-layout-constrained) > :is(h3, h4) {
	margin-block-start: 12px;
	margin-block-end: 4px;
}

:is(.is-layout-flow, .is-layout-constrained) > :is(h3, h4):first-child {
	margin-block-start: 0;
}

:is(.wp-block-group, .wp-block-column, .wp-block-cover__inner-container, .wp-block-media-text__content) > :last-child {
	margin-block-end: 0;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.editor-styles-wrapper ul.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	padding-left: 20px;
}

.entry-content ul ul,
.entry-content ol ol {
	margin-block-end: 0;
}

/*-------------------------------------------------------------------------*/

/* 4. HEADER AND NAVIGATION */

/*-------------------------------------------------------------------------*/

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	background: #fff;
	box-shadow: 0 0 20px 0 rgba(42, 42, 42, 0.35);
	transition: transform 0.5s ease;
}

.site-header.is-hidden {
	transform: translateY(-110%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1620px;
	margin: 0 auto;
	padding: 32px var(--sl-gutter) 36px;
}

.site-header__logo {
	display: block;
	flex-shrink: 0;
}

.site-header__logo img {
	display: block;
	width: 165px;
	height: 60px;
	transition: opacity var(--sl-ease);
}

.site-header__logo:hover img {
	opacity: 0.6;
}

/* The menu switches to the drawer below 1200px. The client's seven top-level
   items need about 1,140px with the logo, so 992px let them wrap. The same
   number is in assets/js/theme.js. */

.site-nav__menu,
.site-nav__menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu {
	display: flex;
	align-items: center;
}

.site-nav__menu li {
	position: relative;
}

.site-nav__menu a,
.site-nav__menu .site-nav__label {
	display: flex;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

.site-nav__menu > li > a,
.site-nav__menu > li > .site-nav__label {
	padding: 12px 14px;
	border-radius: var(--sl-radius);
	font-size: 13px;
	font-weight: 700;
	line-height: 28.8px;
	text-align: center;
	text-transform: uppercase;
	transition: all 0.4s ease;
}

/* Dropdown toggle: a caret button after any item with a submenu. Mouse users
   get the submenu on hover; this is the keyboard and touch way in. */
.site-nav__sub-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blue);
	cursor: pointer;
}

.site-nav__sub-toggle::before {
	content: "";
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s ease;
}

.site-nav__menu li.is-open > .site-nav__sub-toggle::before {
	transform: rotate(180deg);
}

.site-nav__toggle,
.site-nav__backdrop {
	display: none;
}

/* The current page's top-level item, or the one it sits under, gets a faint
   gray background, in the drawer as well. :where() keeps this weaker than
   the hover and open states, so an open dropdown still turns its tab white. */
.site-nav__menu > li:where(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-page-ancestor) > :is(a, .site-nav__label) {
	background: var(--sl-nav-current);
}

/* --- Desktop, 1200px and up --- */

@media (min-width: 1200px) {
	.site-header__inner {
		position: relative;
	}

	.site-nav__menu > li > a:hover,
	.site-nav__menu > li > a:focus-visible,
	.site-nav__menu > li:hover > :is(a, .site-nav__label),
	.site-nav__menu > li.is-open > :is(a, .site-nav__label) {
		background: #fff;
		filter: drop-shadow(0 4px 12px rgba(42, 42, 42, 0.2));
	}

	/* An open item with a submenu becomes a tab joined to its panel: square
	   bottom corners, and its shadow clipped at the bottom edge so it does not
	   fall across the panel. It sits above the panel, so the panel's own shadow
	   is hidden behind it where the two meet. */
	.site-nav__menu > li.menu-item-has-children:hover > :is(a, .site-nav__label),
	.site-nav__menu > li.menu-item-has-children.is-open > :is(a, .site-nav__label) {
		position: relative;
		z-index: 11;
		border-radius: var(--sl-radius) var(--sl-radius) 0 0;
		box-shadow: var(--sl-nav-shadow);
		filter: none;
		clip-path: inset(-30px -30px 0 -30px);
	}

	/* Room for the caret inside the item. */
	.site-nav__menu > li.menu-item-has-children > :is(a, .site-nav__label) {
		padding-right: 32px;
	}

	.site-nav__menu > li > .site-nav__sub-toggle {
		position: absolute;
		top: 50%;
		right: 8px;
		z-index: 12;
		width: 24px;
		height: 24px;
		margin-top: -12px;
		border-radius: 4px;
	}

	/* Plain dropdown. Hidden with visibility rather than display, so it can
	   fade, and so a hidden submenu takes no Tab stops. */
	.site-nav__menu > li > .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		min-width: 260px;
		padding: 10px;
		border-radius: 0 var(--sl-radius) var(--sl-radius) var(--sl-radius);
		background: #fff;
		box-shadow: var(--sl-nav-shadow);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
	}

	.site-nav__menu > li:hover > .sub-menu,
	.site-nav__menu > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
	}

	/* A hover bridge across the gap, so the menu does not close on the way down. */
	.site-nav__menu > li > .sub-menu::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 12px;
	}

	.site-nav__menu .sub-menu a,
	.site-nav__menu .sub-menu .site-nav__label {
		padding: 10px 12px;
		border-radius: 4px;
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
	}

	.site-nav__menu .sub-menu a:hover,
	.site-nav__menu .sub-menu a:focus-visible,
	.site-nav__menu .sub-menu .current-menu-item > a {
		background: var(--wp--preset--color--cream);
	}

	/* Items deeper than the first submenu only show inside a mega menu. */
	.site-nav__menu > li:not(.is-mega) .sub-menu .sub-menu,
	.site-nav__menu .sub-menu .site-nav__sub-toggle {
		display: none;
	}

	/* Mega menu: the submenu spans the header's inner width, and each child
	   becomes a column with its own children listed under it. */
	.site-nav__menu > li.is-mega {
		position: static;
	}

	.site-nav__menu > li.is-mega > .sub-menu {
		left: var(--sl-gutter);
		right: var(--sl-gutter);
		/* Just below the logo, so a wide panel never covers it: 32px header
		   padding plus the 60px logo plus 12px. The open tab stretches down to
		   meet it (below). Change both if the header padding or logo does. */
		top: calc(32px + 60px + 12px);
		border-radius: var(--sl-radius);
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 10px 24px;
		padding: 24px;
	}

	.site-nav__menu > li.is-mega > .sub-menu::before {
		height: 24px;
	}

	/* The link's bottom sits 15.6px above the mega panel (centered 52.8px
	   link in the 60px logo row). The open tab grows down by that much, with a
	   matching negative margin so nothing else in the header moves. */
	.site-nav__menu > li.is-mega:hover > :is(a, .site-nav__label),
	.site-nav__menu > li.is-mega.is-open > :is(a, .site-nav__label) {
		margin-bottom: -15.6px;
		padding-bottom: calc(12px + 15.6px);
		transition: background-color 0.4s ease;
	}

	.site-nav__menu > li.is-mega > .sub-menu > li > :is(a, .site-nav__label) {
		margin-bottom: 4px;
		font-size: 13px;
		font-weight: 700;
		text-transform: uppercase;
	}

	.site-nav__menu > li.is-mega > .sub-menu > li > .site-nav__label {
		padding-bottom: 8px;
		border-bottom: 1px solid var(--wp--preset--color--cream);
		border-radius: 0;
	}

	.site-nav__menu > li.is-mega .sub-menu .sub-menu {
		display: block;
		position: static;
		padding: 0;
	}
}

/* --- Drawer, below 1200px --- */

@media (max-width: 1199px) {
	.site-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 3;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--wp--preset--color--blue);
		cursor: pointer;
	}

	.site-nav__bars {
		position: relative;
		display: block;
		width: 24px;
		height: 16px;
	}

	.site-nav__bars span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 10em;
		background: currentColor;
		transition: transform 0.4s ease, opacity 0.4s ease;
	}

	.site-nav__bars span:nth-child(1) { top: 0; }
	.site-nav__bars span:nth-child(2) { top: 7px; }
	.site-nav__bars span:nth-child(3) { top: 14px; }

	.is-nav-open .site-nav__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.is-nav-open .site-nav__bars span:nth-child(2) { opacity: 0; }
	.is-nav-open .site-nav__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 2;
		box-sizing: border-box;
		width: min(400px, 100%);
		height: 100vh;
		height: 100dvh;
		padding: 100px 10px 30px;
		overflow-y: auto;
		background: #fff;
		visibility: hidden;
		transform: translateX(100%);
		transition: transform 0.4s ease, visibility 0.4s;
	}

	.is-nav-open .site-nav {
		visibility: visible;
		transform: translateX(0);
	}

	.site-nav__menu {
		flex-direction: column;
		align-items: stretch;
		padding-top: 10px;
		border-top: 1px solid var(--wp--preset--color--cream);
	}

	/* Each row is the link with its caret button beside it. */
	.site-nav__menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.site-nav__menu li > :is(a, .site-nav__label) {
		flex: 1;
	}

	.site-nav__menu > li > a,
	.site-nav__menu > li > .site-nav__label {
		padding: 10px 15px;
		font-size: 16px;
		font-weight: 400;
		text-align: left;
		text-transform: none;
	}

	.site-nav__sub-toggle {
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		border-radius: var(--sl-radius);
	}

	.site-nav__sub-toggle:hover {
		background: var(--wp--preset--color--cream);
	}

	.site-nav__menu .sub-menu {
		display: none;
		flex-basis: 100%;
		margin: 0 0 8px 15px;
		padding-left: 12px;
		border-left: 2px solid var(--wp--preset--color--cream);
	}

	.site-nav__menu li.is-open > .sub-menu {
		display: block;
	}

	/* Mega columns: the column's own links always show under it in the drawer. */
	.site-nav__menu .sub-menu .sub-menu {
		display: block;
		margin-bottom: 4px;
	}

	.site-nav__menu .sub-menu .site-nav__sub-toggle {
		display: none;
	}

	.site-nav__menu .sub-menu :is(a, .site-nav__label) {
		padding: 8px 10px;
		font-size: 15px;
		line-height: 1.4;
	}

	.site-nav__menu .sub-menu .site-nav__label {
		font-size: 13px;
		font-weight: 700;
		text-transform: uppercase;
	}

	.site-nav__backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1;
		background: rgba(0, 0, 0, 0.21);
	}

	html.has-nav-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header,
	.site-nav,
	.site-nav__bars span,
	.site-nav__menu .sub-menu,
	.site-nav__sub-toggle::before {
		transition: none;
	}
}

/*-------------------------------------------------------------------------*/

/* 5. FOOTER */

/*-------------------------------------------------------------------------*/

.site-footer {
	position: relative;
	padding: 60px 0 200px;
	border-top: 30px solid rgba(255, 255, 255, 0.2);
	/* The 30px band on top is a translucent white border over the blue, as in the Cwicly build. */
	background: var(--wp--preset--color--blue) url(assets/images/bg_mark_blue_bottom_right@2x.png) no-repeat 100% 100% / 420px 400px;
	color: #fff;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.7;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 var(--sl-gutter);
}

.site-footer a {
	color: #fff;
}

.site-footer__logo {
	display: block;
	margin-bottom: 30px;
}

.site-footer__logo img {
	display: block;
	width: 218px;
	height: 79px;
}

.site-footer p {
	margin: 0;
	text-align: center;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav {
	margin-bottom: 21px;
}

.site-footer__menu a {
	display: flex;
	margin-left: -12px;
	padding: 0 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.5);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.1;
	text-decoration: none;
}

.site-footer__menu li:last-child a {
	border-right: 0;
}

.site-footer__menu a:hover {
	text-decoration: underline;
}

.site-footer__menu--legal a {
	margin-top: 5px;
	font-size: 13px;
	line-height: 1;
}

/*-------------------------------------------------------------------------*/

/* 6. BLOCK STYLES */

/*-------------------------------------------------------------------------*/

/* Card: white panel with a soft shadow. */
.wp-block-group.is-style-card,
.wp-block-column.is-style-card {
	padding: 24px;
	border-radius: var(--sl-radius);
	background-color: #fff;
	box-shadow: var(--sl-shadow);
}

/* Link card: icon, label and an arrow, the whole card clickable.
   Put one link in the label. Its click area stretches over the card. */
.wp-block-group.is-style-link-card {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	margin-block-end: 24px;
	padding: 12px 22px;
	border-radius: var(--sl-radius);
	background-color: #fff;
	box-shadow: var(--sl-shadow-soft);
	color: var(--wp--preset--color--blue);
	transition: background-color var(--sl-ease);
}

.wp-block-group.is-style-link-card:hover,
.wp-block-group.is-style-link-card:focus-within {
	background-color: var(--wp--preset--color--cream);
}

.wp-block-group.is-style-link-card .wp-block-icon {
	flex-shrink: 0;
	color: var(--wp--preset--color--blue);
}

.wp-block-group.is-style-link-card .wp-block-icon svg {
	display: block;
	width: 30px;
	height: 30px;
}

.wp-block-group.is-style-link-card p {
	flex: 1;
	margin: 0;
	color: var(--wp--preset--color--blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 30px;
	text-transform: uppercase;
}

.wp-block-group.is-style-link-card p a {
	color: inherit;
	text-decoration: none;
}

.wp-block-group.is-style-link-card p a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-group.is-style-link-card p a:focus-visible {
	outline: 0;
}

.wp-block-group.is-style-link-card:has(a:focus-visible) {
	outline: 2px solid var(--sl-focus);
	outline-offset: 2px;
}

/* The arrow. Drawn in CSS so every card gets it without a second icon block. */
.wp-block-group.is-style-link-card::after {
	content: "";
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background-color: var(--wp--preset--color--cream);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23375874' d='M27.707 15.293l-9-9c-0.181-0.181-0.431-0.293-0.707-0.293-0.553 0-1 0.448-1 1 0 0.276 0.112 0.526 0.293 0.707l7.293 7.293h-19.586c-0.552 0-1 0.448-1 1s0.448 1 1 1h19.586l-7.293 7.293c-0.181 0.181-0.293 0.431-0.293 0.707 0 0.553 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293l9-9c0.181-0.181 0.293-0.431 0.293-0.707s-0.112-0.526-0.293-0.707z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

/* Down arrow, for link cards that jump to a section on the same page. */
.wp-block-group.is-style-link-card.is-jump::after {
	transform: rotate(90deg);
}

/* Callout: the "Why it matters" boxes. */
.wp-block-group.is-style-callout {
	margin-block-end: 24px;
	padding: 24px;
	border-radius: var(--sl-radius);
	background-color: rgba(132, 162, 187, 0.27);
	color: var(--wp--preset--color--blue);
}

.wp-block-group.is-style-callout p {
	color: var(--wp--preset--color--blue);
	font-style: italic;
	line-height: 1.8;
}

.wp-block-group.is-style-callout p.is-style-eyebrow {
	font-style: normal;
}

/* Quote box: the pull quote beside the board list. */
.wp-block-group.is-style-quote-box,
.wp-block-column.is-style-quote-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 36px;
	border: none;
	border-radius: var(--sl-radius);
	/* 75% white, not the Cwicly 58%: blue text on 58% white over the blue
	   section measured 3.7:1, short of 4.5:1. At 75% it is about 5:1. */
	background-color: rgba(255, 255, 255, 0.75);
	color: var(--wp--preset--color--blue);
}

.wp-block-group.is-style-quote-box p {
	color: var(--wp--preset--color--blue);
}

/* Page hero: photo with the page title over it. */
.wp-block-cover.is-style-page-hero :is(h1, h2) {
	color: #fff;
	text-shadow: 0 -1px 12px rgba(0, 0, 0, 0.79);
}

.wp-block-cover.is-style-page-hero .wp-block-cover__image-background {
	filter: saturate(0.75);
}

@media (max-width: 576px) {
	.wp-block-cover.is-style-page-hero {
		min-height: 280px !important;
	}
}

/* Lead paragraph: the larger intro text. */
p.is-style-lead {
	font-size: clamp(19px, 0.227vw + 17.41px, 20px);
	font-weight: 500;
	line-height: 1.6;
}

/* Eyebrow: small uppercase label. */
p.is-style-eyebrow {
	margin-block-end: 12px;
	color: var(--wp--preset--color--blue);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Small button. */
.wp-block-button.is-style-small .wp-block-button__link {
	padding: 12px 18px;
	font-size: 14px;
}

/* Grayscale gallery. */
.wp-block-gallery.is-style-grayscale img {
	filter: grayscale(100%);
	background: #fff;
}

/* Image that fills its column, for the founder portrait and similar. */
.wp-block-image.is-style-fill {
	height: 100%;
	min-height: 400px;
	margin: 0;
}

.wp-block-image.is-style-fill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*-------------------------------------------------------------------------*/

/* 7. CORE BLOCK ADJUSTMENTS */

/*-------------------------------------------------------------------------*/

/* Full-width sections never carry a bottom margin into the next one. */
.entry-content > .alignfull,
.is-root-container > .alignfull {
	margin-block: 0;
}

/* Cover: keep the hero title readable at every width, and white like the cover's own text. */
.wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
}

.wp-block-cover:not(.is-light) :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

/* Home hero: text lines up with the logo. The header's content box is 1620px
   wide, with its 30px padding outside it. The cover has the same 30px
   padding, so capping and centering its content at 1620px puts both on the
   same left edge at every width.
   The doubled classes are on purpose: core sets `margin: 0; width: auto` on a
   cover with a content position using five classes, and this needs six. */
.wp-block-cover.is-home-hero.is-home-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.wp-block-cover.is-home-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1620px;
	margin-inline: auto;
}

/* Home hero: 710px tall, 640px at tablet width, centered text on phones. */
@media (max-width: 992px) {
	.wp-block-cover.is-home-hero {
		min-height: 640px !important;
	}
}

@media (max-width: 576px) {
	.wp-block-cover.is-home-hero :is(h1, h2, p) {
		text-align: center;
	}

	.wp-block-cover.is-home-hero .wp-block-buttons {
		justify-content: center;
	}
}

/* Lists with a little air between items, as on Application Guidelines. */
.wp-block-list.is-spaced {
	padding-left: 36px;
}

.wp-block-list.is-spaced > li {
	padding-block: 4px;
}

/* Lists inside cards sit tighter to the edge. */
.is-style-card .wp-block-list {
	padding-left: 16px;
}

/* Media and text, full width: the alternating photo and text rows. */
.wp-block-media-text.alignfull {
	min-height: 640px;
}

.wp-block-media-text.alignfull > .wp-block-media-text__content {
	padding: 60px 100px;
}

@media (max-width: 992px) {
	.wp-block-media-text.alignfull.is-stacked-on-mobile {
		grid-template-columns: 100% !important;
		min-height: 0;
	}

	.wp-block-media-text.alignfull.is-stacked-on-mobile > .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
		min-height: 480px;
	}

	.wp-block-media-text.alignfull.is-stacked-on-mobile > .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
		padding: 60px 30px;
	}
}

@media (max-width: 576px) {
	.wp-block-media-text.alignfull.is-stacked-on-mobile > .wp-block-media-text__media {
		min-height: 360px;
	}
}

/* Columns stack at the Cwicly tablet breakpoint rather than core's 782px. */
@media (max-width: 992px) {
	.wp-block-columns.is-stacked-tablet {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-stacked-tablet > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Grid groups stack on phones. Core's own responsive grid (minimum column
   width) writes an invalid rule in WordPress 7.1.4 when the row and column
   gaps differ, so grids use a fixed column count and stack here instead. */
@media (max-width: 768px) {
	.wp-block-group.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Icons sit on the text baseline when used inline in a row. */
.wp-block-icon svg {
	display: block;
}

/* Small round icon, as on the staff email links. */
.wp-block-group.is-email-row {
	align-items: center;
}

.wp-block-group.is-email-row .wp-block-icon {
	padding: 6px;
	border-radius: 99px;
	background: var(--wp--preset--color--blue-light);
	color: #fff;
	transition: background-color var(--sl-ease);
}

.wp-block-group.is-email-row .wp-block-icon svg {
	width: 16px;
	height: 16px;
}

.wp-block-group.is-email-row:hover .wp-block-icon {
	background: var(--wp--preset--color--black-titles);
}

.wp-block-group.is-email-row p {
	margin: 0;
	font-size: 12px;
}

/* Gallery captions on the History page. */
.wp-block-gallery.is-style-grayscale .wp-block-image {
	padding: 12px;
	border-radius: var(--sl-radius);
	background: #fff;
}

/*-------------------------------------------------------------------------*/

/* 8. PLUGINS */

/*-------------------------------------------------------------------------*/

/* TablePress: Grantees (table 1) and the grant timeline (table 2). */
:is(.tablepress-id-1, .tablepress-id-2) tbody {
	background-color: #fff;
}

:is(.tablepress-id-1, .tablepress-id-2) > * + tbody > * > *,
:is(.tablepress-id-1, .tablepress-id-2) > tbody > * ~ * > *,
:is(.tablepress-id-1, .tablepress-id-2) > tfoot > * > * {
	border-top: 4px solid var(--wp--preset--color--cream) !important;
}

:is(.tablepress-id-1, .tablepress-id-2) :is(thead, tfoot) th {
	background-color: var(--wp--preset--color--cream);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	vertical-align: middle;
}

:is(.tablepress-id-1, .tablepress-id-2) th {
	padding: 12px 8px;
}

:is(.tablepress-id-1, .tablepress-id-2) td {
	background-color: #fff;
	font-size: 14px;
	line-height: 1.2;
	padding: 12px 8px !important;
	vertical-align: middle !important;
}

:is(.tablepress-id-1, .tablepress-id-2) :is(.sorting:hover, .sorting_asc, .sorting_desc) {
	background-color: var(--wp--preset--color--blue) !important;
	color: #fff !important;
}

.tablepress-id-1 :is(th, td):is(.column-5, .column-6) {
	text-align: center !important;
}

.dtfh-floatingparent.dtfh-floatingparenthead {
	height: 60px !important;
}

/* Gravity Forms, Orbital theme. Fields as on the Biscuit Dev contact page:
   white, no visible border, a soft shadow, 4px corners. The submit button
   matches the site's buttons (theme.json, styles.elements.button).

   Orbital is styled through its --gf-* properties. Gravity Forms prints a
   block of them on #gform_wrapper_N for every form, which outranks any
   class, so this sets the leaf properties that block does not print, and
   uses !important only on the few it does print. */
.gform_wrapper.gform-theme--framework.gform-theme--orbital {
	--gf-ctrl-bg-color: #fff;
	--gf-ctrl-bg-color-hover: #fff;
	--gf-ctrl-bg-color-focus: #fff;
	--gf-ctrl-border-color: #fff !important;
	--gf-ctrl-border-color-hover: #fff;
	--gf-ctrl-border-color-focus: var(--wp--preset--color--blue-light);
	--gf-ctrl-radius: 4px;
	--gf-ctrl-textarea-radius: 4px;
	--gf-ctrl-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
	--gf-ctrl-outline-color-focus: rgba(132, 162, 187, 0.35);
	--gf-ctrl-font-family: inherit;
	--gf-ctrl-font-size: 16px;
	--gf-ctrl-size-md: 50px; /* --gf-ctrl-size itself is printed */
	--gf-ctrl-padding-x: 12px;
	--gf-ctrl-label-font-family-primary: inherit;
	--gf-ctrl-label-font-size-primary: 16px;
	--gf-ctrl-label-font-weight-primary: 600;
	--gf-ctrl-label-color-primary: var(--wp--preset--color--black-titles) !important;
	--gf-ctrl-label-font-family-secondary: inherit;
	--gf-ctrl-label-color-secondary: var(--wp--preset--color--black-text) !important;
	--gf-ctrl-label-font-family-tertiary: inherit;
	--gf-ctrl-label-font-family-req: inherit;
	--gf-ctrl-label-font-size-req: 13px;
	--gf-ctrl-label-font-weight-req: 600;
	--gf-ctrl-desc-font-family: inherit;
	--gf-ctrl-desc-color: var(--wp--preset--color--black-text);
	--gf-form-gap-y: 24px;

	--gf-ctrl-btn-font-family: inherit;
	--gf-ctrl-btn-font-size-md: 16px;
	--gf-ctrl-btn-font-weight: 700;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-radius: 4px;
	--gf-ctrl-btn-padding-x-md: 24px;
	--gf-ctrl-btn-size-md: 60px;
	--gf-ctrl-btn-shadow: none;
	--gf-ctrl-btn-bg-color-primary: var(--wp--preset--color--blue);
	--gf-ctrl-btn-bg-color-hover-primary: var(--wp--preset--color--black-titles);
	--gf-ctrl-btn-bg-color-focus-primary: var(--wp--preset--color--black-titles);
	--gf-ctrl-btn-border-color-primary: var(--wp--preset--color--blue);
	--gf-ctrl-btn-border-color-hover-primary: var(--wp--preset--color--black-titles);
	--gf-ctrl-btn-border-color-focus-primary: var(--wp--preset--color--black-titles);
	--gf-ctrl-btn-color-primary: #fff;
	--gf-ctrl-btn-color-hover-primary: #fff;
	--gf-ctrl-btn-color-focus-primary: #fff;
}

/* The button letter spacing has no Orbital property, and Orbital's own
   button rule outranks a class selector here. */
.gform_wrapper.gform-theme--orbital .gform_footer .gform_button {
	letter-spacing: 1px !important;
}

/*-------------------------------------------------------------------------*/

/* 9. UTILITIES */

/*-------------------------------------------------------------------------*/

.text-wrap-balance {
	text-wrap: balance;
}
