/* Grow Social Capital theme styles. Breakpoints: 921px (tablet), 544px (phone). */

/* ---------- 1. Tokens and base ---------- */

:root {
	--gsc-slant: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
	--gsc-slant-hover: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
	--gsc-slant-small: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
	--gsc-slant-small-hover: polygon(0 0, 100% 8%, 100% 100%, 0 92%);

	--gsc-body-size: 20px;

	--gsc-section-pad-y: 3em;
	--gsc-section-pad-x: 3em;
}

@media (max-width: 921px) {
	:root {
		--gsc-body-size: 18px;
		--gsc-section-pad-x: 2em;
	}
}

@media (max-width: 544px) {
	:root {
		--gsc-section-pad-x: 1.5em;
	}
}

/* 1rem = 20px. */
html {
	font-size: 125%;
}

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

body {
	font-size: var(--gsc-body-size);
}

/* Anchor links glide to their target, unless the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

:target {
	scroll-margin-top: 1.5rem;
}

/* Clip, not hidden, so sticky positioning still works. */
.wp-site-blocks {
	overflow-x: clip;
}

*,
::before,
::after {
	box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure,
blockquote {
	margin-top: 0;
}

sub,
sup {
	position: relative;
	font-size: 75%;
	line-height: 0;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
}

p {
	margin-bottom: 1.75em;
}

.entry-content p {
	margin-bottom: 1.6em;
}

h1, h2, h3, h4, h5, h6,
.entry-content > :where(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 20px;
}

.entry-content:not(.gsc-page-content) .wp-block-image,
.entry-content:not(.gsc-page-content) .wp-block-embed {
	margin-top: 2em;
	margin-bottom: 3em;
}

.entry-content:not(.gsc-page-content) > :is(.wp-block-image, .wp-block-embed):last-child {
	margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
	padding: revert;
	padding-left: 20px;
	margin: revert;
}

h6 {
	line-height: 1.25;
}

@media (max-width: 921px) {
	h1 { font-size: 30px; }
	h2 { font-size: 25px; }
	h3 { font-size: 20px; }
}

ul,
ol {
	margin: 0 0 1.5em 3em;
	padding: 0;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

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

figure {
	margin: 0;
}

a {
	transition: all 0.2s linear;
}

blockquote {
	border: 0;
	font-style: inherit;
	font-size: 1.1em;
	line-height: 1.4;
	margin: 1.5em 1em 1.5em 3em;
	padding: 20px;
	position: relative;
}

blockquote cite {
	font-size: 1.25rem;
}

/* Quote block: a pale-blue box with a teal left edge and a slanted teal quote badge. */
.wp-block-quote {
	background-color: var(--wp--preset--color--pale-blue);
	border-left: 6px solid var(--wp--preset--color--teal);
	color: var(--wp--preset--color--navy);
	margin: 2em 0;
	padding: 28px 32px 28px 104px;
}

.has-pale-blue-background-color .wp-block-quote {
	background-color: var(--wp--preset--color--white);
}

.wp-block-quote::before,
.wp-block-quote::after {
	content: "";
	height: 52px;
	left: 30px;
	position: absolute;
	top: 28px;
	width: 52px;
}

.wp-block-quote::before {
	background-color: var(--wp--preset--color--teal);
	clip-path: var(--gsc-slant-small);
}

.wp-block-quote::after {
	background-color: var(--wp--preset--color--white);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 7 14 10'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") center / 26px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 7 14 10'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E") center / 26px no-repeat;
}

.wp-block-quote > :last-child {
	margin-bottom: 0;
}

.wp-block-quote cite {
	color: var(--wp--preset--color--dark-teal);
	display: block;
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 600;
	margin-top: 12px;
}

.wp-block-quote cite::before {
	content: "\2014\00a0";
}

@media (max-width: 767px) {
	.wp-block-quote {
		padding: 80px 20px 20px;
	}

	.wp-block-quote::before,
	.wp-block-quote::after {
		height: 44px;
		left: 20px;
		top: 20px;
		width: 44px;
	}

	.wp-block-quote::after {
		-webkit-mask-size: 22px;
		mask-size: 22px;
	}
}

/* Pull quote mark. */
.wp-block-pullquote blockquote::before {
	content: "\201D";
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 6rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	transform: rotate(180deg);
}

/*
 * Selected text: navy on light backgrounds, gold on dark ones, so it never disappears into the
 * section behind it. The nested rules follow the nearest background (a light box inside a dark
 * section, or a dark one inside a light section).
 */
::selection {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

:is(.has-navy-background-color, .has-dark-teal-background-color, .has-near-black-background-color, .wp-block-cover:not(.is-light), .gsc-site-footer) ::selection,
:is(.has-navy-background-color, .has-dark-teal-background-color, .has-near-black-background-color)::selection,
:is(.has-white-background-color, .has-pale-blue-background-color, .has-gold-background-color, .has-teal-background-color, .wp-block-cover.is-light) :is(.has-navy-background-color, .has-dark-teal-background-color, .has-near-black-background-color, .wp-block-cover:not(.is-light)) ::selection {
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--near-black);
}

:is(.has-navy-background-color, .has-dark-teal-background-color, .has-near-black-background-color, .wp-block-cover:not(.is-light), .gsc-site-footer) :is(.has-white-background-color, .has-pale-blue-background-color, .has-gold-background-color, .has-teal-background-color, .wp-block-cover.is-light) ::selection {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

.wp-block-separator {
	margin: 20px auto;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- 2. Content layout ---------- */

.gsc-page-content {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.entry-content.gsc-page-content > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	margin-block-start: 0;
}

/* Overlap by 1px to hide the hairline beside slant dividers. */
.entry-content.gsc-page-content > .wp-block-group:has(> .gsc-divider) {
	margin-block: -1px;
}

.entry-content.gsc-page-content > .wp-block-group:has(> .gsc-divider) + * {
	margin-block-start: -1px;
}

@media (min-width: 1024px) {
	.entry-content.gsc-page-content > .wp-block-group:first-child,
	.entry-content.gsc-page-content > .wp-block-cover:first-child {
		padding-top: 0 !important;
	}
}

.entry-content.gsc-page-content > .alignfull {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	max-width: 100vw;
	width: 100vw;
}

@media (max-width: 1200px) {
	.entry-content.gsc-page-content > .alignwide {
		margin-left: -20px;
		margin-right: -20px;
		max-width: none;
	}
}

.entry-content > :is(.wp-block-group, .wp-block-cover, .wp-block-columns) {
	padding: var(--gsc-section-pad-y) var(--gsc-section-pad-x);
}

.entry-content.gsc-page-content > .wp-block-cover .wp-block-cover__inner-container {
	max-width: none;
}

@media (min-width: 921px) {
	.entry-content .wp-block-group.alignwide:not(.inherit-container-width) > :where(:not(.alignleft):not(.alignright)) {
		max-width: calc(1200px + 80px);
	}
}

.entry-content .wp-block-columns {
	margin-bottom: 0;
}

.entry-content > .wp-block-buttons {
	margin-bottom: 1.5em;
}

@media (max-width: 544px) {
	.wp-block-columns .wp-block-column:not(:last-child) {
		margin-bottom: 20px;
	}
}

.entry-content .wp-block-media-text .wp-block-media-text__content {
	padding: 0 0 0 8%;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	padding: 0 8% 0 0;
}

.entry-content .wp-block-media-text.has-background .wp-block-media-text__content {
	padding: 8%;
}

@media (max-width: 600px) {
	.entry-content .wp-block-media-text .wp-block-media-text__content,
	.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
		padding: 8% 0 0;
	}
}

.wp-block-cover__inner-container {
	position: relative;
	z-index: 3;
}

/* "Page with title" template. */
.gsc-page-header {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px 1.5em;
}

.gsc-page-header + .gsc-page-content {
	margin-top: 0;
}

.gsc-page-header .entry-title {
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 0;
}

@media (min-width: 922px) {
	.gsc-page-header {
		padding-top: 60px;
	}

	.gsc-main:has(> .gsc-page-header) {
		padding-bottom: 60px;
	}
}

/* ---------- 3. Header ---------- */

.gsc-site-header {
	position: relative;
	z-index: 99;
}

.gsc-header > * {
	margin-block-start: 0;
}

.gsc-header__logo img {
	display: block;
}

.gsc-header .gsc-header__top {
	display: none;
}

.gsc-header__main {
	gap: 0;
	min-height: 96px;
	padding: 18px 20px;
}

.gsc-header-nav {
	display: none !important;
}

@media (min-width: 922px) {
	.gsc-site-header {
		margin-bottom: -30px;
	}

	.gsc-header .gsc-header__top {
		display: flex;
		gap: 20px;
		height: 60px;
		padding: 0 35px;
		position: relative;
		z-index: 9;
	}

	.gsc-header .gsc-header__top:has(.gsc-search-overlay__panel:not([hidden])) {
		position: static;
	}

	.gsc-header__main {
		height: 140px;
		min-height: 0;
		padding: 0 35px;
		transform: translateY(-2rem);
	}

	.gsc-header-nav {
		display: flex !important;
	}

	.gsc-mobile-nav {
		display: none !important;
	}
}

@media (max-width: 921px) and (min-width: 545px) {
	.gsc-header__main {
		min-height: 136px;
	}
}

@media (max-width: 544px) {
	.gsc-header__logo img {
		width: 180px;
	}
}

/* "Square icons" social links style. */
.wp-block-social-links.is-style-square-icons {
	gap: 12px;
	margin: 0;
	padding: 0;
}

.wp-block-social-links.is-style-square-icons .wp-social-link {
	background: none !important;
	border-radius: 0;
	margin: 0;
}

.wp-block-social-links.is-style-square-icons .wp-block-social-link-anchor {
	padding: 0;
}

.wp-block-social-links.is-style-square-icons .wp-social-link svg {
	fill: currentColor;
	height: 28px;
	width: 28px;
}

.wp-block-social-links.is-style-square-icons .wp-social-link:hover {
	color: var(--wp--preset--color--gold) !important;
	transform: none;
}

/* Subscribe button. */
.gsc-header__cta {
	gap: 0;
}

.gsc-header__cta .wp-block-button__link {
	clip-path: var(--gsc-slant-small);
	font-size: 16px;
	line-height: 1.1;
	padding: 6px 15px;
	transition: clip-path 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.gsc-header__cta .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--gold) !important;
	clip-path: var(--gsc-slant-small-hover);
	color: var(--wp--preset--color--near-black) !important;
	transform: none;
}

/* Desktop menu. */
.gsc-header-nav .wp-block-navigation__container {
	gap: 0;
}

.gsc-header-nav .wp-block-navigation-item__content {
	font-size: 24px;
	line-height: 40px;
	padding: 0 20px 0 12px;
	position: relative;
	text-decoration: none;
	transition: all 0.2s ease;
	z-index: 1;
}

.gsc-header-nav .wp-block-navigation__submenu-icon {
	display: none;
}

/* Keep the top-level items on one line; on small desktops the logo and menu scale down together. */
@media (min-width: 922px) {
	.gsc-header__main {
		gap: 24px;
	}

	/*
	 * The logo spans both header rows: its artwork is centred on 63px down the page, halfway between
	 * the top of the icons and Subscribe button (16px) and the bottom of the menu items (110px). The
	 * artwork fills 16–78.5% of the SVG's height (3:1 box), so the box's top sits at
	 * 63px - 0.1575 × width. The main row starts 60px - 2rem down the page
	 * (top row height, then the row's lift), hence the margin. (Two classes: core's flex layout
	 * zeroes children's margins.)
	 */
	.gsc-header__main > .gsc-header__logo {
		/* 260px at 922px wide, growing to the full 360px at 1440px, so the menu always has room. */
		--gsc-logo-width: min(360px, calc(260px + (100vw - 922px) * 0.193));

		align-self: flex-start;
		flex-shrink: 0;
		margin-top: calc(3px + 2rem - var(--gsc-logo-width) * 0.1575);
	}

	/* The full-width top row sits over the logo's top half: let clicks through its empty space. */
	.gsc-header .gsc-header__top {
		pointer-events: none;
	}

	.gsc-header .gsc-header__top > * {
		pointer-events: auto;
	}

	.gsc-header__logo img {
		height: auto;
		width: var(--gsc-logo-width);
	}

	.gsc-header-nav {
		--navigation-layout-wrap: nowrap;
	}

	.gsc-header-nav .wp-block-navigation-item__content {
		white-space: nowrap;
	}
}

@media (min-width: 922px) and (max-width: 1279px) {
	.gsc-header-nav .wp-block-navigation-item__content {
		font-size: calc(17px + (100vw - 922px) * 0.0196);
		padding: 0 calc(8px + (100vw - 922px) * 0.0336) 0 calc(5px + (100vw - 922px) * 0.0196);
	}
}

.gsc-header-nav .wp-block-navigation-item__content:hover,
.gsc-header-nav .wp-block-navigation-item__content:active,
.gsc-header-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.gsc-header-nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--navy);
	clip-path: var(--gsc-slant-small);
	color: var(--wp--preset--color--white);
}

