/*
Theme Name: KAHPERD
Theme URI: https://kahperd.org
Author: KAHPERD
Description: Custom block theme for KAHPERD. Every homepage section is a reusable pattern (Insert → Patterns → KAHPERD Sections), and the header and footer are editable template parts. No page builder required.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.15.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kahperd
*/

/* ==========================================================================
   Block styles: these appear in the editor sidebar under "Styles" so the
   client can switch a block's look without code.
   ========================================================================== */

/* ---------- Paragraph: Eyebrow label ---------- */
.is-style-eyebrow {
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---------- Paragraph: Handwritten tilt ---------- */
.is-style-script-tilt {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 700;
	line-height: 0.95;
	transform: rotate(-7deg);
	transform-origin: left center;
}

/* ---------- Image: Organic shape ---------- */
.wp-block-image.is-style-blob img {
	border-radius: 42% 58% 46% 54% / 36% 42% 58% 64%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* ---------- Image: Soft corners ---------- */
.wp-block-image.is-style-soft-corners img {
	border-radius: var(--wp--custom--radius--medium);
}

/* ---------- Image: Icon badge (circle that overlaps the image above) ---------- */
.wp-block-image.is-style-icon-badge {
	position: relative;
	z-index: 2;
	margin-top: -38px !important;
	margin-left: 1.1rem;
}
.wp-block-image.is-style-icon-badge img {
	width: 46px;
	height: 46px;
	padding: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 4px 14px rgba(20, 55, 96, 0.18);
	box-sizing: border-box;
}

/* ---------- Image: Icon circle (yellow circle, used in membership list) ---------- */
.wp-block-image.is-style-icon-circle {
	margin: 0 !important;
	line-height: 0;
}
.wp-block-image.is-style-icon-circle img {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-sizing: border-box;
}

/* ---------- Button: Circle arrow ---------- */
.wp-block-button.is-style-arrow-circle .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	border-radius: 50%;
	font-size: 0 !important;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep);
	border: 0;
}
.wp-block-button.is-style-arrow-circle .wp-block-button__link::after {
	content: "\2192";
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}
.has-white-background-color .wp-block-button.is-style-arrow-circle .wp-block-button__link,
.has-base-background-color .wp-block-button.is-style-arrow-circle .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
/* In the editor, show the (hidden) link text so it stays editable */
.block-editor-block-list__block.is-style-arrow-circle .wp-block-button__link {
	width: auto;
	height: auto;
	padding: 0.35em 0.9em !important;
	border-radius: 999px;
	font-size: 11px !important;
	gap: 0.4em;
}

/* ---------- Columns: Dividers ---------- */
.wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	padding-left: var(--wp--preset--spacing--40);
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-divided > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		padding-left: 0;
		padding-top: var(--wp--preset--spacing--40);
	}
}

/* ---------- Separator: Wave ---------- */
.wp-block-separator.is-style-wave {
	border: 0 !important;
	height: 44px;
	max-width: none !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	opacity: 1;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26C260 2 470 54 760 40 1040 26 1220 6 1440 18V60H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26C260 2 470 54 760 40 1040 26 1220 6 1440 18V60H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wp-block-separator.is-style-wave + * {
	margin-top: 0 !important;
}

/* Footer wave: overlap the footer by 1px so no hairline seam shows at odd zoom levels */
.wp-block-template-part > .wp-block-separator.is-style-wave {
	position: relative;
	z-index: 1;
	margin-bottom: -1px !important;
}

/* Footer wave: fill behind the curve with the colour of the page's last section,
   so a page ending on a blue (or white, or tinted) band flows straight into the wave. */
body:has(.kahperd-content > .has-primary-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--primary); }
body:has(.kahperd-content > .has-deep-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--deep); }
body:has(.kahperd-content > .has-accent-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--accent); }
body:has(.kahperd-content > .has-ink-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--ink); }
body:has(.kahperd-content > .has-muted-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--muted); }
body:has(.kahperd-content > .has-white-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--white); }
body:has(.kahperd-content > .has-tint-blue-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--tint-blue); }
body:has(.kahperd-content > .has-line-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--line); }
body:has(.kahperd-content > .has-green-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--green); }
body:has(.kahperd-content > .has-gray-dark-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--gray-dark); }
body:has(.kahperd-content > .has-tint-green-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--tint-green); }
body:has(.kahperd-content > .has-tint-gray-background-color:last-child) .wp-block-template-part:has(> .is-style-wave) { background: var(--wp--preset--color--tint-gray); }

/* ---------- Group: Sunflower accents ---------- */
.wp-block-group.is-style-sunflower-right,
.wp-block-group.is-style-sunflower-left,
.wp-block-group.is-style-sunflower-watermark {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
}
.wp-block-group.is-style-sunflower-right::before,
.wp-block-group.is-style-sunflower-left::before,
.wp-block-group.is-style-sunflower-watermark::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background: url("assets/images/sunflower.png") center / contain no-repeat;
}
.wp-block-group.is-style-sunflower-right::before {
	width: min(48vw, 640px);
	aspect-ratio: 1;
	top: -6%;
	right: -2%;
	transform: rotate(-8deg);
}
.wp-block-group.is-style-sunflower-left::before {
	width: 260px;
	aspect-ratio: 1;
	top: 14%;
	left: -175px;
	transform: rotate(12deg);
}
.wp-block-group.is-style-sunflower-watermark::before {
	background-image: url("assets/images/sunflower-white.png");
	opacity: 0.07;
	width: 560px;
	aspect-ratio: 1;
	top: -70px;
	right: -150px;
}

/* ---------- Group: Card ---------- */
.wp-block-group.is-style-card {
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	height: 100%;
}
.wp-block-group.is-style-card > .wp-block-image:first-child:not(.is-style-icon-circle) {
	margin: 0;
}
.wp-block-group.is-style-card > .wp-block-image:first-child:not(.is-style-icon-circle) img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

/* ---------- Group: Date badge ---------- */
.wp-block-group.is-style-date-badge {
	flex: 0 0 auto;
	width: 52px;
	padding: 6px 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	text-align: center;
	line-height: 1;
}
.wp-block-group.is-style-date-badge > * {
	margin: 0 !important;
}

