/*
Theme Name: KittenUniversity
Theme URI: https://kittenuniversity.com
Author: Candystore Studio (Phil Blakemore)
Author URI: https://candystore.studio
Author Email: hey@candystore.studio
Description: Custom FSE block theme for Kitten University, a university-style sex-ed platform and program of Like a Kitten. Editorial, information-heavy aesthetic with Playfair Display headings, DM Sans body, and Courier Prime labels.
Version: 1.1.33
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
License: Private
Text Domain: kitten-university
*/

/* ─── Reset ──────────────────────────────────────────────────────────────── */

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

/* ─── Body defaults ──────────────────────────────────────────────────────── */
/* theme.json handles background, text colour, and font-family on body.
   We add only what theme.json cannot express. */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

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

img,
video,
iframe {
	max-width: 100%;
}

/* ─── Typography utilities ───────────────────────────────────────────────── */

.is-style-section-label,
.ku-section-label,
h6.ku-section-label,
h6.is-style-section-label {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.is-style-section-label::after,
.ku-section-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--warm-gray);
}

/*
 * Core's nav overlay padding rule consumes --wp--style--root--padding-*,
 * which WP only outputs when theme.json sets styles.spacing.padding (root
 * padding). This theme handles gutters per section instead, so the vars are
 * undefined — and an undefined var() inside clamp() invalidates the entire
 * padding declaration at computed-value time (resolves to 0, not the 1rem
 * clamp floor). Define the vars directly; if root padding is ever added to
 * theme.json, WP's body-level values will simply take over.
 */
:root {
	--wp--style--root--padding-top: 2rem;
	--wp--style--root--padding-right: 1.5rem;
	--wp--style--root--padding-bottom: 2rem;
	--wp--style--root--padding-left: 1.5rem;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */

/* Sticky must live on the template-part wrapper (<header class="wp-block-template-part">),
   not on .ku-site-header inside it — a sticky element can only move within its
   parent, and the wrapper is exactly the same height, making inner sticky a no-op. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/*
 * WordPress reserves 32px for the desktop admin bar and 46px below its 782px
 * breakpoint. Core does not expose those values as a CSS custom property on
 * every install, so keep a theme-owned value for both the sticky offset and
 * the mobile menu height.
 */
.admin-bar {
	--ku-admin-bar-height: 32px;
}

.admin-bar header.wp-block-template-part {
	top: var(--ku-admin-bar-height);
}

@media screen and (max-width: 782px) {
	.admin-bar {
		--ku-admin-bar-height: 46px;
	}
}

.ku-nav-inner {
	height: 64px;
	min-width: 0;
	width: 100%;
}

.ku-nav-brand,
.ku-nav-right,
.ku-site-header .wp-block-navigation {
	min-width: 0;
}

.ku-nav-title,
.ku-overlay-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.ku-site-header .ku-nav-title > a,
.ku-site-header .ku-overlay-title > a,
.ku-site-header .wp-block-site-title > a {
	color: var(--wp--preset--color--white, #fff) !important;
	text-decoration: none;
}

.ku-site-header .ku-nav-title > a:hover,
.ku-site-header .ku-overlay-title > a:hover,
.ku-site-header .wp-block-site-title > a:hover {
	color: var(--wp--preset--color--gold, #c9a84c) !important;
}

.ku-nav-brand .wp-block-site-tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.45);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 0.625rem;
	font-weight: 300;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

/* Nav link active / hover states */
.ku-site-header .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
	padding: 20px 16px;
	display: block;
	border-bottom: 3px solid transparent;
	margin-bottom: -3px;
	transition: color 0.15s, border-color 0.15s;
	text-decoration: none;
}

.ku-site-header .wp-block-navigation-item__content:hover,
.ku-site-header .current-menu-item .wp-block-navigation-item__content,
.ku-site-header .wp-block-navigation-item__content.is-active,
.ku-site-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--gold);
	border-bottom-color: var(--wp--preset--color--gold);
}

/*
 * Shopify cart toggle (create-block/shopify-cart-toggle-block).
 * The plugin's cart.css (includes/components/frontend/styles/cart.css)
 * draws the bag icon on .navigation__view-cart span::after as an inline
 * SVG background-image with no fill — it renders black and ignores
 * `color`, so it's invisible on the ink header. block.json declares no
 * color supports, so there is no editor control; override here rather
 * than editing plugin files (update safety).
 */
.ku-site-header .wp-block-create-block-shopify-cart-toggle-block,
.ku-site-header .navigation__view-cart {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
	transition: color 0.15s;
}

.ku-site-header .navigation__view-cart:hover {
	color: var(--wp--preset--color--gold);
}