.gsc-header-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(even) > .wp-block-navigation-item__content:is(:hover, :active),
.gsc-header-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(even):is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	clip-path: var(--gsc-slant-small-hover);
}

.gsc-header-nav .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--near-black);
}

/* Desktop drop-downs. Specific enough to beat core's right-justified menu rules. */
.gsc-header-nav.wp-block-navigation .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white);
	border: 0;
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
	left: 50%;
	min-width: 220px !important;
	padding: 0;
	right: auto;
	top: 100%;
	transform: translateX(-50%);
	width: max-content !important;
}

.gsc-header-nav .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	line-height: 1.45;
	padding: 10px 20px 10px 12px;
	width: 100%;
}

/* Hamburger: a 44px box, the smallest comfortable tap target. */
.gsc-mobile-nav .wp-block-navigation__responsive-container-open {
	background: var(--wp--preset--color--navy);
	border-radius: 2px;
	color: var(--wp--preset--color--white);
	padding: 9px;
}

.gsc-mobile-nav .wp-block-navigation__responsive-container-open svg {
	height: 26px;
	width: 26px;
}

/* ---------- 4. Mobile menu panel ---------- */

.gsc-mobile-nav.gsc-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: rgba(0, 0, 0, 0.4);
	padding: 0;
}

/* Stops the layer jumping sideways when focus moves to the off-screen close button. */
.gsc-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
	overflow: clip;
}