/* ---------- Group: Event row (list item with divider) ---------- */
.wp-block-group.is-style-event-row {
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wp-block-group.is-style-event-row:last-child {
	border-bottom: 0;
}

/* ---------- Group: Kansas outline (footer) ---------- */
.wp-block-group.is-style-kansas {
	background: url("assets/images/kansas-outline.svg") center / contain no-repeat;
	aspect-ratio: 420 / 220;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 300px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

/* Header */
.kahperd-header {
	position: relative;
	z-index: 10;
	box-shadow: 0 1px 0 rgba(20, 55, 96, 0.08);
}
.kahperd-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--primary);
	padding: 4px;
}
.kahperd-header .wp-block-button__link {
	white-space: nowrap;
}
.kahperd-logo {
	margin: 0 !important;
	line-height: 0;
}
@media (max-width: 600px) {
	.kahperd-header-contact {
		display: none;
	}
	.kahperd-header .kahperd-logo img {
		width: 100px !important;
	}
	.kahperd-header .wp-block-button__link {
		padding: 0.6em 1.1em;
	}
}

/* Small inline icons */
.kahperd-meta-icon,
.kahperd-icon-sm {
	margin: 0 !important;
	line-height: 0;
}
.kahperd-meta-icon img {
	width: 16px;
	height: 16px;
}
.kahperd-icon-sm img {
	width: 34px;
	height: 34px;
}

/* Script caption laid over a photo (Featured Event) */
.kahperd-photo-wrap {
	position: relative;
}
.kahperd-photo-wrap > .kahperd-photo-caption {
	position: absolute;
	right: 1.25rem;
	bottom: 1.5rem;
	margin: 0;
	text-shadow: 0 1px 8px rgba(20, 55, 96, 0.35);
}

/* Plain link list (footer) */
.kahperd-plain-list {
	list-style: none;
	padding-left: 0;
	margin-top: 0.75rem;
}
.kahperd-plain-list li + li {
	margin-top: 0.35rem;
}

/* Media & Text sections: photo fills its side */
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
	align-self: stretch;
	min-height: 420px;
}

/* Social icons in the footer */
.wp-block-social-links.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--white);
}

/* Full-width sections stack flush */
.wp-block-post-content > .alignfull {
	margin-block: 0;
}
.wp-site-blocks > * {
	margin-block-start: 0;
}

@media (max-width: 781px) {
	.wp-block-image.is-style-blob img {
		aspect-ratio: 4 / 3;
	}
	.is-style-script-tilt {
		transform: rotate(-4deg);
	}
	.wp-block-group.is-style-sunflower-left::before {
		display: none;
	}
	.wp-block-group.is-style-sunflower-right::before {
		width: 70vw;
		top: auto;
		bottom: 0;
	}
}

/* Pillar cards: the whole card is clickable (via its arrow link) */
.kahperd-pillar {
	position: relative;
	transition: transform 0.2s ease;
}
.kahperd-pillar .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.kahperd-pillar:hover {
	transform: translateY(-3px);
}
.kahperd-pillar:hover .wp-block-button__link {
	background: var(--wp--preset--color--accent);
}
.block-editor-block-list__block .kahperd-pillar .wp-block-button__link::before,
.kahperd-pillar.block-editor-block-list__block .wp-block-button__link::before {
	display: none; /* keep everything clickable/editable inside the editor */
}

/* Header: logo sits on a white tab that hangs into the hero with a curved corner */
.kahperd-header .kahperd-logo {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	margin-bottom: -46px !important;
	padding: 0 30px 18px 0;
	background: var(--wp--preset--color--white);
	border-bottom-right-radius: 56px;
}
.kahperd-header .kahperd-logo::before {
	/* extend the white tab to the left edge of the screen */
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 100%;
	width: 100vw;
	background: var(--wp--preset--color--white);
}
.kahperd-header {
	box-shadow: none;
}
.kahperd-header-right {
	padding-top: 0.35rem;
}
.kahperd-header-right > .wp-block-navigation {
	margin-top: 0.4rem;
}
@media (max-width: 781px) {
	.kahperd-header .kahperd-logo {
		margin-bottom: -18px !important;
		padding: 0 16px 10px 0;
		border-bottom-right-radius: 28px;
	}
	.kahperd-header .kahperd-logo img {
		width: 120px !important;
	}
	.kahperd-header-right > .wp-block-navigation {
		align-self: flex-end;
		margin-top: 0;
	}
}

/* ==========================================================================
   Hero on phones and small tablets
   ========================================================================== */
@media (max-width: 781px) {
	/* tighter top spacing, smaller org label */
	.wp-block-group.is-style-sunflower-right {
		padding-top: 2rem !important;
		padding-bottom: 2.5rem !important;
	}
	.is-style-sunflower-right .is-style-eyebrow:first-child {
		font-size: 0.75rem !important;
		letter-spacing: 0.1em;
	}
	.is-style-sunflower-right .wp-block-buttons .wp-block-button__link {
		padding: 0.75em 1.25em;
	}

	/* the flower follows the photo instead of the section corner */
	.wp-block-group.is-style-sunflower-right::before {
		display: none;
	}
	.is-style-sunflower-right .wp-block-column:has(.is-style-blob) {
		position: relative;
		padding-top: 1.75rem;
	}
	.is-style-sunflower-right .wp-block-image.is-style-blob {
		position: relative;
		isolation: isolate;
		width: 84%;
		margin: 0 0 0 auto !important;
	}
	.is-style-sunflower-right .wp-block-image.is-style-blob::before {
		content: "";
		position: absolute;
		z-index: -1;
		width: 78%;
		aspect-ratio: 1;
		top: -20%;
		right: -24%;
		background: url("assets/images/sunflower.png") center / contain no-repeat;
		transform: rotate(-8deg);
	}
	.is-style-sunflower-right .wp-block-image.is-style-blob img {
		aspect-ratio: 1 / 0.9;
	}

	/* handwriting tucks into the photo's top-left corner */
	.is-style-sunflower-right .wp-block-column .is-style-script-tilt {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2;
		margin: 0;
		font-size: 1.45rem !important;
	}

	/* the small tagline under the photo is decorative; drop it on phones */
	.is-style-sunflower-right .wp-block-column .is-style-eyebrow.has-text-align-right {
		display: none;
	}
}

/* Tablets: keep the hero photo a sensible size */
@media (min-width: 600px) and (max-width: 781px) {
	.is-style-sunflower-right .wp-block-image.is-style-blob {
		width: 62%;
		margin-right: 12% !important;
	}
}

/* Tablets: use the ☰ menu (WordPress only switches below 600px by default) */
@media (max-width: 781px) {
	.kahperd-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	.kahperd-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* Open ☰ menu (phones/tablets): big, branded, easy to tap */
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	padding: 1.5rem 1.5rem 2rem;
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 0.25rem;
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.9rem 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.kahperd-header .wp-block-navigation__responsive-container-close svg,
.kahperd-header .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
	fill: var(--wp--preset--color--primary);
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	align-items: stretch !important;
}