.ku-site-header .navigation__view-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ku-site-header .navigation__view-cart__quantity {
	position: absolute;
	top: -7px;
	right: -9px;
	z-index: 1;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid var(--wp--preset--color--ink, #1c1c1c);
	border-radius: 999px;
	background: var(--wp--preset--color--gold, #c9a84c);
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	transform: none;
}

.ku-site-header .navigation__view-cart__quantity:empty {
	display: none;
}

/* Repaint the bag icon: `background: currentColor` resets the plugin's
   background-image, then the same SVG path is reapplied as a mask so the
   icon tracks text/hover colour. */
.ku-site-header .navigation__view-cart span::after {
	background: currentColor;
	background-image: none;
	margin-right: 0; /* plugin adds 15px assuming content follows the icon */
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 44 45%27><path d=%27M 23 2 C 18.385291 2 14.559689 5.5140788 14.058594 10 L 12 10 C 9.688 10 7.7634375 11.733203 7.5234375 14.033203 L 5.0234375 38.033203 C 4.8914375 39.298203 5.30425 40.566672 6.15625 41.513672 C 7.00825 42.458672 8.228 43 9.5 43 L 38.5 43 C 39.772 43 40.99175 42.458672 41.84375 41.513672 C 42.69575 40.567672 43.106609 39.298203 42.974609 38.033203 L 40.476562 14.033203 C 40.236562 11.733203 38.312 10 36 10 L 33.953125 10 C 33.984125 10.33 34 10.664 34 11 L 34 13 L 36 13 C 36.771 13 37.412187 13.578703 37.492188 14.345703 L 39.992188 38.345703 C 40.036187 38.767703 39.898234 39.189906 39.615234 39.503906 C 39.331234 39.818906 38.924 40 38.5 40 L 9.5 40 C 9.076 40 8.6697188 39.819859 8.3867188 39.505859 C 8.1027187 39.190859 7.9638125 38.767703 8.0078125 38.345703 L 10.507812 14.345703 C 10.587813 13.578703 11.229 13 12 13 L 14 13 L 14 16.5 A 1.50015 1.50015 0 1 0 17 16.5 L 17 11 C 17 7.6687195 19.668719 5 23 5 C 25.989762 5 28.439942 7.1510842 28.912109 10 L 19.132812 10 C 19.048812 10.32 19 10.654 19 11 L 19 13 L 29 13 L 29 16.5 A 1.50015 1.50015 0 1 0 32 16.5 L 32 11 C 32 6.0472805 27.952719 2 23 2 z%27 /></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 44 45%27><path d=%27M 23 2 C 18.385291 2 14.559689 5.5140788 14.058594 10 L 12 10 C 9.688 10 7.7634375 11.733203 7.5234375 14.033203 L 5.0234375 38.033203 C 4.8914375 39.298203 5.30425 40.566672 6.15625 41.513672 C 7.00825 42.458672 8.228 43 9.5 43 L 38.5 43 C 39.772 43 40.99175 42.458672 41.84375 41.513672 C 42.69575 40.567672 43.106609 39.298203 42.974609 38.033203 L 40.476562 14.033203 C 40.236562 11.733203 38.312 10 36 10 L 33.953125 10 C 33.984125 10.33 34 10.664 34 11 L 34 13 L 36 13 C 36.771 13 37.412187 13.578703 37.492188 14.345703 L 39.992188 38.345703 C 40.036187 38.767703 39.898234 39.189906 39.615234 39.503906 C 39.331234 39.818906 38.924 40 38.5 40 L 9.5 40 C 9.076 40 8.6697188 39.819859 8.3867188 39.505859 C 8.1027187 39.190859 7.9638125 38.767703 8.0078125 38.345703 L 10.507812 14.345703 C 10.587813 13.578703 11.229 13 12 13 L 14 13 L 14 16.5 A 1.50015 1.50015 0 1 0 17 16.5 L 17 11 C 17 7.6687195 19.668719 5 23 5 C 25.989762 5 28.439942 7.1510842 28.912109 10 L 19.132812 10 C 19.048812 10.32 19 10.654 19 11 L 19 13 L 29 13 L 29 16.5 A 1.50015 1.50015 0 1 0 32 16.5 L 32 11 C 32 6.0472805 27.952719 2 23 2 z%27 /></svg>");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Champion feature names link to their profile; keep the editorial look. */
.champion-feature__name a {
	color: inherit;
	text-decoration: none;
}

.champion-feature__name a:hover {
	color: var(--wp--preset--color--gold);
}

/* ─── Shopify cart drawer ────────────────────────────────────────────────
   Exposed shadow parts; internals are themed via an adopted stylesheet in
   assets/js/shopify-cart-theme.js (the component's shadow root is open). */
shopify-cart::part(dialog) {
	background: var(--wp--preset--color--paper, #FEFCF7);
	border-top: 3px solid var(--wp--preset--color--gold, #C9A84C);
	border-radius: 3px;
	box-shadow: -12px 0 36px rgba(0, 0, 0, 0.18);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	max-width: min(440px, 100vw);
}

shopify-cart::part(secondary-button) {
	border-radius: 3px;
}

@media (max-width: 480px) {
	shopify-cart::part(dialog) {
		border-radius: 0;
		max-width: 100vw;
		width: 100vw;
	}
}

/* Mobile nav toggle */
.ku-site-header .wp-block-navigation__responsive-container-open,
.ku-site-header .wp-block-navigation__responsive-container-close {
	color: rgba(255, 255, 255, 0.6);
}

/*
 * Core collapses the nav to a hamburger below 600px only (hardcoded breakpoint
 * in blocks/navigation/style.css). This header — brand (240px) + 6 links + cart
 * (717px) + search (194px), all flexWrap:nowrap — needs ~1180px, so between
 * 600px and ~1180px it squashes and overlaps the hero. Replicate core's toggle
 * rules at the width the content actually requires. The extra .ku-site-header
 * ancestor out-specifies core's min-width:600px rules regardless of load order.
 */
@media (max-width: 1279px) {
	.ku-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ku-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* Search doesn't fit the collapsed header; it has no home in the nav
	   row, so the desktop controls hide while their overlay versions remain
	   available inside the Navigation block. */
	.ku-site-header .ku-nav-right {
		display: none;
	}
}

/*
 * Core's Search block applies colour settings to the button only — its colour
 * support skips serialization and the render callback re-applies them to the
 * button element, never the input. Style the input directly. Border colour is
 * left alone: the warm-gray preset set in the editor reaches the input fine.
 */
.ku-site-header .ku-nav-search .wp-block-search__input {
	background-color: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 0.75rem;
	line-height: 1.35;
	min-height: 30px;
	padding: 6px 12px;
	width: 180px;
}

.ku-site-header .ku-nav-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
	background: transparent;
}

.ku-site-header .ku-nav-search .wp-block-search__input::placeholder {
	color: rgba(255, 255, 255, 0.3);
	opacity: 1;
}

/*
 * WP 7.0 core paints the open overlay white for navs without a background,
 * via a (0,5,0) selector:
 *   .wp-block-navigation:not(.has-background)
 *     .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay)
 * The proper fix is overlayBackgroundColor/overlayTextColor on the nav block
 * (set in parts/header.html — preset classes win via !important). This rule
 * is a fallback for any nav instance missing those attributes; it matches
 * core's specificity and wins on source order (theme CSS loads after core).
 */
.ku-site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* Core zeroes link padding inside the overlay at (0,4,0); this (0,5,0) rule
   restores comfortable tap targets and drops the desktop hover underline. */
.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	padding: 14px 56px 14px 0;
	border-bottom: none;
	margin-bottom: 0;
	width: 100%;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 0;
	width: 100%;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.ku-btn-random) {
	position: relative;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.ku-btn-random)::after {
	color: var(--ku-warm-gray);
	content: '\2192';
	font-size: 18px;
	opacity: 0.1;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	transition: color 0.15s, opacity 0.15s, transform 0.15s;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.ku-btn-random):hover::after {
	color: var(--ku-gold);
	transform: translateY(-50%) translateX(4px);
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item,
.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(.wp-block-navigation-item__content[aria-current="page"]) {
	border-bottom-color: var(--ku-gold);
	color: var(--ku-gold);
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item::after,
.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(.wp-block-navigation-item__content[aria-current="page"])::after {
	color: var(--ku-gold);
	opacity: 1;
}

/*
 * Open overlay: sit beneath the sticky header rather than covering it
 * (core default is position:fixed inset 0). The template-part wrapper is
 * position:sticky — a positioned ancestor — so top:100% anchors the panel
 * to the header's exact bottom edge, tracking any header height or admin
 * bar offset automatically. Only the height calc needs the header height;
 * keep --ku-header-height in sync if the header layout changes.
 */
.ku-site-header {
	/* Explicit anchor for the open panel below — top:100% resolves against
	   this box (its padding edge; the 3px gold border sits outside it, so
	   the panel carries its own matching border-top). */
	position: relative;
	/* Kill core's 2.375em background-group side padding — gutters are
	   .ku-nav-inner's job. (Block markup only zeroes the block axis.) */
	padding-inline: 0;
	--ku-header-height: 81px; /* 46px logo + 2 × 16px padding + 3px border */
}

@media (min-width: 783px) {
	.ku-site-header {
		--ku-header-height: 67px; /* .ku-nav-inner fixed 64px + 3px border */
	}
}

@media (max-width: 782px) {
	.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 1rem;
	}
}

/* Core gives .wp-block-navigation position:relative (submenu anchoring),
   which would hijack the panel's absolute positioning — top:100% must
   resolve against .ku-site-header, not the nav row. This menu is flat;
   revisit if submenus are ever added. */
.ku-site-header .wp-block-navigation {
	position: static;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open {
	position: absolute;
	top: 100%;
	right: 0;
	bottom: auto;
	left: 0;
	border-top: 3px solid var(--wp--preset--color--gold);
	height: calc(100vh - var(--ku-header-height) - var(--ku-admin-bar-height, 0px));
	height: calc(100dvh - var(--ku-header-height) - var(--ku-admin-bar-height, 0px));
}

/* Core's full-screen overlay adds margin-top: 46px to the dialog to clear
   the admin bar; the panel already sits below the (admin-bar-offset) header,
   so that compensation just double-offsets the content. */
.has-modal-open .admin-bar .ku-site-header .is-menu-open .wp-block-navigation__responsive-dialog {
	margin-top: 0;
}

/*
 * Overlay-only nav items: search lives inside the Navigation block so it
 * appears in the hamburger panel; the desktop row shows the real search —
 * hide any .ku-overlay-only item while the overlay is closed.
 */
.ku-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .ku-overlay-only {
	display: none;
}

/* Older Site Editor copies of this template part may still contain the
   retired overlay branding. The main mobile header already owns it. */
.ku-site-header :is(.ku-overlay-logo, .ku-overlay-title, .ku-overlay-tagline) {
	display: none !important;
}

.ku-site-header .is-menu-open .ku-overlay-search {
	margin-bottom: 2rem;
	width: 100%;
	max-width: 425px;
}

.ku-site-header .is-menu-open .ku-overlay-search .wp-block-search__input {
	width: 100%;
}

/* Random button — mirrors the gold prototype control beside search. */
.ku-btn-random {
	display: inline-block;
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--ink, #1c1c1c);
	background: var(--wp--preset--color--gold, #c9a84c);
	border: 0;
	border-radius: 3px;
	padding: 7px 14px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.ku-btn-random:hover {
	background: #d9bd68;
	color: var(--wp--preset--color--ink, #1c1c1c);
}

.ku-site-header .is-menu-open .ku-btn-random {
	margin-top: 1rem;
}

.ku-site-header .wp-block-navigation-item.ku-btn-random {
	padding: 0;
}

.ku-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .ku-btn-random .wp-block-navigation-item__content {
	padding: 7px 14px;
	color: var(--wp--preset--color--ink, #1c1c1c);
}

@media (max-width: 600px) {
	.ku-nav-inner {
		padding-inline: 16px !important;
	}

	.ku-nav-brand {
		flex: 1 1 auto;
		overflow: hidden;
	}

	.ku-nav-brand > .wp-block-group {
		min-width: 0;
		overflow: hidden;
	}

	.ku-nav-title {
		font-size: 0.6875rem;
		white-space: nowrap;
	}

	.ku-nav-brand .wp-block-site-tagline {
		display: block;
		overflow: hidden;
		font-size: 0.5rem !important;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ku-site-header .navigation__view-cart__quantity {
		right: -3px;
	}

}

/* The panel's internal close button is redundant: the hamburger toggles
   (assets/js/nav-toggle.js) and morphs into an X below. Esc still closes. */
.ku-site-header .wp-block-navigation__responsive-container-close {
	display: none;
}

/* Morph the hamburger's two bars into an X while the menu is open. Bar
   centres sit at y 8.25 / 15.75 in the 24-unit viewBox — translate each
   ±3.75 to the middle and rotate ±45°. A 16-unit bar rotated 45° only
   spans ~11.3 units horizontally, so scaleX stretches each arm along its
   own axis (innermost transform = before rotation; thickness unaffected)
   to match core's ~15-unit close icon. */
.ku-site-header .wp-block-navigation__responsive-container-open path {
	transition: transform 0.25s ease;
	transform-box: view-box;
	transform-origin: 12px 12px;
}

/* Function order is right-to-left: scaleX stretches the bar in place,
   translateY moves its centre onto the origin (12,12), THEN rotate spins it
   there. Rotating before centring swings the bar off-centre. */
.ku-site-header .wp-block-navigation:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open path:first-of-type {
	transform: rotate(45deg) translateY(3.75px) scaleX(1.35);
}

.ku-site-header .wp-block-navigation:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open path:last-of-type {
	transform: rotate(-45deg) translateY(-3.75px) scaleX(1.35);
}

@media (prefers-reduced-motion: reduce) {
	.ku-site-header .wp-block-navigation__responsive-container-open path {
		transition: none;
	}
}

/* ─── Category / Page Hero ────────────────────────────────────────────────── */

.ku-cat-hero {
	position: relative;
	overflow: hidden;
}

.ku-cat-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1100px);
	margin-inline: auto;
}

.ku-cat-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 28px,
		rgba(255, 255, 255, 0.025) 28px,
		rgba(255, 255, 255, 0.025) 29px
	);
	pointer-events: none;
}

/* Core wraps Post Excerpt text in a paragraph that can inherit the global ink
   colour after FSE style merging. Keep hero excerpts legible on navy. */
.ku-cat-hero .wp-block-post-excerpt,
.ku-cat-hero .wp-block-post-excerpt p {
	color: rgba(255, 255, 255, 0.62) !important;
}

/* ─── Search results ─────────────────────────────────────────────────────── */

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

.ku-search-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 40px);
	color: var(--wp--preset--color--white, #fff);
}

.ku-search-hero::before {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 28px,
		rgba(255, 255, 255, 0.025) 28px,
		rgba(255, 255, 255, 0.025) 29px
	);
	content: '';
	pointer-events: none;
}

.ku-search-hero > .wp-block-group__inner-container,
.ku-search-hero > * {
	position: relative;
}

.ku-search-hero__eyebrow {
	margin: 0 0 20px;
	color: var(--wp--preset--color--gold, #c9a84c);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Compatibility for search templates previously saved in the Site Editor. */
.ku-search-hero > .is-style-section-label {
	width: 100%;
	max-width: 900px;
}

.ku-search-hero__title {
	max-width: 900px;
	margin: 0;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(2.25rem, 6vw, 4rem);
	font-weight: 900;
	line-height: 1.04;
	text-wrap: balance;
}

.ku-search-hero__intro {
	max-width: 680px;
	margin: 20px 0 32px;
	color: rgba(255, 255, 255, 0.66);
	font-size: clamp(0.9375rem, 2vw, 1.0625rem);
	font-weight: 300;
	line-height: 1.7;
}

.ku-search-page-form {
	width: 100%;
	max-width: 900px;
	margin: 0;
}

.ku-search-page-form .wp-block-search__label {
	display: block;
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ku-search-page-form .wp-block-search__inside-wrapper {
	display: flex;
	min-height: 58px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 4px;
	background: var(--wp--preset--color--paper, #fefcf7);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.ku-search-page-form .wp-block-search__input {
	min-width: 0;
	padding: 13px 16px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 1rem;
	line-height: 1.4;
	outline: 0;
}

.ku-search-page-form .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted, #6f6a65);
	opacity: 0.8;
}

.ku-search-page-form .wp-block-search__input:focus-visible {
	border-radius: 2px;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--navy, #1c2e5a);
}

.ku-search-page-form .wp-block-search__button {
	min-width: 112px;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--gold, #c9a84c);
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background-color 0.15s, transform 0.15s;
}

.ku-search-page-form .wp-block-search__button:hover {
	background: #d9bd68;
}

.ku-search-page-form .wp-block-search__button:active {
	transform: translateY(1px);
}

.ku-search-page-form .wp-block-search__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ku-search-results {
	padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 96px);
}

.ku-search-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
	color: var(--wp--preset--color--muted, #6f6a65);
	font-size: 0.9375rem;
}

.ku-search-summary p {
	margin: 0;
}

.ku-search-summary__query span {
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--muted, #6f6a65);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ku-search-summary__query strong {
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(1.25rem, 3vw, 1.625rem);
	line-height: 1.25;
}

.ku-search-summary__count {
	padding: 7px 11px;
	border: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
	color: var(--wp--preset--color--navy, #1c2e5a);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ku-search-query,
.ku-search-query .wp-block-post-template {
	margin: 0;
	padding: 0;
}

.ku-search-query .wp-block-post-template {
	display: grid;
	gap: 12px;
	list-style: none;
}

.ku-search-query .wp-block-post {
	margin: 0;
}

.ku-search-result {
	position: relative;
	margin: 0;
	padding: clamp(24px, 4vw, 34px) clamp(24px, 4vw, 38px);
	border: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
	border-left: 3px solid transparent;
	background: var(--wp--preset--color--paper, #fefcf7);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ku-search-result::after {
	position: absolute;
	top: 50%;
	right: clamp(20px, 4vw, 36px);
	color: var(--wp--preset--color--gold, #c9a84c);
	content: '\2192';
	font-size: 1.25rem;
	opacity: 0.55;
	transform: translateY(-50%);
	transition: opacity 0.15s, transform 0.15s;
}

.ku-search-result:hover,
.ku-search-result:focus-within {
	border-left-color: var(--wp--preset--color--gold, #c9a84c);
	box-shadow: 0 10px 28px rgba(28, 46, 90, 0.08);
	transform: translateY(-1px);
}

.ku-search-result:hover::after,
.ku-search-result:focus-within::after {
	opacity: 1;
	transform: translate(4px, -50%);
}

.ku-search-result__type {
	margin: 0 0 9px;
	color: var(--wp--preset--color--navy, #1c2e5a);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ku-search-result__title {
	max-width: calc(100% - 50px);
	margin: 0;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.ku-search-result__title a {
	color: var(--wp--preset--color--ink, #1c1c1c);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ku-search-result__title a:hover {
	color: var(--wp--preset--color--navy, #1c2e5a);
	text-decoration: underline;
}

.ku-search-result__title a:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--wp--preset--color--navy, #1c2e5a);
	outline-offset: 4px;
}

.ku-search-result__excerpt {
	max-width: 680px;
	margin: 10px 50px 0 0;
	color: var(--wp--preset--color--muted, #6f6a65);
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.65;
}

.ku-search-result__excerpt p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.ku-main--search .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
}

.ku-main--search .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
}

.ku-main--search .wp-block-query-pagination a,
.ku-main--search .wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
	border-radius: 2px;
	background: var(--wp--preset--color--paper, #fefcf7);
	color: var(--wp--preset--color--navy, #1c2e5a);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
}

.ku-main--search .wp-block-query-pagination a:hover,
.ku-main--search .wp-block-query-pagination .current {
	border-color: var(--wp--preset--color--navy, #1c2e5a);
	background: var(--wp--preset--color--navy, #1c2e5a);
	color: #fff;
}

.ku-main--search .wp-block-query-pagination a:hover {
	transform: translateY(-1px);
}

.ku-main--search .wp-block-query-pagination a:focus-visible {
	outline: 2px solid var(--wp--preset--color--navy, #1c2e5a);
	outline-offset: 3px;
}

.ku-main--search .wp-block-query-pagination-previous,
.ku-main--search .wp-block-query-pagination-next {
	width: auto;
	padding-inline: 16px;
	letter-spacing: 0.04em;
}

.ku-main--search .wp-block-query-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: var(--wp--preset--color--muted, #6f6a65);
}

.ku-search-empty {
	margin: 0;
	padding: clamp(32px, 6vw, 56px);
	border: 1px solid var(--wp--preset--color--warm-gray, #e8e4da);
	background: var(--wp--preset--color--paper, #fefcf7);
	text-align: center;
}

.ku-search-empty h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.ku-search-empty p {
	max-width: 560px;
	margin: 14px auto 24px;
	color: var(--wp--preset--color--muted, #6f6a65);
	line-height: 1.7;
}

.ku-search-empty .wp-block-buttons {
	justify-content: center;
}

@media (max-width: 600px) {
	.ku-search-page-form .wp-block-search__inside-wrapper {
		flex-wrap: wrap;
		padding: 6px;
	}

	.ku-search-page-form .wp-block-search__input,
	.ku-search-page-form .wp-block-search__button {
		flex-basis: 100%;
		min-height: 48px;
	}

	.ku-search-result {
		padding: 24px 20px;
	}

	.ku-search-result::after {
		display: none;
	}

	.ku-search-result__title {
		max-width: 100%;
	}

	.ku-search-result__excerpt {
		margin-right: 0;
	}

	.ku-main--search .wp-block-query-pagination {
		gap: 10px 6px;
	}

	.ku-main--search .wp-block-query-pagination-numbers {
		order: 2;
		width: 100%;
	}

	.ku-main--search .wp-block-query-pagination-previous,
	.ku-main--search .wp-block-query-pagination-next {
		flex: 1 1 calc(50% - 3px);
	}
}

/* Hall of Champions is a continuous, full-width magazine layout. Core Flow
   spacing otherwise inserts 32px gaps between Query Loop results. */
.ku-main--champions > .ku-champions-query,
.ku-main--champions > .wp-block-ku-nominate,
.ku-champions-query .wp-block-post-template > .champion-feature {
	margin-block-start: 0;
	margin-block-end: 0;
}

.ku-breadcrumb {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 1.25rem;
	letter-spacing: 0.05em;
}

.ku-breadcrumb a {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

/* Paper card (light) */
.is-style-card-paper {
	background: var(--wp--preset--color--paper);
	padding: 28px;
}

/* Navy card (dark) */
.is-style-card-navy {
	background: var(--wp--preset--color--navy);
	color: #fff;
	padding: 28px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

/* Outline style variation */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 8px 20px;
	transition: background 0.15s, color 0.15s;
	border-radius: 0;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

/* Ghost gold variation */
.wp-block-button.is-style-ghost-gold .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	border-bottom: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: 0;
	padding: 0 0 2px;
	text-decoration: none;
}

/* ─── Product cards (Good Stuff) ─────────────────────────────────────────── */

.ku-product-card {
	background: var(--wp--preset--color--paper);
	padding: 28px;
}

.ku-product-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--warm-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 3rem;
}

.ku-product-category {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.5625rem;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ku-product-name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin-bottom: 8px;
}

.ku-product-why {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 16px;
}

.ku-product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ku-product-price {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

/* ─── Organisation cards (Campus Heroes) ─────────────────────────────────── */

.ku-org-card {
	background: var(--wp--preset--color--paper);
	padding: 22px 24px;
	transition: background 0.15s;
	position: relative;
}

.ku-org-card:hover {
	background: var(--wp--preset--color--cream);
}

.ku-org-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
}

.ku-org-card.tier1::before { background: var(--wp--preset--color--navy); }
.ku-org-card.tier2::before { background: var(--wp--preset--color--gold); }
.ku-org-card.tier3::before { background: var(--wp--preset--color--teal); }

.ku-org-type {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.5625rem;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--muted);
	margin-bottom: 8px;
}

.ku-org-name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin-bottom: 4px;
	line-height: 1.3;
}

.ku-org-reach {
	font-size: 0.6875rem;
	color: var(--wp--preset--color--navy);
	font-weight: 500;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--courier-prime);
}

.ku-org-desc {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
	font-weight: 300;
}

.ku-org-ku-note {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--wp--preset--color--warm-gray);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--navy);
	font-style: italic;
	line-height: 1.5;
}

/* ─── Filter bar ─────────────────────────────────────────────────────────── */

.ku-filter-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--warm-gray);
}

.ku-filter-btn {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	padding: 6px 14px;
	border: 1.5px solid var(--wp--preset--color--warm-gray);
	background: transparent;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ku-filter-btn:hover,
.ku-filter-btn.is-active,
.ku-filter-btn[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	color: #fff;
	border-color: var(--wp--preset--color--ink);
}

/* ─── Resource list ───────────────────────────────────────────────────────── */

.ku-resource-item {
	border-bottom: 1px solid var(--wp--preset--color--warm-gray);
	padding: 24px 0;
}

.ku-resource-type {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.5625rem;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	margin-bottom: 6px;
}

/* ─── Read page ──────────────────────────────────────────────────────────── */

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

.ku-main--read .ku-read-content {
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 0;
}

.ku-main--read .ku-read-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 56px;
	margin: 0;
}

.ku-main--read .ku-read-layout > .wp-block-column {
	min-width: 0;
	flex-basis: auto !important;
}

.ku-main--read .ku-read-primary > * {
	margin-block-start: 0;
}

.ku-main--read .ku-read-primary > .is-style-section-label {
	margin: 0 0 24px;
}

.ku-main--read .ku-filter-bar {
	margin: 0 0 32px;
}

.ku-main--read .ku-resource-list {
	margin: 0;
	padding: 0;
}

.ku-main--read .ku-topic-content {
	margin-top: 48px;
}

@media ( max-width: 782px ) {
	.ku-main--read .ku-read-content {
		max-width: 100%;
		padding: 40px 24px 48px;
	}

	.ku-main--read .ku-read-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ku-main--read .ku-filter-btn {
		min-height: 44px;
		padding-inline: 16px;
	}
}

@media ( max-width: 480px ) {
	.ku-main--read .ku-read-content {
		padding-inline: 16px;
	}
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.ku-site-footer .ku-footer-inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	width: 100%;
}

.ku-footer-brand-name {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.ku-site-footer .ku-footer-brand-name > a {
	color: var(--wp--preset--color--white, #fff) !important;
	text-decoration: none;
}

.ku-site-footer .ku-footer-brand-name > a:hover {
	color: var(--wp--preset--color--gold, #c9a84c) !important;
}

.ku-site-footer .ku-footer-col-title {
	margin-top: 0;
}

/*
 * With overlayMenu:"never", newer Navigation block markup places the custom
 * .ku-footer-nav class directly on the rendered <ul>. Scope this rule to that
 * exact footer list so header navigation and unrelated WordPress lists keep
 * their own layout.
 */
.ku-site-footer ul.wp-block-navigation__container.ku-footer-nav {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--8, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ku-site-footer ul.wp-block-navigation__container.ku-footer-nav > li.wp-block-navigation-item {
	margin: 0;
}

.ku-site-footer .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 300;
	transition: color 0.15s;
	padding: 0;
}

.ku-site-footer .wp-block-navigation-item__content:hover {
	color: rgba(255, 255, 255, 0.8);
}

.ku-site-footer .ku-footer-nav .wp-block-navigation__responsive-container-open,
.ku-site-footer .ku-footer-nav .wp-block-navigation__responsive-container-close {
	display: none;
}

.ku-site-footer .ku-footer-nav .wp-block-navigation__responsive-container {
	display: block;
	position: static;
	width: auto;
	height: auto;
	background: transparent;
	color: inherit;
}

.ku-site-footer .ku-footer-nav .wp-block-navigation__responsive-container-content {
	display: block;
	padding: 0;
}

.ku-site-footer .ku-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.ku-copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.35);
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
}

/* ─── Miscellaneous ───────────────────────────────────────────────────────── */

/* "See all" link style */
.ku-see-all {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--gold);
	text-decoration: none;
	letter-spacing: 0.1em;
	border-bottom: 1px solid rgba(201, 168, 76, 0.3);
	padding-bottom: 2px;
}

/* Gold is an accent rather than a readable text colour on light surfaces. */
.good-stuff-preview .ku-see-all {
	color: var(--wp--preset--color--navy, #1c2e5a);
	border-bottom-color: rgba(28, 46, 90, 0.35);
}

/* New workshop announcement beneath the homepage hero. */
.ku-pre-game-announcement {
	padding: 32px 40px;
	color: var(--wp--preset--color--ink, #1c1c1c);
}

.ku-pre-game-announcement h2 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

.ku-pre-game-announcement p {
	max-width: 760px;
	margin: 0 0 18px;
	line-height: 1.6;
}

.ku-pre-game-announcement .wp-block-button__link {
	border-radius: 0;
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.75rem;
	font-weight: 700;
}

@media (max-width: 600px) {
	.ku-pre-game-announcement {
		padding: 28px 20px;
	}
}

/* Shared button — used by block sections (college tour, network, good stuff) */
.ku-btn {
	display: inline-block;
	padding: 12px 28px;
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	border-radius: 0;
	transition: background 0.15s, color 0.15s;
}

.ku-btn--primary {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.ku-btn--primary:hover {
	background: #223570;
}

.ku-btn--outline {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.ku-btn--outline:hover {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

.ku-btn--ghost {
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding-left: 0;
	padding-right: 0;
}

.ku-btn--ghost:hover {
	color: var(--wp--preset--color--gold);
}

/* ─── Contact page ────────────────────────────────────────────────────────── */

.ku-contact-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
	gap: 2px;
	border: 2px solid var(--wp--preset--color--ink, #1c1c1c);
	background: var(--wp--preset--color--ink, #1c1c1c);
}

.ku-contact-intro,
.ku-contact-form-card {
	min-width: 0;
	padding: clamp(32px, 5vw, 56px);
}

.ku-contact-intro {
	background: var(--wp--preset--color--navy, #1c2e5a);
	color: #fff;
}

.ku-contact-form-card {
	background: var(--wp--preset--color--paper, #fefcf7);
	color: var(--wp--preset--color--ink, #1c1c1c);
}

.ku-contact-kicker {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 32px;
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ku-contact-kicker::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--warm-gray, #e8e4da);
}

.ku-contact-intro .ku-contact-kicker {
	color: var(--wp--preset--color--gold, #c9a84c);
}

.ku-contact-intro .ku-contact-kicker::after {
	background: rgba(255, 255, 255, 0.15);
}

.ku-contact-form-card .ku-contact-kicker {
	color: var(--wp--preset--color--muted, #6f6a65);
}

.ku-contact-heading,
.ku-contact-form-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 900;
	line-height: 1.08;
	text-wrap: balance;
}

.ku-contact-heading {
	color: #fff;
}

.ku-contact-form-heading {
	color: var(--wp--preset--color--ink, #1c1c1c);
}

.ku-contact-copy,
.ku-contact-form-intro {
	margin: 20px 0 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.75;
}

.ku-contact-copy {
	color: rgba(255, 255, 255, 0.68);
}

.ku-contact-form-intro {
	max-width: 560px;
	color: var(--wp--preset--color--muted, #6f6a65);
}

.ku-contact-topics {
	margin: 44px 0 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	list-style: none;
}

.ku-contact-topics li {
	position: relative;
	margin: 0;
	padding: 15px 48px 15px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	line-height: 1.4;
}

.ku-contact-topics li::after {
	content: '\2192';
	position: absolute;
	top: 50%;
	right: 16px;
	color: var(--wp--preset--color--gold, #c9a84c);
	font-size: 18px;
	opacity: 0.55;
	transform: translateY(-50%);
}

.ku-contact-form-content {
	margin-top: 32px;
}

.ku-contact-form-content > :first-child,
.ku-contact-form-card .wpcf7-form > :first-child {
	margin-top: 0;
}

.ku-contact-form-card .wpcf7,
.ku-contact-form-card .wpcf7-form {
	margin: 0;
}

.ku-contact-form-card .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ku-contact-form-card .wpcf7-form p {
	margin: 0;
}

.ku-contact-form-card .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin-top: 7px;
}

.ku-contact-form-card .wpcf7-form label {
	display: block;
	color: var(--wp--preset--color--muted, #6f6a65);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

.ku-contact-form-card .wpcf7-form :is(
	input[type='text'],
	input[type='email'],
	input[type='tel'],
	input[type='url'],
	input[type='number'],
	input[type='date'],
	select,
	textarea
) {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1.5px solid var(--wp--preset--color--warm-gray, #e8e4da) !important;
	border-radius: 0;
	background: var(--wp--preset--color--cream, #f5f2eb) !important;
	box-shadow: none;
	color: var(--wp--preset--color--ink, #1c1c1c) !important;
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.ku-contact-form-card .wpcf7-form textarea {
	min-height: 160px;
	resize: vertical;
}

.ku-contact-form-card .wpcf7-form :is(
	input[type='text'],
	input[type='email'],
	input[type='tel'],
	input[type='url'],
	input[type='number'],
	input[type='date'],
	select,
	textarea
):focus {
	border-color: var(--wp--preset--color--navy, #1c2e5a) !important;
	outline: 2px solid var(--wp--preset--color--gold, #c9a84c);
	outline-offset: 1px;
}

.ku-contact-form-card .wpcf7-form [aria-invalid='true'] {
	border-color: var(--wp--preset--color--rust, #c05a2a) !important;
}

.ku-contact-form-card .wpcf7-list-item {
	margin: 0;
}

.ku-contact-form-card .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
}

.ku-contact-form-card .wpcf7-list-item input {
	margin-top: 3px;
	accent-color: var(--wp--preset--color--navy, #1c2e5a);
}

.ku-contact-form-card .wpcf7-submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 22px !important;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--navy, #1c2e5a) !important;
	color: #fff !important;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--courier-prime, monospace) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4 !important;
	transition: background-color 0.15s ease;
}

.ku-contact-form-card .wpcf7-submit:hover,
.ku-contact-form-card .wpcf7-submit:focus-visible {
	background: #223570 !important;
}

.ku-contact-form-card .wpcf7-spinner {
	margin: 10px 0 0 12px;
	vertical-align: middle;
}

.ku-contact-form-card .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: var(--wp--preset--color--rust, #c05a2a);
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
}

.ku-contact-form-card .wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 12px 14px !important;
	border: 1.5px solid var(--wp--preset--color--gold, #c9a84c) !important;
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 782px) {
	.ku-contact-section {
		padding: 48px 24px 64px !important;
	}

	.ku-contact-layout {
		grid-template-columns: 1fr;
	}

	.ku-contact-intro,
	.ku-contact-form-card {
		padding: 32px;
	}
}

@media (max-width: 480px) {
	.ku-contact-intro,
	.ku-contact-form-card {
		padding: 28px 24px;
	}
}

/* ─── Contact Form 7: Workshops + Hall of Champions ───────────────────────── */

/* Keep Contact Form 7's generated wrappers from changing the proof's rhythm. */
.how-it-works__form .wpcf7-form,
.nominate__form .wpcf7-form {
	margin: 0;
}

.how-it-works__form .wpcf7-form p,
.nominate__form .wpcf7-form p {
	margin: 0;
}

.how-it-works__form .wpcf7-form-control-wrap,
.nominate__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.how-it-works__form-wrap {
	border: 1.5px solid var(--wp--preset--color--ink, #1c1c1c);
}

.ku-campus-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.ku-campus-field,
.ku-nomination-field {
	margin: 0;
}

:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(
	.ku-campus-input,
	.ku-campus-select,
	.ku-campus-textarea,
	.ku-nomination-input,
	.ku-nomination-textarea
) {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--wp--preset--color--warm-gray, #d8d4cb) !important;
	border-radius: 0;
	background-color: var(--wp--preset--color--cream, #f5f2eb) !important;
	box-shadow: none;
	color: var(--wp--preset--color--ink, #1c1c1c) !important;
	font-family: var(--wp--preset--font-family--dm-sans, sans-serif);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(
	.ku-campus-input,
	.ku-campus-select,
	.ku-campus-textarea,
	.ku-nomination-input,
	.ku-nomination-textarea
):focus {
	outline: 2px solid var(--wp--preset--color--gold, #c9a84c);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--navy, #1c2e5a) !important;
}

:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(
	.ku-campus-input,
	.ku-campus-textarea,
	.ku-nomination-input,
	.ku-nomination-textarea
)::placeholder {
	color: var(--wp--preset--color--muted, #76736d);
	opacity: 1;
}

.ku-campus-select {
	appearance: auto;
}

.ku-campus-textarea {
	height: 80px;
	resize: vertical;
}

.ku-nomination-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ku-nomination-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--wp--preset--color--muted, #76736d);
	font-family: var(--wp--preset--font-family--courier-prime, monospace);
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.ku-nomination-textarea {
	height: 90px;
	resize: vertical;
}

:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(.ku-campus-submit, .ku-nomination-submit) {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px !important;
	border: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--navy, #1c2e5a) !important;
	color: #fff !important;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--courier-prime, monospace) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35 !important;
	transition: background-color 0.15s ease;
}

:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(.ku-campus-submit, .ku-nomination-submit):hover,
:is(.how-it-works__form, .nominate__form) .wpcf7-form :is(.ku-campus-submit, .ku-nomination-submit):focus-visible {
	background-color: #223570 !important;
}

.ku-campus-note,
.ku-nomination-note {
	color: var(--wp--preset--color--muted, #76736d);
	font-size: 11px;
	font-weight: 300;
	line-height: 1.5;
	text-align: center;
}

.ku-campus-note {
	margin-top: 12px;
}

.how-it-works__form .wpcf7-spinner,
.nominate__form .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.how-it-works__form .wpcf7-not-valid-tip,
.nominate__form .wpcf7-not-valid-tip {
	margin-top: 5px;
	color: var(--wp--preset--color--rust, #c05a2a);
	font-size: 11px;
	line-height: 1.4;
}

.how-it-works__form .wpcf7-response-output,
.nominate__form .wpcf7-response-output {
	margin: 16px 0 0 !important;
	padding: 10px 12px !important;
	border: 1.5px solid var(--wp--preset--color--gold, #c9a84c) !important;
	color: var(--wp--preset--color--ink, #1c1c1c);
	font-size: 12px;
	line-height: 1.5;
}

/* Tier label (campus heroes directory) */
.ku-tier-label {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-size: 0.625rem;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ku-tier-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--warm-gray);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 782px) {
	.ku-nav-inner {
		height: auto;
		/* The group block carries inline padding (0 block / spacing-40
		   inline) which beats any stylesheet rule — !important is the only
		   way to re-space it responsively without splitting the block into
		   per-breakpoint markup. 20px sides pull the menu toggle and cart
		   toward the edge, mirrored by the logo on the left. */
		padding: 16px 20px !important;
	}

	.ku-cat-hero {
		padding-inline: 24px;
	}

	.ku-page-shell,
	.ku-champions-intro,
	.ku-campus-heroes-directory {
		padding-inline: 24px !important;
	}

	.ku-site-header .wp-block-site-title {
		font-size: 0.8125rem !important;
	}

	.ku-site-footer .ku-footer-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.ku-site-footer .ku-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}

	/* Core gives background groups a default padding of 1.25em 2.375em via a
	   zero-specificity :where() rule — too wide on mobile. Groups with
	   explicit padding are unaffected (inline styles win). The header group
	   is excluded: it manages its own gutters via .ku-nav-inner. */
	.wp-block-group.has-background:not(.ku-site-header) {
		padding: 1.25em 1rem;
	}
}

/* TrustedSite injects a fixed badge at the viewport edge. On small screens,
   keep it in the document footer so it cannot obscure forms or navigation. */
@media (max-width: 600px) {
	body {
		position: relative;
		padding-bottom: 38px;
	}

	body #trustedsite-tm-image {
		position: absolute !important;
		right: 0 !important;
		bottom: 0 !important;
	}
}