.admin-bar .gsc-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.gsc-mobile-nav .wp-block-navigation__responsive-close,
.gsc-mobile-nav .wp-block-navigation__responsive-dialog,
.gsc-mobile-nav .wp-block-navigation__responsive-container-content,
.gsc-mobile-nav .wp-block-navigation__overlay-container {
	height: 100%;
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.gsc-overlay {
	box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.1);
	height: 100%;
	margin-left: auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	width: 90%;
}

.gsc-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
	animation: none;
}

@media not (prefers-reduced-motion) {
	.gsc-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
		animation: gsc-fade-in 0.25s ease-in;
	}

	.is-menu-open .gsc-overlay {
		animation: gsc-slide-in 0.2s ease-in;
	}
}

@keyframes gsc-fade-in {
	from {
		background-color: transparent;
	}
}

@keyframes gsc-slide-in {
	from {
		transform: translateX(100%);
	}
}

.gsc-overlay > * {
	margin: 0;
}

.gsc-overlay {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: start;
}

.gsc-overlay > * {
	grid-column: 1 / -1;
}

.gsc-overlay > .gsc-overlay__logo {
	align-self: center;
	grid-column: 1;
	grid-row: 1;
	padding: 20px 0 20px 20px;
}

.gsc-overlay__logo img {
	display: block;
	margin: 0;
	max-width: 100%;
}

.gsc-overlay > .gsc-overlay__close.wp-block-navigation-overlay-close {
	align-self: center;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	height: 44px;
	margin-right: 8px;
	padding: 0;
	width: 44px;
}

.gsc-overlay .gsc-overlay__close svg {
	flex: none;
	height: 36px;
	width: 36px;
}

/* Panel menu (submenu toggles are in assets/js/main.js). */
.gsc-overlay__menu,
.gsc-overlay__menu .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

.gsc-overlay__menu .wp-block-navigation-item {
	display: block;
	position: relative;
	width: 100%;
}

.gsc-overlay__menu .wp-block-navigation-item .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	display: block;
	font-size: 20px;
	line-height: 60px;
	padding: 0 20px;
	text-decoration: none;
}

.gsc-overlay__menu .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 0 20px 0 30px;
}

/* Submenu arrows. */
.gsc-overlay__menu .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	align-items: center;
	display: flex;
}

.gsc-overlay__menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
	background: currentColor;
	content: "";
	flex: none;
	height: 0.67em;
	margin: 0 0.36em 0 0.11em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.5 0.5 15 25'%3E%3Cpath d='M3.022 25.5 15.522 13 3.022.5.522 3l10 10-10 10z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.5 0.5 15 25'%3E%3Cpath d='M3.022 25.5 15.522 13 3.022.5.522 3l10 10-10 10z'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 0.43em;
}

.gsc-overlay__menu .wp-block-navigation-item .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.gsc-overlay__menu :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.gsc-overlay__menu :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--teal);
}

.gsc-overlay__menu .wp-block-navigation__submenu-icon.wp-block-navigation__submenu-icon {
	align-items: flex-start;
	color: var(--wp--preset--color--white);
	display: flex;
	height: 60px;
	margin: 0;
	padding: 20px 20px 0 28px;
	position: absolute;
	right: 0;
	top: 0;
	width: auto;
}

.gsc-overlay__menu .wp-block-navigation__submenu-icon svg {
	display: block;
	fill: currentColor;
	height: 17px;
	stroke: none;
	transition: transform 0.2s ease;
	width: 19px;
}

.gsc-overlay__menu .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotateX(180deg);
}