/* ==========================================================================
   Page width: every page can mix normal text (comfortable reading width)
   with full-width sections. If a page starts with a full-width section,
   the plain page title hides automatically so the section sits under the header.
   ========================================================================== */
.kahperd-content {
	padding-bottom: var(--wp--preset--spacing--70);
}
.kahperd-content > .alignfull:last-child,
.kahperd-content > .alignfull:last-child + * {
	margin-bottom: 0;
}
.kahperd-main:has(.kahperd-content > .alignfull:last-child) .kahperd-content {
	padding-bottom: 0;
}
.kahperd-main:has(.kahperd-content > .alignfull:first-child) .kahperd-page-title {
	display: none;
}
.kahperd-content > .alignfull:first-child {
	margin-top: 0 !important;
}
.kahperd-page-title + .kahperd-content > :first-child:not(.alignfull) {
	margin-top: var(--wp--preset--spacing--40);
}

/* FAQ (Details block) */
.wp-block-details.kahperd-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 1.1rem 0;
	margin-top: 0 !important;
}
.wp-block-details.kahperd-faq:first-of-type {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: var(--wp--preset--spacing--50) !important;
}
.wp-block-details.kahperd-faq summary {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details.kahperd-faq summary::-webkit-details-marker {
	display: none;
}
.wp-block-details.kahperd-faq summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--deep);
	background: var(--wp--preset--color--accent);
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.1rem;
	transition: transform 0.2s ease;
}
.wp-block-details.kahperd-faq[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details.kahperd-faq > :not(summary) {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem;
}

/* Team photos */
.kahperd-person-photo img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

/* Page banner: smaller flower so it doesn't crowd the title */
.wp-block-group.is-style-sunflower-right.kahperd-banner::before {
	width: min(34vw, 440px);
	top: -18%;
	right: -6%;
}
@media (max-width: 781px) {
	.wp-block-group.is-style-sunflower-right.kahperd-banner::before {
		display: none;
	}
}

/* Page banner variants: Photo (photo beside the text), Blue, Photo Background */
.kahperd-banner--photo .wp-block-image {
	margin: 0;
}
.kahperd-banner--photo .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.kahperd-banner--blue .wp-block-heading,
.kahperd-banner--photo-bg .wp-block-heading {
	color: var(--wp--preset--color--white);
}
.kahperd-banner--photo-bg .wp-block-cover__inner-container {
	width: 100%;
}
.kahperd-banner--photo-bg.wp-block-cover {
	align-items: center;
}
@media (max-width: 781px) {
	.kahperd-banner--photo .wp-block-image img {
		aspect-ratio: 16 / 9;
	}
	.kahperd-banner--photo-bg.wp-block-cover {
		min-height: 320px !important;
	}
}

/* Board/team: four across on desktop, two across on tablets and phones */
@media (max-width: 781px) {
	.wp-block-columns.kahperd-team {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--50);
	}
	.wp-block-columns.kahperd-team > .wp-block-column {
		flex: 0 0 calc(50% - 0.75rem) !important;
	}
}

/* ==========================================================================
   Phones and tablets: one-row header, comfortable tap targets
   ========================================================================== */

/* Contact and Member Login also live in the ☰ menu, but only on screens
   where the header doesn't have room for them. */
.kahperd-header .wp-block-navigation-item.kahperd-nav-mobile {
	display: none;
}
@media (max-width: 781px) {
	/* search, buttons and ☰ sit in a single row beside the logo */
	.kahperd-header-right {
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: center !important;
		justify-content: flex-end;
		gap: 0.25rem !important;
		min-width: 0;
		padding-top: 0;
	}
	.kahperd-header-right > .wp-block-group {
		gap: 0.25rem;
	}
	.kahperd-header-right > .wp-block-navigation {
		align-self: center;
	}
	.kahperd-header .wp-block-search__button,
	.kahperd-header .wp-block-navigation__responsive-container-open {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
		align-items: center;
	}
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-mobile {
		display: block;
	}
	/* Member Login renders as a button inside the open menu */
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-button {
		border-bottom: 0;
		margin-top: 0.75rem;
	}
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-button .wp-block-navigation-item__content {
		box-sizing: border-box;
		padding: 0.85rem 1.25rem !important;
		border-radius: 999px;
		text-align: center;
		font-family: var(--wp--preset--font-family--body);
		font-size: 1.05rem;
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--deep);
	}
}
@media (max-width: 379px) {
	/* too narrow for the button: it moves into the ☰ menu */
	.kahperd-header .kahperd-header-login {
		display: none;
	}
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-mobile.kahperd-nav-button {
		display: block;
	}
}

/* Circle-arrow buttons: larger touch area on phones and tablets */
@media (pointer: coarse) {
	.wp-block-button.is-style-arrow-circle .wp-block-button__link {
		width: 44px;
		height: 44px;
	}
}

/* ==========================================================================
   Header search: a round icon that opens into a pill-shaped field
   ========================================================================== */
.kahperd-header .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: 50%;
	transition: background-color 0.15s ease;
}
.kahperd-header .wp-block-search__button svg {
	display: block;
	width: 24px;
	height: 24px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	fill: currentColor;
}
.kahperd-header .wp-block-search__button:hover {
	background: var(--wp--preset--color--tint-blue);
}
.kahperd-header .wp-block-search__input {
	height: 44px;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0 1.1rem 0 2.75rem !important;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231C4D86' d='M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z'/%3E%3C/svg%3E") no-repeat 0.9rem center / 20px;
	color: var(--wp--preset--color--ink);
	font-size: 16px; /* 16px stops iPhones zooming the page when the field is tapped */
}
.kahperd-header .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}
.kahperd-header .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	outline: 3px solid rgba(230, 176, 15, 0.55);
	outline-offset: 0;
}
/* close (×) button, added by assets/js/header-search.js; sits inside the field */
.kahperd-search-close {
	position: absolute;
	z-index: 31;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}
.kahperd-search-close:hover,
.kahperd-search-close:focus-visible {
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
}
.kahperd-search-close svg {
	fill: currentColor;
}
.kahperd-header .wp-block-search__searchfield-hidden .kahperd-search-close {
	display: none;
}
/* our × replaces the browser's own clear button */
.kahperd-header .wp-block-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	display: none;
}
.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	padding-right: 2.9rem !important;
}

/* while open, the icon becomes a yellow "go" button */
.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
}

/* Desktop: the field opens beside the icon */
@media (min-width: 782px) {
	.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		gap: 0.4rem;
	}
	.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		width: 260px !important;
	}
	.kahperd-header .wp-block-search__inside-wrapper {
		position: relative;
	}
	.kahperd-search-close {
		top: 4px;
		right: calc(44px + 0.4rem + 4px);
	}
}

/* Phones and tablets: the field opens as a full-width bar under the header
   instead of squeezing in beside the logo. */
@media (max-width: 781px) {
	.kahperd-header .wp-block-search,
	.kahperd-header .wp-block-search__inside-wrapper {
		position: static;
	}
	.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		width: auto !important;
	}
	.kahperd-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		position: absolute;
		z-index: 30;
		top: calc(100% + 0.5rem);
		left: max(16px, var(--wp--style--root--padding-left, 16px));
		right: max(16px, var(--wp--style--root--padding-right, 16px));
		width: auto !important;
		height: 54px;
		border-color: var(--wp--preset--color--primary);
		box-shadow: 0 10px 30px rgba(20, 55, 96, 0.2);
	}
	/* keep the round button above the logo's white tab, which can reach under it */
	.kahperd-header .wp-block-search__button {
		position: relative;
		z-index: 3;
	}
	.kahperd-search-close {
		top: calc(100% + 0.5rem + 9px);
		right: calc(max(16px, var(--wp--style--root--padding-right, 16px)) + 9px);
	}
}

/* ==========================================================================
   Search results page
   ========================================================================== */
.kahperd-search-hero .wp-block-query-title {
	margin-top: 0.25rem;
	overflow-wrap: anywhere;
}
.kahperd-search-count {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--muted);
}

/* big pill field with a round yellow button inside */
.kahperd-search-field {
	margin-top: var(--wp--preset--spacing--40);
}
.kahperd-search-field .wp-block-search__inside-wrapper {
	padding: 6px !important;
	border: 1.5px solid var(--wp--preset--color--line) !important;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 20px rgba(20, 55, 96, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kahperd-search-field .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary) !important;
	box-shadow: 0 0 0 4px rgba(230, 176, 15, 0.45);
}
.kahperd-search-field .wp-block-search__input {
	height: 52px;
	border: 0;
	padding: 0 0.75rem 0 1.25rem;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-size: 1.1rem;
	outline: none;
}
.kahperd-search-field .wp-block-search__button {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
}
.kahperd-search-field .wp-block-search__button svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

/* results: a clean list, whole row is easy to scan and tap */
.kahperd-search-results .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kahperd-search-results .wp-block-post {
	margin: 0;
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kahperd-search-results .wp-block-post:first-child {
	padding-top: 0;
}
.kahperd-search-result .wp-block-post-title a {
	display: inline-block;
	padding-block: 0.15rem;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.kahperd-search-result .wp-block-post-title a::after {
	content: " \2192";
	display: inline-block;
	margin-left: 0.3em;
	transition: transform 0.15s ease;
}
.kahperd-search-result .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}
.kahperd-search-result .wp-block-post-title a:hover::after {
	transform: translateX(4px);
}
.kahperd-search-result .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.kahperd-search-results .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
}
/* the results band is white, so the footer wave sits on white too */
body:has(.kahperd-search-page) .wp-block-template-part:has(> .is-style-wave) {
	background: var(--wp--preset--color--white);
}
.kahperd-search-empty .wp-block-heading {
	margin-top: 0;
}

/* ==========================================================================
   Resource and info cards
   ========================================================================== */
/* cards in a row stay the same height (columns would otherwise shrink to their content) */
.wp-block-columns > .wp-block-column:has(> .is-style-card:only-child) {
	align-self: stretch;
}
/* jump cards (Resources page): the whole card lifts on hover */
.kahperd-jump-card {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kahperd-jump-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(20, 55, 96, 0.12);
}
.kahperd-jump-card .wp-block-heading a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.kahperd-jump-card .wp-block-heading a::after {
	/* stretch the heading link over the card so the whole card is clickable */
	content: "";
	position: absolute;
	inset: 0;
}
.kahperd-jump-card {
	position: relative;
}
/* gold top edge for resource cards */
.kahperd-accent-card {
	border-top: 4px solid var(--wp--preset--color--accent);
}
/* name tags (partner lists) */
.kahperd-chip {
	margin: 0 !important;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: var(--wp--preset--color--tint-blue);
	line-height: 1.3;
}

/* ==========================================================================
   Accessibility (WCAG 2.2 AA): contrast, links, focus
   ========================================================================== */

/* Brand gold text on Primary Blue is 4.3:1 (AA needs 4.5:1 for small text).
   Small gold text on blue uses a slightly lighter gold (4.7:1). Gold buttons,
   and gold on white or on Deep Blue, keep the exact brand gold. */
:root {
	--kahperd-gold-on-blue: #EDBA1F;
}
.has-primary-background-color .has-accent-color:not(.has-background),
.has-primary-background-color.has-accent-color:not(.has-background) {
	color: var(--kahperd-gold-on-blue) !important;
}

/* Outline buttons on blue: white unless a text colour was chosen on purpose */
:is(.has-primary-background-color, .has-deep-background-color, .wp-block-cover) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

/* Links inside sentences need more than colour to stand out (WCAG 1.4.1) */
:is(.kahperd-main, .kahperd-search-page, .tribe-events-single, footer) :is(p, li, dd, td, figcaption) a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
:is(.kahperd-main, .kahperd-search-page, .tribe-events-single, footer) :is(p, li, dd, td, figcaption) a:not(.wp-block-button__link):hover {
	text-decoration-thickness: 2px;
}
/* stand-alone link lists read as menus, so they stay plain */
.kahperd-plain-list a {
	text-decoration: none !important;
}
.kahperd-plain-list a:hover,
.kahperd-plain-list a:focus-visible {
	text-decoration: underline !important;
}

/* Handwritten caption over a photo: a dark scrim keeps it readable on any photo */
.kahperd-photo-wrap::after {
	content: "";
	position: absolute;
	inset: 30% 0 0 0;
	border-radius: 0 0 var(--wp--custom--radius--medium) var(--wp--custom--radius--medium);
	background: linear-gradient(to top, rgba(20, 55, 96, 0.9), rgba(20, 55, 96, 0));
	pointer-events: none;
}
.kahperd-photo-wrap > .kahperd-photo-caption {
	z-index: 1;
}

/* Keyboard focus: a clear ring on every link, button and field */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 2px;
}
:is(.has-primary-background-color, .has-deep-background-color, .wp-block-cover, footer) :where(a, button, summary):focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* ==========================================================================
   Interior page system (inner pages; the homepage keeps its own design)
   ========================================================================== */

/* Hero: text on cream lined up with the nav, full-bleed photo on the right
   with a big curved corner and a sunflower badge on the seam */