.gsc-overlay__menu .has-child .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0;
	box-shadow: none;
	color: inherit;
	display: none;
	height: auto !important;
	left: auto;
	min-width: 0 !important;
	opacity: 1 !important;
	overflow: visible !important;
	padding: 0;
	position: static;
	transform: none;
	visibility: visible !important;
	width: 100% !important;
}

.gsc-overlay__menu .has-child .wp-block-navigation__submenu-icon[aria-expanded="true"] + .wp-block-navigation__submenu-container {
	display: block;
}

.gsc-overlay__social {
	padding: 15px 20px !important;
}

@media (max-width: 921px) and (min-width: 545px) {
	.gsc-overlay__menu .wp-block-navigation-item .wp-block-navigation-item__content.wp-block-navigation-item__content {
		font-size: 18px;
		line-height: 54px;
	}

	.gsc-overlay__menu .wp-block-navigation__submenu-icon.wp-block-navigation__submenu-icon {
		height: 54px;
		padding: 17.7px 20px 0 25px;
	}

	.gsc-overlay__menu .wp-block-navigation__submenu-icon svg {
		height: 15.3px;
		width: 17.1px;
	}
}

@media (max-width: 544px) {
	.gsc-overlay__menu :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content.wp-block-navigation-item__content:not(:hover),
	.gsc-overlay__menu :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation__submenu-icon {
		color: var(--wp--preset--color--white);
	}

	.gsc-overlay__social .wp-social-link svg {
		height: 30px;
		width: 30px;
	}
}

.gsc-overlay__cta .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--teal) !important;
}

/* ---------- 5. Footer ---------- */

/* Overlap by 1px to hide the hairline. */
.gsc-site-footer > .gsc-divider:first-child {
	margin-top: -1px;
}

.gsc-footer {
	overflow-wrap: break-word;
}

.gsc-footer > *,
.gsc-footer__primary > *,
.gsc-footer__below > * {
	margin-block-start: 0;
}

.gsc-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.gsc-footer .wp-block-social-links a {
	text-decoration: none;
}

.gsc-footer__primary,
.gsc-footer__below {
	column-gap: 50px;
	display: grid;
	padding: 0 35px;
}

.gsc-footer__primary {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	padding-bottom: 45px;
	padding-top: 45px;
}

.gsc-footer__below {
	align-items: center;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 60px;
	padding-bottom: 20px;
	padding-top: 20px;
}

.gsc-footer .gsc-footer__col > * {
	margin: 0 0 calc(var(--gsc-body-size) * 1.25);
}

.gsc-footer .gsc-footer__col > p {
	margin-bottom: 1.75em;
}

.gsc-footer__col .wp-block-image a,
.gsc-footer__col .wp-block-image img {
	display: block;
}

.gsc-footer .gsc-footer__copyright p {
	color: var(--wp--preset--color--white);
	font-size: 12px;
	margin: 0;
	text-align: left;
}

.gsc-footer .gsc-footer__credit p {
	margin: 0 0 1.75em;
}

/* Room for the back-to-top button, which sits over this corner at the very bottom. */
.gsc-footer .gsc-footer__credit {
	padding-right: 60px;
}

@media (max-width: 921px) {
	.gsc-footer__primary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gsc-footer .gsc-footer__primary > *,
	.gsc-footer .gsc-footer__below > * {
		margin-bottom: 10px;
	}
}

@media (max-width: 544px) {
	.gsc-footer__primary,
	.gsc-footer__below {
		grid-template-columns: 1fr;
	}
}

/* ---------- 6. Buttons ---------- */

/* File block. */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.wp-block-button__link,
.wp-block-file .wp-block-file__button {
	border-radius: 0;
	clip-path: var(--gsc-slant);
	transition: clip-path 0.25s ease, transform 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.wp-block-button__link:hover,
.wp-block-file .wp-block-file__button:hover {
	clip-path: var(--gsc-slant-hover);
	transform: translateY(-1px);
}

.wp-block-button__link:active,
.wp-block-file .wp-block-file__button:active {
	clip-path: var(--gsc-slant);
	transform: translateY(0);
}

.wp-block-button.is-style-plain .wp-block-button__link {
	clip-path: none;
	transform: none;
}

@media (max-width: 921px) {
	.wp-block-button .wp-block-button__link,
	.wp-block-file .wp-block-file__button {
		padding: 14px 28px;
	}
}

@media (max-width: 544px) {
	.wp-block-button .wp-block-button__link,
	.wp-block-file .wp-block-file__button {
		padding: 12px 24px;
	}
}

/* "External link" button style. */
.wp-block-button.is-style-external-link .wp-block-button__link::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 0.75em;
	margin-left: 0.4em;
	-webkit-mask: url("../icons/external-link.svg") center / contain no-repeat;
	mask: url("../icons/external-link.svg") center / contain no-repeat;
	vertical-align: middle;
	width: 0.75em;
}

.wp-block-buttons:has(> .wp-block-button.is-style-external-link:only-child) {
	justify-content: center;
}

/* ---------- 7. Block style variations ---------- */

/* Group: "Slanted label" (the cover link comes from main.js). */
.wp-block-group.is-style-slanted-label {
	clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
	display: inline-block;
	padding: 1rem 1.75rem 1rem 1.5rem;
	transition: clip-path 0.3s ease;
}

.wp-block-group.is-style-slanted-label:hover,
.wp-block-cover:hover .is-style-slanted-label {
	clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%);
}

.is-style-slanted-label h2 a {
	text-decoration: none !important;
}

.wp-block-cover:has(.is-style-slanted-label) {
	cursor: pointer;
	overflow: hidden;
}

.wp-block-cover:has(.is-style-slanted-label) .wp-block-cover__image-background {
	transform: scale(1.05);
	transition: transform 0.6s ease;
}

.wp-block-cover:has(.is-style-slanted-label):hover .wp-block-cover__image-background {
	transform: scale(1);
}

.cover-link-overlay {
	display: block;
	inset: 0;
	position: absolute;
	z-index: 2;
}