.kahperd-interior-hero {
	position: relative;
	isolation: isolate;
	min-height: 480px;
}
.kahperd-interior-hero > .wp-block-media-text__content {
	padding-block: var(--wp--preset--spacing--70);
	padding-left: max(var(--wp--style--root--padding-left, 1.5rem), calc((100vw - var(--wp--style--global--wide-size, 1240px)) / 2)) !important;
	padding-right: var(--wp--preset--spacing--70) !important;
}
.kahperd-interior-hero > .wp-block-media-text__content > * + * {
	margin-top: var(--wp--preset--spacing--30);
}
.kahperd-interior-hero .wp-block-heading {
	margin-top: 0.35rem;
}
.kahperd-interior-hero > .wp-block-media-text__media {
	overflow: hidden;
	border-bottom-left-radius: 220px;
}
.kahperd-interior-hero::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 150px;
	aspect-ratio: 1;
	left: calc(56% - 85px);
	bottom: -42px;
	background: url("assets/images/sunflower.png") center / contain no-repeat;
	transform: rotate(-10deg);
	pointer-events: none;
}
.kahperd-interior-hero > .wp-block-media-text__content > .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--40);
}
/* jump links to the sections on the page */
.kahperd-jump-links .wp-block-button__link {
	padding: 0.45em 1.05em;
	font-size: var(--wp--preset--font-size--small);
	border-width: 1.5px;
	background: var(--wp--preset--color--white);
}
@media (max-width: 781px) {
	.kahperd-interior-hero {
		min-height: 0;
	}
	/* core sets image-fill photos to min-height 420px on phones */
	.wp-block-media-text.is-image-fill-element.kahperd-interior-hero > .wp-block-media-text__media {
		height: 240px;
		min-height: 0;
		border-bottom-left-radius: 90px;
	}
	.kahperd-interior-hero > .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--50) max(16px, var(--wp--style--root--padding-left, 16px)) var(--wp--preset--spacing--60) !important;
	}
	.kahperd-interior-hero::after {
		width: 96px;
		left: auto;
		right: 20px;
		top: 192px;
		bottom: auto;
	}
}

/* Section header: label + heading left, intro right */
.kahperd-section-head {
	margin-bottom: 0;
}
.kahperd-section-head p:last-child {
	margin-bottom: 0.4rem;
}

/* Check-mark list laid out across the row */
.kahperd-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem 2.5rem;
}
.kahperd-checklist li {
	position: relative;
	padding-left: 2.1rem;
}
.kahperd-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23143760' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Option / pricing cards: gold top edge, button pinned to the bottom */
.kahperd-option-card {
	display: flex;
	flex-direction: column;
	border-top: 4px solid var(--wp--preset--color--accent);
}
.kahperd-option-card > * {
	margin-block: 0 0.6rem;
}
.kahperd-option-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

/* Big number callout */
.kahperd-stat {
	margin: 0;
	font-size: clamp(4.5rem, 10vw, 8rem);
	font-weight: 700;
	line-height: 0.9;
}
.kahperd-stat-label {
	max-width: 18ch;
	font-size: var(--wp--preset--font-size--large);
}

/* FAQ heading stays in view while the questions scroll */
@media (min-width: 782px) {
	.kahperd-sticky {
		position: sticky;
		top: var(--wp--preset--spacing--50);
	}
}

/* Checklist in one column (e.g. beside a heading on a blue band) */
.kahperd-checklist--stacked {
	grid-template-columns: 1fr;
	gap: 1.1rem;
	font-size: var(--wp--preset--font-size--large);
}
.kahperd-checklist--stacked li::before {
	top: 0.25em;
}

/* Award recipient cards */
.kahperd-award-card {
	border-left: 4px solid var(--wp--preset--color--accent);
}
.kahperd-award-card > * {
	margin-block: 0 !important;
}
.kahperd-award-card > * + * {
	margin-top: 0.35rem !important;
}
.kahperd-award-name {
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.35;
}

/* ==========================================================================
   Convention Schedule block
   ========================================================================== */
.kahperd-schedule__heading {
	margin-bottom: var(--wp--preset--spacing--40);
}
.kahperd-schedule__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--30);
}
.kahperd-schedule__controls[hidden] {
	display: none;
}
/* day tabs */
.kahperd-schedule__days {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.kahperd-schedule__day-button {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 7.5rem;
	min-height: 44px;
	padding: 0.6rem 1rem;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.kahperd-schedule__day-button:hover {
	border-color: var(--wp--preset--color--primary);
}
.kahperd-schedule__day-button[aria-pressed="true"] {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.kahperd-schedule__day-name {
	font-weight: 700;
}
.kahperd-schedule__day-date {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.85;
}
/* track + search */
.kahperd-schedule__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.kahperd-schedule__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.kahperd-schedule__field select,
.kahperd-schedule__field input {
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
}
.kahperd-schedule__field--search input {
	width: min(20rem, 100%);
}
.kahperd-schedule__status {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.kahperd-schedule__status.is-empty {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--medium);
}
/* days and time slots */
.kahperd-schedule__date {
	margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--x-large);
}
.kahperd-schedule__day:first-of-type .kahperd-schedule__date {
	margin-top: 0;
}
.kahperd-schedule__slot {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}
.kahperd-schedule__time {
	margin: 0;
	padding-top: 0.15rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.kahperd-schedule__sessions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kahperd-session {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 1rem 1.1rem;
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
}
.kahperd-session[hidden],
.kahperd-schedule__slot[hidden],
.kahperd-schedule__day[hidden] {
	display: none;
}
.kahperd-session__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}
.kahperd-session__presenters {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}
.kahperd-session__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	margin: auto 0 0;
	padding-top: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.kahperd-session__room::before {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-right: 0.3em;
	vertical-align: -0.05em;
	background: url("assets/icons/pin-muted.svg") center / contain no-repeat;
}
.kahperd-session__track {
	padding: 0.05rem 0.55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.kahperd-schedule__note {
	margin-top: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 781px) {
	.kahperd-schedule__slot {
		grid-template-columns: 1fr;
		gap: 0.6rem;
	}
	.kahperd-schedule__day-button {
		flex: 1 1 calc(50% - 0.5rem);
		min-width: 0;
	}
	.kahperd-schedule__filters,
	.kahperd-schedule__field,
	.kahperd-schedule__field--search input {
		width: 100%;
	}
	.kahperd-schedule__sessions {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   The Events Calendar: brand colours and fonts, full-width event pages
   ========================================================================== */
body {
	--tec-font-family-sans-serif: var(--wp--preset--font-family--body);
	--tec-font-family-base: var(--wp--preset--font-family--body);
	--tec-color-text-primary: var(--wp--preset--color--ink);
	--tec-color-text-secondary: var(--wp--preset--color--muted);
	--tec-color-accent-primary: var(--wp--preset--color--primary);
	--tec-color-accent-primary-hover: var(--wp--preset--color--deep);
	--tec-color-accent-primary-active: var(--wp--preset--color--deep);
	--tec-color-accent-primary-background: rgba(28, 77, 134, 0.07);
	--tec-color-accent-primary-background-datepicker: rgba(28, 77, 134, 0.07);
	--tec-color-accent-primary-week-event: rgba(28, 77, 134, 0.1);
	--tec-color-accent-primary-week-event-hover: rgba(28, 77, 134, 0.18);
	--tec-color-accent-primary-week-event-featured: rgba(230, 176, 15, 0.22);
	--tec-color-accent-primary-week-event-featured-hover: rgba(230, 176, 15, 0.32);
	--tec-color-link-accent: var(--wp--preset--color--primary);
	--tec-color-link-accent-hover: var(--wp--preset--color--deep);
	--tec-color-border-active: var(--wp--preset--color--primary);
	--tec-color-day-marker-month: var(--wp--preset--color--primary);
	--tec-color-button-primary: var(--wp--preset--color--primary);
	--tec-color-button-primary-hover: var(--wp--preset--color--deep);
	--tec-color-button-primary-active: var(--wp--preset--color--deep);
	--tec-color-button-primary-background: rgba(28, 77, 134, 0.07);
	--tec-color-background-events-bar-submit-button: var(--wp--preset--color--primary);
	--tec-color-background-events-bar-submit-button-hover: var(--wp--preset--color--deep);
	--tec-color-background-events-bar-submit-button-active: var(--wp--preset--color--deep);
}
/* event titles in lists use the heading font */
.tribe-common .tribe-common-h3,
.tribe-common .tribe-common-h4,
.tribe-common .tribe-common-h5,
.tribe-common .tribe-common-h6,
.tribe-events .tribe-events-calendar-list__event-title {
	font-family: var(--wp--preset--font-family--heading);
}
/* featured events: gold accent instead of the default blue bar */
.tribe-events .tribe-events-calendar-list__event-row--featured .tribe-events-calendar-list__event-date-tag-datetime:after,
.tribe-events .tribe-events-calendar-list__event--featured .tribe-events-calendar-list__event-date-tag-datetime:after {
	background-color: var(--wp--preset--color--accent);
}
.tribe-events .tribe-events-calendar-list__event-datetime-featured-text,
.tribe-events .tribe-events-calendar-list__event-datetime-featured-icon {
	color: var(--wp--preset--color--deep);
	font-weight: 700;
}

/* single event: use the full page width; sections run edge to edge */
.single-tribe_events #tribe-events-pg-template {
	max-width: none;
	padding: 0;
}
.single-tribe_events .tribe-events-back,
.single-tribe_events .tribe-events-notices,
.single-tribe_events .tribe-events-single-event-title,
.single-tribe_events #tribe-events-footer {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1240px) + 2 * max(16px, var(--wp--style--root--padding-left, 16px)));
	margin-inline: auto;
	padding-inline: max(16px, var(--wp--style--root--padding-left, 16px));
}
.single-tribe_events .tribe-events-back {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: 0;
}
.single-tribe_events .tribe-events-back a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
body.single-tribe_events .tribe-blocks-editor .tribe-events-single-event-title,
.single-tribe_events .tribe-events-single-event-title {
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.05;
	color: var(--wp--preset--color--primary);
}
.single-tribe_events .tribe_events > .alignfull {
	margin-block: 0;
}
.single-tribe_events #tribe-events-footer {
	margin-block: var(--wp--preset--spacing--50);
}

/* "Featured event" pill */
.kahperd-featured-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--deep);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.kahperd-featured-pill::before {
	content: "\2605";
	font-size: 1.05em;
}
.kahperd-event-tagline {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) !important;
}
/* screen-reader-only labels from The Events Calendar (its own rule isn't loaded on block event pages) */
.tribe-events-visuallyhidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
/* event date, price and add-to-calendar blocks */
.single-tribe_events .tribe-block__event-datetime,
.single-tribe_events .tribe-events-schedule__datetime {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.single-tribe_events .tribe-block__event-price {
	margin: var(--wp--preset--spacing--30) 0 0;
	color: var(--wp--preset--color--muted);
}
.single-tribe_events .tribe-block__events-link {
	margin-top: var(--wp--preset--spacing--30);
}
.single-tribe_events .tribe-block__events-link .tribe-block__btn--link {
	border-radius: 999px;
}
/* price lists inside option cards */
.kahperd-price-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kahperd-price-list li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kahperd-price-list li:last-child {
	border-bottom: 0;
}
/* flyers: same-size thumbnails that open full size */
.kahperd-flyers .wp-block-image img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: top;
	box-shadow: 0 10px 30px rgba(20, 55, 96, 0.15);
}

/* event date separators ("@", "–") were a pale grey */
.tribe-events-schedule__separator {
	color: var(--wp--preset--color--muted) !important;
}
/* list view rows used negative gutters that poked 1–2px past the screen on phones */
.tribe-events .tribe-events-calendar-list {
	overflow-x: clip;
}
/* the calendar's link colour was overriding the theme's button text inside events */
.tribe-events-single .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--deep);
}
.tribe-events-single .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}
.tribe-events-single :is(.has-primary-background-color, .has-deep-background-color) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

/* Open ☰ menu: logo at the top, gold Member Login at the bottom, sunflower accent */
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open {
	overflow-x: hidden;
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	min-height: 100%;
}
/* logo sits level with the close (×) button */
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: -0.5rem;
	left: 0;
	width: 132px;
	height: 72px;
	background: url("assets/images/logo-color.png") left center / contain no-repeat;
	pointer-events: none;
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 5rem;
}
/* faint sunflower in the bottom corner */
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open::after {
	content: "";
	position: fixed;
	z-index: -1;
	right: -90px;
	bottom: -90px;
	width: 300px;
	aspect-ratio: 1;
	background: url("assets/images/sunflower.png") center / contain no-repeat;
	opacity: 0.18;
	transform: rotate(-12deg);
	pointer-events: none;
}
.kahperd-header .wp-block-navigation__responsive-container.is-menu-open {
	isolation: isolate;
}
/* Member Login always shows as a full-width gold button at the end of the menu */
@media (max-width: 781px) {
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-mobile.kahperd-nav-button {
		display: block;
		margin-top: var(--wp--preset--spacing--40);
	}
	.kahperd-header .wp-block-navigation__responsive-container.is-menu-open .kahperd-nav-button .wp-block-navigation-item__content {
		box-shadow: 0 6px 18px rgba(20, 55, 96, 0.15);
	}
}