/* Group: "Slanted top". */
.wp-block-group.is-style-slanted-top {
	clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

/* Cover: "White diagonal top". */
.wp-block-cover.is-style-diagonal-top::before {
	background: var(--wp--preset--color--white);
	clip-path: polygon(0 0, 100% 0, 100% 13.73%, 0 100%);
	content: "";
	height: 56px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

/* Image: "Zoom on hover". */
.wp-block-image.is-style-zoom-hover {
	border-radius: 20px;
	cursor: pointer;
	overflow: hidden;
}

.wp-block-image.is-style-zoom-hover img {
	border-radius: 0 !important;
	display: block;
	transform: scale(1.05);
	transition: transform 0.6s ease;
}

.wp-block-image.is-style-zoom-hover:hover img {
	transform: scale(1);
}

/* ---------- 8. Shapes, images and cards ---------- */

/* Offset shadow presets. */
.has-offset-teal-shadow {
	box-shadow: var(--wp--preset--shadow--offset-teal);
}

.has-offset-gold-shadow {
	box-shadow: var(--wp--preset--shadow--offset-gold);
}

.single-campaigns .entry-content .wp-block-image .wp-element-caption {
	margin-top: 1.25rem;
}

/* Post grid "Featured" badge. */
.gsc-post-grid__card.is-featured .gsc-post-grid__image {
	position: relative;
	z-index: 10;
}

/* ---------- 9. Post templates ---------- */

.sar-author-box {
	border-top: 4px solid var(--wp--preset--color--gold);
	margin-top: 3rem;
	padding: 2.5rem 2rem;
	text-align: center;
}

.sar-author-box__heading {
	color: var(--wp--preset--color--navy);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.sar-author-box__avatar {
	margin-bottom: 1rem;
}

.sar-author-box__avatar-img {
	border: 4px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	display: block;
	height: 120px !important;
	margin: 0 auto;
	object-fit: cover;
	width: 120px !important;
}

.sar-author-box__name {
	color: var(--wp--preset--color--navy);
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.sar-author-box__bio {
	color: var(--wp--preset--color--near-black);
	font-size: 1rem;
	line-height: 1.3;
	margin: 0 auto 1.25rem;
	max-width: 52ch;
}

.sar-author-box__social {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 1rem;
}

.sar-author-box__social-link {
	align-items: center;
	color: var(--wp--preset--color--navy);
	display: inline-flex;
	height: 2.25rem;
	justify-content: center;
	transition: color 0.2s ease, transform 0.2s ease;
	width: 2.25rem;
}

.sar-author-box__social-link:hover,
.sar-author-box__social-link:active {
	color: var(--wp--preset--color--teal);
	transform: translateY(-2px);
}

.sar-author-box__social-link svg {
	fill: currentColor;
	height: 1.5rem;
	width: 1.5rem;
}

/* External links in content (marked by main.js), and an event's "View on a map" link. */
.entry-content a.sar-external-link::after,
.gsc-event-details a.gsc-event-details__map::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 0.65em;
	margin-left: 0.3em;
	-webkit-mask: url("../icons/external-link.svg") center / contain no-repeat;
	mask: url("../icons/external-link.svg") center / contain no-repeat;
	vertical-align: middle;
	width: 0.65em;
}

/* ---------- 9b. Article: blog posts and campaigns ---------- */

/*
 * A text column of about 70–75 characters a line. From 1025px the side column sits on its left:
 * the gold info box (posts), then one sticky group with the contents list (gsc/contents, when the
 * post has enough headings) and the share panel under it.
 */
.gsc-article {
	--gsc-article-text: 760px;
	--gsc-article-side: 320px;
}

/* One column below 1025px: the info box and contents line up with the text. */
.gsc-article__main,
.gsc-article__aside {
	max-width: var(--gsc-article-text);
	margin-inline: auto;
}

.gsc-article__aside > .is-style-slanted-top {
	max-width: 26rem;
}

/*
 * Share panel (share links, "Join the list"): large screens only; smaller screens have the share
 * band under the article. A campaign without a contents list then has nothing in its side column.
 */
.gsc-article__extras {
	display: none;
}

@media (max-width: 1024px) {
	.gsc-article__aside:not(:has(.gsc-contents, .is-style-slanted-top)) {
		display: none;
	}
}

.gsc-article__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	color: var(--wp--preset--color--navy);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.gsc-article__eyebrow::before {
	content: "";
	flex: 0 0 1.75rem;
	height: 6px;
	background: var(--wp--preset--color--gold);
	clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}

.gsc-article__main > .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

@media (min-width: 1025px) {
	.gsc-article:has(> .gsc-article__aside > *) {
		display: grid;
		grid-template-columns: var(--gsc-article-side) minmax(0, var(--gsc-article-text));
		column-gap: clamp(2.5rem, 5vw, 5rem);
		justify-content: center;
	}

	.gsc-article:has(> .gsc-article__aside > *) > * {
		margin-block-start: 0;
	}

	.gsc-article:has(> .gsc-article__aside > *) > :is(.gsc-article__main, .gsc-article__aside) {
		max-width: none;
		margin-inline: 0;
	}

	.gsc-article__aside > .is-style-slanted-top {
		max-width: none;
	}

	/* The contents list and share panel stick together, scrolling inside if taller than the screen. */
	.gsc-article__sticky {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 2rem);
		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 4rem);
		margin-block-start: 3rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.gsc-article__aside > .gsc-article__sticky:first-child {
		margin-block-start: 0;
	}

	.gsc-article__sticky > .gsc-contents {
		position: static;
		max-height: none;
		margin-block: 0;
		overflow: visible;
	}

	.gsc-article__sticky > .gsc-article__extras {
		display: block;
		margin-block-start: 0;
	}

	.gsc-article__sticky > .gsc-contents + .gsc-article__extras {
		margin-block-start: 2.5rem;
	}
}

/* ---------- 9c. Press card: "Social Capital in the News" posts ----------
 * A short summary of an article elsewhere: one narrow column, the source and date above it, the
 * link out and the share links below. */

.gsc-press {
	max-width: 760px;
	margin-inline: auto;
}

.gsc-press > * {
	margin-block: 0;
}

.gsc-press > .wp-block-post-content {
	margin-block-start: 1.5rem;
}

.gsc-press > .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.gsc-press > .wp-block-post-content > :last-child {
	margin-block-end: 0;
}

/* A long site name wraps the label: keep the gold bar on its first line. */
.gsc-press__source {
	align-items: flex-start;
}

.gsc-press__source::before {
	margin-block-start: 0.55em;
}

.gsc-press__source strong {
	font-weight: inherit;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1.05em;
}

.gsc-press__actions {
	margin-block-start: 2.5rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid rgba(10, 58, 123, 0.15);
}

.gsc-press__actions .wp-block-buttons {
	margin: 0;
}

/* ---------- 9d. Services: the picture beside the title ----------
 * Shown whole, never cropped (some have words in them): landscape pictures fill the column, square
 * ones are capped in height and sit on the right. */

.gsc-service-image {
	display: flex;
	justify-content: flex-end;
}

.wp-block-post-featured-image.gsc-service-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 420px;
}

@media (max-width: 781px) {
	.gsc-service-image {
		justify-content: flex-start;
	}
}

/* ---------- 9e. Our Clients: one client per row, like the Our Services list ----------
 * The page's "Client list" group holds a Columns block per client (logo, then name and text). Each
 * becomes the Post Grid's "Image beside text" card: the same grey, 40% picture panel, padding and
 * title, with the logo shown whole on a white panel inset in the grey rather than cropped. Stacks on phones, as that does. */

.gsc-client-list > .wp-block-columns {
	flex-wrap: nowrap !important;
	gap: 0;
	align-items: stretch;
	min-height: 280px;
	margin-block: 30px 0;
	background-color: #f6f6f6; /* The Post Grid's card grey. */
}

.gsc-client-list > .wp-block-columns:first-child {
	margin-block-start: 0;
}

.gsc-client-list > .wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
}

.gsc-client-list > .wp-block-columns > .wp-block-column:first-child {
	flex: 0 0 40% !important;
	align-items: center;
	padding: 20px;
	background-color: var(--wp--preset--color--white);
	background-clip: content-box; /* White panel, framed by the card's grey. */
}

.gsc-client-list > .wp-block-columns > .wp-block-column:last-child {
	flex: 1 1 0 !important;
	padding: 40px;
}

.gsc-client-list .wp-block-image {
	margin: 0;
	padding: 20px;
}

.gsc-client-list .wp-block-image img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 200px;
}

.gsc-client-list > .wp-block-columns h2 {
	margin: 0 0 15px;
	color: var(--wp--preset--color--navy);
	font-size: 1.4rem;
	line-height: 1.2;
}

.gsc-client-list > .wp-block-columns p {
	margin: 0;
	color: var(--wp--preset--color--near-black);
}

@media (max-width: 976px) {
	.gsc-client-list > .wp-block-columns > .wp-block-column:last-child {
		padding: 30px;
	}
}

@media (max-width: 767px) {
	.gsc-client-list > .wp-block-columns {
		flex-direction: column;
		min-height: 0;
	}

	.gsc-client-list > .wp-block-columns > .wp-block-column:first-child {
		flex-basis: auto !important;
		padding: 20px;
	}

	.gsc-client-list .wp-block-image img {
		max-height: 140px;
	}

	.gsc-client-list > .wp-block-columns > .wp-block-column:last-child {
		flex-basis: auto !important;
		padding: 20px;
	}

	.gsc-client-list > .wp-block-columns h2 {
		font-size: 1.2rem;
	}
}

/* ---------- 9f. Events ----------
 * An event uses the blog post layout ("9b"): the gold details box in the side column (sticky on
 * desktop, above the text on smaller screens), the description beside it. The /events/ page lists
 * upcoming events, with past ones inside a "See past events" Details block. */

.gsc-event .gsc-event-description > :first-child {
	margin-block-start: 0;
}

.gsc-event__back {
	margin-block-start: 2.5rem;
	font-weight: 700;
}

.gsc-event__back a::before {
	content: "\2190\00a0";
}

@media (max-width: 1024px) {
	.gsc-article.gsc-event > .gsc-article__aside {
		margin-block-end: 2.5rem;
	}
}

@media (min-width: 1025px) {
	.gsc-article__sticky > .gsc-event__box + .gsc-article__extras {
		margin-block-start: 2.5rem;
	}
}

.gsc-post-grid__empty {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

/* "See past events": the summary is a gold button, centred under the upcoming events. */
.gsc-events-past {
	margin-block-start: 3.5rem;
}

.gsc-events-past > summary {
	display: table;
	margin-inline: auto;
	padding: 0.75em 1.35em;
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--near-black);
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
	clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.gsc-events-past > summary::-webkit-details-marker {
	display: none;
}

.gsc-events-past > summary::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-inline-start: 0.6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-30%) rotate(45deg);
}

.gsc-events-past[open] > summary::after {
	transform: translateY(10%) rotate(-135deg);
}

.gsc-events-past > summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
}

.gsc-events-past[open] > summary {
	margin-block-end: 2.5rem;
}

/* ---------- 10. Blog listing ---------- */

@media (min-width: 922px) {
	.gsc-archive-banner__inner {
		padding-inline: 20px;
	}
}

.gsc-breadcrumbs a {
	text-decoration: none;
}

.gsc-main > * {
	margin-block-start: 0;
}

.gsc-main > .wp-block-group:has(> .gsc-divider) {
	margin-block: -1px;
}

.gsc-main > .gsc-divider:first-child {
	margin-top: -1px;
}

/* Blog grid. */
.gsc-blog-query {
	max-width: 1200px;
	margin-inline: auto;
}

.wp-block-post-template.gsc-blog-grid {
	margin: 0;
	padding: 0;
}

.gsc-blog-grid > .wp-block-post {
	display: flex;
	flex-direction: column;
}

.gsc-blog-card {
	flex: 1 1 auto;
}