/* Waves: no hairline seams at fractional zoom (85%, 110%, 170%…).
   The wave's colour reaches 2px past its bottom edge and overlaps the next
   section by 1px; the footer wave tucks 1px under the section above it. */
.wp-block-separator.is-style-wave {
	position: relative;
	z-index: 1;
	margin-bottom: -1px !important;
	-webkit-mask-position: top;
	-webkit-mask-size: 100% calc(100% + 2px);
	mask-position: top;
	mask-size: 100% calc(100% + 2px);
}
.wp-block-template-part:has(> .is-style-wave) {
	position: relative;
	z-index: 1;
	margin-top: -1px;
}

/* Leadership roster: name left, role right, hairline between rows */
.kahperd-roster {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kahperd-roster li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kahperd-roster li:last-child {
	border-bottom: 0;
}
.kahperd-roster li span {
	color: var(--wp--preset--color--muted);
}

/* Image popup (assets/js/image-popup.js) */
.kahperd-popup-dialog {
	width: min(1200px, calc(100vw - 2rem));
	max-width: none;
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	overflow: auto;
}
.kahperd-popup-dialog::backdrop {
	background: rgb(10 25 50 / 0.75);
}
.kahperd-popup-dialog img {
	display: block;
	width: 100%;
	height: auto;
}
/* sections that only appear inside the popup */
.kahperd-popup-content {
	display: none;
}
.kahperd-popup-dialog .kahperd-popup-content {
	display: block;
	margin: 0;
	padding: var(--wp--preset--spacing--50);
}
.editor-styles-wrapper .kahperd-popup-content {
	display: block;
	outline: 2px dashed var(--wp--preset--color--line);
	outline-offset: 0.75rem;
}
.kahperd-popup-close {
	position: sticky;
	top: 0.5rem;
	float: right;
	margin: 0.5rem 0.5rem -3rem 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	fill: currentColor;
	cursor: pointer;
}
.kahperd-popup-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* keeps a short figure (e.g. "91%") on one line inside a flex row */
.kahperd-nowrap {
	white-space: nowrap;
	flex-shrink: 0;
}

/* Awards (inc/awards.php) */
.kahperd-breadcrumb {
	color: var(--wp--preset--color--muted);
}
.kahperd-breadcrumb a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.kahperd-breadcrumb a:hover,
.kahperd-breadcrumb a:focus-visible {
	text-decoration: underline;
}
/* pins a card's last link or button to the bottom so cards in a row line up */
.kahperd-push-down {
	margin-top: auto !important;
	padding-top: 0.5rem;
}
.kahperd-award-section + .kahperd-award-section {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--line);
}
.kahperd-award-section > h2 {
	margin: 0 0 var(--wp--preset--spacing--40);
}
.kahperd-award-about > * + * {
	margin-top: 1rem;
}
/* sub-points under a checklist item: plain bullets, no extra check */
.kahperd-award-list li ul,
.kahperd-criteria li ul {
	list-style: disc;
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.kahperd-award-list li li {
	padding-left: 0;
}
.kahperd-award-list li li::before {
	content: none;
}
.kahperd-award-list li li + li,
.kahperd-criteria li li + li {
	margin-top: 0.3rem;
}
/* numbered criteria */
.kahperd-criteria {
	list-style: none;
	counter-reset: kahperd-criteria;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.4rem;
}
.kahperd-criteria > li {
	counter-increment: kahperd-criteria;
	position: relative;
	padding-left: 3rem;
}
.kahperd-criteria > li::before {
	content: counter(kahperd-criteria);
	position: absolute;
	left: 0;
	top: -0.1em;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 0.95rem;
}
/* translucent cards on the blue nominations band */
.kahperd-glass-card {
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 14px;
}

/* Contact form (WPForms): matches the theme's fields, labels and pill buttons */
.kahperd-contact-form .wpforms-container {
	--wpforms-field-border-radius: 10px;
	--wpforms-field-border-size: 1.5px;
	--wpforms-field-border-color: var(--wp--preset--color--line);
	--wpforms-field-background-color: var(--wp--preset--color--white);
	--wpforms-field-text-color: var(--wp--preset--color--ink);
	--wpforms-field-size-input-height: 48px;
	--wpforms-label-color: var(--wp--preset--color--ink);
	--wpforms-label-sublabel-color: var(--wp--preset--color--muted);
	--wpforms-label-error-color: #B42318;
	--wpforms-button-background-color: var(--wp--preset--color--accent);
	--wpforms-button-border-color: var(--wp--preset--color--accent);
	--wpforms-button-text-color: var(--wp--preset--color--deep);
	--wpforms-button-border-radius: 999px;
	--wpforms-button-size-height: 50px;
	--wpforms-button-size-padding-h: 1.8em;
	--wpforms-button-size-margin-top: 0.5rem;
	margin: var(--wp--preset--spacing--30) 0 0;
}
.kahperd-contact-form .wpforms-container .wpforms-field {
	padding: 0.6rem 0;
}
.kahperd-contact-form .wpforms-container .wpforms-field-label {
	font-weight: 700;
}
.kahperd-contact-form .wpforms-container .wpforms-required-label {
	color: var(--wp--preset--color--primary);
}
.kahperd-contact-form .wpforms-container .wpforms-field-sublabel {
	font-size: var(--wp--preset--font-size--small);
}
.kahperd-contact-form .wpforms-container textarea {
	min-height: 9rem;
}
.kahperd-contact-form .wpforms-container :is(input, textarea, select):focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
}
.kahperd-contact-form .wpforms-container .wpforms-submit {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}
.kahperd-contact-form div.wpforms-container-full .wpforms-submit:is(:hover, :active) {
	background: #FFD757;
}
.kahperd-contact-form div.wpforms-container-full .wpforms-submit:focus::after {
	border-color: var(--wp--preset--color--primary);
}
.kahperd-contact-form .wpforms-confirmation-container-full {
	padding: 1rem 1.25rem;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--tint-green);
	color: var(--wp--preset--color--ink);
}
/* right column: staff card sizes to its content, the jump-links card fills the rest */
.kahperd-contact-side {
	display: flex;
	flex-direction: column;
}
.kahperd-contact-side > .is-style-card {
	height: auto;
}
.kahperd-contact-side > .is-style-card:last-child {
	flex: 1;
}

/* ==========================================================================
   Publications (inc/publications.php)
   ========================================================================== */