@media (max-width: 921px) {
	.gsc-blog-query {
		padding-inline: 20px;
	}

	.wp-block-post-template.gsc-blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.gsc-blog-card .wp-block-post-title a {
	text-decoration: none;
}

.gsc-blog-card .wp-block-post-featured-image a {
	display: block;
	overflow: hidden;
}

.gsc-blog-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

@media not (prefers-reduced-motion) {
	.gsc-blog-card:is(:hover, :focus-within) .wp-block-post-featured-image img {
		transform: scale(1.1);
	}
}

.gsc-blog-card__byline > * {
	display: inline;
	margin: 0;
}

/* Post Terms: "Pills" style. */
.wp-block-post-terms.is-style-pills {
	font-size: 0;
	line-height: 0;
}

.wp-block-post-terms.is-style-pills a {
	display: inline-block;
	margin: 0 4px 20px 0;
	padding: 6px 8px;
	border-radius: 2px;
	background-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wp-block-post-terms.is-style-pills a:hover,
.wp-block-post-terms.is-style-pills a:focus-visible {
	background-color: var(--wp--preset--color--navy);
}

.wp-block-post-terms.is-style-pills .wp-block-post-terms__separator {
	display: none;
}

/* Read More: "Button" style. */
.wp-block-read-more.is-style-button {
	display: inline-block;
	padding: 15px 30px;
	text-decoration: none;
	clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
	transition: clip-path 0.25s ease;
}

.wp-block-read-more.is-style-button:hover,
.wp-block-read-more.is-style-button:focus-visible {
	clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
}

@media (max-width: 921px) {
	.wp-block-read-more.is-style-button {
		padding: 14px 28px;
	}
}

@media (max-width: 544px) {
	.wp-block-read-more.is-style-button {
		padding: 12px 24px;
	}
}

/* Page numbers (blog, category, author and search pages). */
.wp-block-query > .gsc-pagination {
	margin-block-start: calc(var(--gsc-body-size) * 2.5);
	padding: calc(var(--gsc-body-size) * 2);
	gap: 0;
	font-size: calc(16rem / 15);
	font-weight: 500;
}

.gsc-pagination .page-numbers {
	display: inline-block;
	width: 2.333em;
	height: 2.333em;
	line-height: calc(2.333em - 3px);
	text-align: center;
	color: var(--wp--preset--color--near-black);
	text-decoration: none;
}

.gsc-pagination .page-numbers.current {
	border-radius: 2px;
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.gsc-pagination a.page-numbers:hover {
	color: var(--wp--preset--color--navy);
}

.gsc-pagination .wp-block-query-pagination-next,
.gsc-pagination .wp-block-query-pagination-previous {
	display: block;
	height: 2.333em;
	line-height: calc(2.333em - 3px);
	color: var(--wp--preset--color--near-black);
	text-decoration: none;
}

.gsc-pagination .wp-block-query-pagination-next {
	padding-left: 1.5em;
}

.gsc-pagination .wp-block-query-pagination-previous {
	padding-right: 1.5em;
}

/*
 * Phones: one row. Previous and Next show only their arrows (screen readers still read the
 * words), the boxes are a little smaller, and the outer number beside each "…" is dropped, so
 * at most seven numbers show (1 … 4 5 6 … 11).
 */
@media (max-width: 544px) {
	.wp-block-query > .gsc-pagination {
		flex-wrap: nowrap;
		padding-inline: 0;
	}

	.gsc-pagination .wp-block-query-pagination-numbers {
		display: flex;
		flex-wrap: nowrap;
	}

	.gsc-pagination .page-numbers {
		width: 2em;
		height: 2em;
		line-height: calc(2em - 3px);
	}

	.gsc-pagination .page-numbers:is(.dots + *, :has(+ .dots)):not(.current, :first-child, :last-child, .current + *, :has(+ .current)) {
		display: none;
	}

	.gsc-pagination .wp-block-query-pagination-next,
	.gsc-pagination .wp-block-query-pagination-previous {
		width: calc(16rem / 15 * 2);
		height: calc(16rem / 15 * 2);
		padding: 0;
		font-size: 0;
		line-height: calc(16rem / 15 * 2 - 3px);
		text-align: center;
	}

	.gsc-pagination .wp-block-query-pagination-next-arrow,
	.gsc-pagination .wp-block-query-pagination-previous-arrow {
		margin: 0;
		font-size: calc(16rem / 15);
	}
}

/* ---------- 10b. Search results ---------- */

/* Gold header, laid out like the blog's teal one. */
@media (min-width: 922px) {
	.gsc-search-head__inner {
		padding-inline: 20px;
	}
}

/* A long search word wraps instead of running off a phone screen. */
.gsc-search-head .wp-block-query-title {
	overflow-wrap: anywhere;
}

.gsc-search-head .gsc-crumb-sep {
	margin-inline: 0.095em;
}

.gsc-search-query {
	max-width: 1200px;
	margin-inline: auto;
}

@media (max-width: 921px) {
	.gsc-search-query {
		padding-inline: 20px;
	}
}

.wp-block-post-template.gsc-search-results {
	margin: 0;
	padding: 0;
}

.gsc-search-results > .wp-block-post + .wp-block-post {
	margin-block-start: 2.5em;
}

.gsc-search-result {
	align-items: stretch;
}

.gsc-search-result > .gsc-search-result__image {
	position: relative;
	flex: 0 0 360px;
	margin: 0;
}

.gsc-search-result__image a {
	position: absolute;
	inset: 0;
	display: block;
}

.gsc-search-result__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gsc-search-result > .gsc-search-result__text {
	flex: 1 1 auto;
	min-width: 0;
}

.gsc-search-result .wp-block-post-title a {
	text-decoration: none;
}

@media (max-width: 921px) {
	.gsc-search-result {
		flex-wrap: wrap;
	}

	.gsc-search-result > .gsc-search-result__image {
		flex-basis: 100%;
		margin-bottom: 1.5em;
		aspect-ratio: 16 / 9;
	}
}

/* Nothing found. */
.gsc-search-none__form {
	max-width: none;
}

.gsc-search-none__form .wp-block-search__inside-wrapper {
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 0;
	background-color: #fafafa;
}

.gsc-search-none__form .wp-block-search__input {
	margin: 0;
	padding: 0 0 0 15px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgb(71, 85, 105);
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.gsc-search-none__form .wp-block-search__input::placeholder {
	color: rgb(156, 163, 175);
	opacity: 1;
}

.gsc-search-none__form .wp-block-search__button {
	width: 45px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: rgb(58, 58, 58);
	clip-path: none;
}

.gsc-search-none__form .wp-block-search__button svg {
	width: 14.4px;
	height: 16px;
	min-width: 0;
	min-height: 0;
	position: relative;
	top: 3px;
	left: -0.7px;
	fill: currentColor;
}

/* ---------- 11. 404 page ---------- */

.gsc-404 {
	padding: 100px 40px;
	text-align: center;
}

.gsc-404__inner {
	position: relative;
	z-index: 2;
	max-width: 560px;
}

.gsc-404 .wp-block-button__link {
	clip-path: var(--gsc-slant-small);
}

.gsc-404 .wp-block-button__link:hover {
	clip-path: var(--gsc-slant-small-hover);
	transform: none;
}

/* "404" watermark (hidden from screen readers). */
.wp-site-blocks:has(.gsc-404) {
	position: relative;
}

.gsc-404::after {
	content: "404";
	content: "404" / "";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--teal);
	font-family: var(--wp--preset--font-family--outfit, "Outfit", sans-serif);
	font-size: clamp(200px, 28vw, 440px);
	font-weight: 700;
	line-height: 1;
	opacity: 0.07;
	z-index: 1;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

/* "Still looking?" search. */
.gsc-404-search {
	padding: 80px 40px;
	text-align: center;
}

.gsc-404-search .wp-block-search__inside-wrapper {
	padding: 0;
}

.gsc-404-search .wp-block-search__input {
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 8px 16px;
	border: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--white);
	color: rgb(71, 85, 105);
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.gsc-404-search .wp-block-search__input::placeholder {
	color: rgba(10, 58, 123, 0.4);
}

.gsc-404-search .wp-block-search__input:focus {
	background-color: #f7f9fc;
	outline: none;
}

.gsc-404-search .wp-block-search__button {
	height: 40px;
	margin: 0;
	padding: 0 25px;
	border-radius: 0;
	clip-path: none;
	transition: background-color 0.2s ease;
}

.gsc-404-search .wp-block-search__button:hover {
	background-color: var(--wp--preset--color--teal);
}

.gsc-404-search .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	fill: currentColor;
}

@media (max-width: 768px) {
	.gsc-404 {
		padding: 100px 30px 80px;
	}

	.gsc-404-search {
		padding: 60px 30px;
	}
}

/* ---------- 12. Forms ---------- */

/* Gravity Forms button. */
.gform_wrapper .gform_button.button {
	border: none !important;
	border-radius: 0 !important;
	clip-path: var(--gsc-slant);
	display: inline-block;
	font-size: 1.25rem;
	justify-content: center;
	line-height: 1.2;
	margin: auto;
	padding: 0.6rem 1.35rem !important;
	transition: clip-path 0.25s ease, transform 0.2s ease;
}

.gform_wrapper .gform_button.button:hover {
	clip-path: var(--gsc-slant-hover);
	transform: translateY(-1px);
}

.gform_wrapper .gform_button.button:active {
	clip-path: var(--gsc-slant);
	transform: translateY(0);
}

/* ---------- 12b. Back to top ---------- */

.gsc-to-top {
	align-items: center;
	background-color: var(--wp--preset--color--navy);
	border: 0;
	border-radius: 0;
	bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	clip-path: var(--gsc-slant-small);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	display: flex;
	height: 48px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	position: fixed;
	right: 1.25rem;
	transform: translateY(0.75rem);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, clip-path 0.25s ease;
	visibility: hidden;
	width: 48px;
	z-index: 999;
}

.gsc-to-top.is-visible {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.gsc-to-top.is-over-footer {
	background-color: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--near-black);
}

.gsc-to-top:hover {
	background-color: var(--wp--preset--color--gold);
	clip-path: var(--gsc-slant-small-hover);
	color: var(--wp--preset--color--near-black);
}

.gsc-to-top:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: -7px;
}

@media (prefers-reduced-motion: reduce) {
	.gsc-to-top {
		transition: none;
	}
}

@media print {
	.gsc-to-top {
		display: none;
	}
}

/* ---------- 13. Animations ---------- */

/* Images zoom in on load. */
@keyframes zoomInEntrance {
	0% {
		opacity: 0;
		transform: scale(0.85);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.wp-block-image,
.wp-block-media-text,
.wp-block-gallery,
.animate-in {
	animation: zoomInEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wp-block-image:nth-of-type(1) { animation-delay: 0.15s; }
.wp-block-image:nth-of-type(2) { animation-delay: 0.3s; }
.wp-block-image:nth-of-type(3) { animation-delay: 0.45s; }
.wp-block-image:nth-of-type(4) { animation-delay: 0.6s; }
.wp-block-image:nth-of-type(5) { animation-delay: 0.75s; }
.wp-block-image:nth-of-type(6) { animation-delay: 0.9s; }
.wp-block-image:nth-of-type(7) { animation-delay: 1.05s; }
.wp-block-image:nth-of-type(8) { animation-delay: 1.2s; }

.gsc-overlay .wp-block-image {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-image,
	.wp-block-media-text,
	.wp-block-gallery,
	.animate-in {
		animation: none !important;
	}
}

/* Hero text entrance (the elements are chosen in inc/entrance-animations.php). */
:root {
	--gsc-reveal-distance: 12px;
	--gsc-reveal-duration: 0.7s;
	--gsc-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gsc-reveal-stagger: 70ms;
	--gsc-reveal-stagger-max: 350ms;
}

@keyframes gsc-rise {
	from {
		opacity: 0;
		translate: 0 var(--gsc-reveal-distance);
	}
}

@media screen and (prefers-reduced-motion: no-preference) {
	[data-reveal="pending"] {
		opacity: 0;
		translate: 0 var(--gsc-reveal-distance);
	}

	[data-reveal="done"] {
		animation: gsc-rise var(--gsc-reveal-duration) var(--gsc-reveal-ease) var(--gsc-reveal-delay, 0ms) backwards;
	}
}