.kahperd-pub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--40);
}
.kahperd-pub-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--medium);
	border: 1px solid rgb(20 55 96 / 0.1);
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(20, 55, 96, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kahperd-pub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(20, 55, 96, 0.12);
}
/* generated cover: navy panel with a gold edge, the type and the issue */
.kahperd-pub-card__cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
	aspect-ratio: 16 / 11;
	padding: 1.25rem 1.4rem;
	border-bottom: 4px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--primary) linear-gradient(150deg, rgb(255 255 255 / 0.1), rgb(0 0 0 / 0.12));
	color: var(--wp--preset--color--white);
}
.kahperd-pub-card__cover.has-image {
	padding: 0;
	background: var(--wp--preset--color--tint-gray);
}
.kahperd-pub-card__cover.has-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.kahperd-pub-card__type {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.kahperd-pub-card__issue {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.1;
}
.kahperd-pub-card__icon {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	opacity: 0.85;
}
.kahperd-pub-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.4rem 1.4rem;
}
.kahperd-pub-card__meta {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.kahperd-pub-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}
.kahperd-pub-card__desc {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.kahperd-pub-card__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.5rem;
}
.kahperd-pub-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}
.kahperd-pub-card__soon {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}
.kahperd-pub-year + .kahperd-pub-year {
	margin-top: var(--wp--preset--spacing--60);
}
.kahperd-pub-year__title {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
}
.kahperd-pub-empty {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
}

/* ---------- Block: Upcoming Events (from the calendar) ---------- */
.kahperd-upcoming-events__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	overflow: hidden;
}
.kahperd-upcoming-events__item {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kahperd-upcoming-events__item:last-child {
	border-bottom: 0;
}
.kahperd-upcoming-events__item.is-featured {
	box-shadow: inset 4px 0 0 var(--wp--preset--color--accent);
}
.kahperd-upcoming-events__badge {
	flex: 0 0 64px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem 0;
	border-radius: 12px;
	background: var(--wp--preset--color--tint-blue);
	color: var(--wp--preset--color--primary);
	line-height: 1;
	text-align: center;
}
.kahperd-upcoming-events__month,
.kahperd-upcoming-events__year {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.kahperd-upcoming-events__day {
	margin: 0.2rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}
.kahperd-upcoming-events__year {
	font-weight: 400;
	opacity: 0.75;
}
.kahperd-upcoming-events__body {
	flex: 1 1 auto;
	min-width: 0;
}
.kahperd-upcoming-events__title {
	margin: 0 0 0.3rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}
.kahperd-upcoming-events__title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.kahperd-upcoming-events__title a:hover,
.kahperd-upcoming-events__title a:focus-visible {
	text-decoration: underline;
}
.kahperd-upcoming-events__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.kahperd-upcoming-events__more {
	flex: 0 0 auto;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.kahperd-upcoming-events__more:hover,
.kahperd-upcoming-events__more:focus-visible {
	text-decoration: underline;
}
.kahperd-upcoming-events__empty {
	margin: 0;
	padding: 2rem 1.5rem;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 16px;
	color: var(--wp--preset--color--muted);
	text-align: center;
}
@media (max-width: 600px) {
	.kahperd-upcoming-events__item {
		flex-wrap: wrap;
		gap: 0.9rem;
		padding: 1rem;
	}
	.kahperd-upcoming-events__body {
		flex-basis: calc(100% - 64px - 0.9rem);
	}
	.kahperd-upcoming-events__more {
		margin-left: calc(64px + 0.9rem);
	}
}

/* Upcoming Events, compact (narrow columns like the homepage "Also Coming Up") */
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__list {
	border: 0;
	border-radius: 0;
	background: none;
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__item {
	gap: 0.9rem;
	padding: 0.9rem 0;
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__item.is-featured {
	box-shadow: none;
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__badge {
	flex-basis: 52px;
	padding: 0.4rem 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__day {
	font-size: var(--wp--preset--font-size--large);
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__title {
	margin-bottom: 0.15rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__meta {
	flex-direction: column;
	gap: 0.1rem;
	font-size: var(--wp--preset--font-size--x-small);
}
.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__empty {
	padding: 1.25rem 1rem;
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 600px) {
	.kahperd-upcoming-events.is-compact .kahperd-upcoming-events__item {
		flex-wrap: nowrap;
	}
}

/* Single event: Venue and Organizer blocks as matching cards */
.tribe-block.tribe-block__venue,
.tribe-block.tribe-block__organizer__details {
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}
.tribe-block.tribe-block__venue .tribe-block__venue__meta {
	padding: 0;
	border: 0;
	width: 100%;
}
.tribe-block.tribe-block__venue .tribe-block__venue__name h3,
.tribe-block.tribe-block__organizer__details .tribe-block__organizer__title h3 {
	margin: 0 0 0.4rem;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.25;
}
.tribe-block.tribe-block__venue address,
.tribe-block.tribe-block__venue .tribe-address,
.tribe-block.tribe-block__organizer__details p {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
}
.tribe-block.tribe-block__venue .tribe-block__venue__website,
.tribe-block.tribe-block__organizer__details .tribe-block__organizer__website,
.tribe-block.tribe-block__organizer__details .tribe-block__organizer__email,
.tribe-block.tribe-block__organizer__details .tribe-block__organizer__phone {
	display: block;
	margin-top: 0.6rem;
}
.tribe-block.tribe-block__venue a,
.tribe-block.tribe-block__organizer__details a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.tribe-block.tribe-block__venue br {
	display: none;
}
.wp-block-column:has(> .tribe-block__venue),
.wp-block-column:has(> .tribe-block__organizer__details) {
	display: flex;
	flex-direction: column;
}
.wp-block-column > .tribe-block.tribe-block__venue,
.wp-block-column > .tribe-block.tribe-block__organizer__details {
	flex: 1 1 auto;
	margin-top: 0.75rem;
}

/* Outline buttons: fill on hover/focus so they read as clickable, like the gold buttons */
.wp-block-button__link {
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white) !important; /* beats a text colour picked in the editor (WP adds those with !important) */
}
:is(.has-primary-background-color, .has-deep-background-color, .wp-block-cover) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary) !important;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link {
		transition: none;
	}
}

/* ==========================================================================
   Header nav: show which section the visitor is in (set by inc/nav-current.php)
   ========================================================================== */
.kahperd-header .wp-block-navigation-item:not(.kahperd-nav-button) > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.45em;
	transition: text-decoration-color 0.18s ease;
}
.kahperd-header .wp-block-navigation-item:not(.kahperd-nav-button) > .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--wp--preset--color--line);
}
.kahperd-header .wp-block-navigation-item.current-menu-item:not(.kahperd-nav-button) > .wp-block-navigation-item__content {
	font-weight: 700;
	text-decoration-color: var(--wp--preset--color--accent);
}
@media (prefers-reduced-motion: reduce) {
	.kahperd-header .wp-block-navigation-item__content { transition: none; }
}
.kahperd-header-contact a[aria-current="page"] {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.45em;
}
