/*
Theme Name: Youth Workforce Blog
Theme URI: https://blog.youthworkforce.ca
Author: Youth Workforce
Author URI: https://youthworkforce.ca
Description: Neo-brutalist child theme of Twenty Twenty-Five, matched to the Youth Workforce brand — acid lime, hard black borders, offset shadows, Lexend display type and Inter body copy.
Template: twentytwentyfive
Version: 1.9.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youthworkforce-blog
Tags: blog, one-column, block-patterns, full-site-editing, custom-colors, custom-logo, custom-menu
*/

/* ==========================================================================
   Youth Workforce — brand tokens
   ========================================================================== */

:root {
	--ywf-lime: #d4ff00;
	--ywf-black: #111111;
	--ywf-ink: #000000;
	--ywf-cream: #f9f7f2;
	--ywf-purple: #8a2be2;
	--ywf-cyan: #00f0ff;
	--ywf-pink: #ff00a0;
	--ywf-teal: #0d9488;
	--ywf-muted: #5b5b58;

	--ywf-border: 3px;
	--ywf-border-thick: 4px;
	--ywf-radius: 16px;
	--ywf-radius-pill: 999px;
	--ywf-shadow-sm: 3px 3px 0 0 var(--ywf-ink);
	--ywf-shadow: 5px 5px 0 0 var(--ywf-ink);
	--ywf-shadow-lg: 8px 8px 0 0 var(--ywf-ink);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
	background-color: var(--ywf-cream);
	background-image: radial-gradient(var(--ywf-dot, rgba(17, 17, 17, 0.13)) 1.4px, transparent 1.4px);
	background-size: 22px 22px;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	overflow-x: clip;
}

::selection {
	background: var(--ywf-lime);
	color: var(--ywf-ink);
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(textarea):focus-visible {
	outline: 3px solid var(--ywf-purple);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================================================
   Header — lime bar with hard black underline (matches youthworkforce.ca)
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	background: var(--ywf-lime);
	border-bottom: var(--ywf-border) solid var(--ywf-ink);
	margin-block-start: 0;
	position: relative;
	z-index: 20;
}

.wp-site-blocks > header.wp-block-template-part > .wp-block-group {
	padding-block: 1.15rem;
}

/* Wordmark */
.wp-block-site-title {
	font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
	line-height: 1;
}

.wp-block-site-title a {
	color: var(--ywf-ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.wp-block-site-title a:hover {
	color: var(--ywf-ink);
	text-decoration: none;
	transform: translate(-1px, -1px);
}

/* Lightning-bolt mark stands in until a logo image is set */
.wp-block-site-title a::before {
	content: "\26A1";
	display: inline-grid;
	place-items: center;
	inline-size: 2.1em;
	block-size: 2.1em;
	font-size: 0.55em;
	background: var(--ywf-ink);
	color: var(--ywf-lime);
	border-radius: 50%;
	flex: none;
}

/* When a custom logo is uploaded, hide the fallback bolt */
.wp-block-site-logo ~ .wp-block-site-title a::before,
.has-site-logo .wp-block-site-title a::before {
	display: none;
}

.wp-block-site-logo img {
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 50%;
	background: var(--ywf-ink);
}

.wp-block-site-tagline {
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ywf-ink);
	opacity: 0.75;
}

/* Navigation — pill buttons */
.wp-block-navigation {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wp-block-navigation .wp-block-navigation-item__content {
	color: var(--ywf-ink);
	text-decoration: none;
	padding: 0.55rem 1.1rem;
	border: 2px solid transparent;
	border-radius: var(--ywf-radius-pill);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	background: #fff;
	border-color: var(--ywf-ink);
	box-shadow: var(--ywf-shadow-sm);
	text-decoration: none;
	transform: translate(-1px, -1px);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ywf-lime);
	border: var(--ywf-border-thick) solid var(--ywf-ink);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--ywf-ink);
}

/* ==========================================================================
   Headings & type
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-query-title {
	text-wrap: balance;
}

.wp-block-post-title a {
	text-decoration: none;
	background-image: linear-gradient(var(--ywf-lime), var(--ywf-lime));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0% 0.32em;
	transition: background-size 0.25s ease;
}

.wp-block-post-title a:hover {
	color: var(--ywf-ink);
	background-size: 100% 0.32em;
}

/* Highlighted first letter of the archive title, brand-style */
.wp-block-query-title {
	position: relative;
	display: inline-block;
}

/* ==========================================================================
   Post cards — 4px border + 8px offset shadow (matches brand panels)
   ========================================================================== */

.wp-block-post-template {
	gap: 2rem;
}

.wp-block-query .wp-block-post {
	background: #fff;
	border: var(--ywf-border-thick) solid var(--ywf-ink);
	border-radius: var(--ywf-radius);
	box-shadow: var(--ywf-shadow-lg);
	padding: 1.75rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-query .wp-block-post:hover {
	transform: translate(-3px, -3px);
	box-shadow: 11px 11px 0 0 var(--ywf-ink);
}

.wp-block-query .wp-block-post .wp-block-post-title {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	margin-block: 0 0.6rem;
}

.wp-block-post-featured-image {
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 12px;
	overflow: hidden;
}

.wp-block-post-featured-image img {
	display: block;
}

/* Meta row */
.wp-block-post-date,
.wp-block-post-author-name,
.wp-block-post-author,
.wp-block-post-terms {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ywf-muted);
}

.wp-block-post-date a,
.wp-block-post-author-name a {
	text-decoration: none;
	color: inherit;
}

/* Category / tag chips */
.wp-block-post-terms a,
.wp-block-tag-cloud a {
	display: inline-block;
	background: var(--ywf-lime);
	color: var(--ywf-ink) !important;
	border: 2px solid var(--ywf-ink);
	border-radius: var(--ywf-radius-pill);
	box-shadow: var(--ywf-shadow-sm);
	padding: 0.3rem 0.85rem;
	margin: 0.2rem 0.35rem 0.2rem 0;
	font-size: 0.7rem !important;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.12s ease;
}

.wp-block-post-terms a:hover,
.wp-block-tag-cloud a:hover {
	transform: translate(-1px, -1px);
	background: var(--ywf-cyan);
}

/* Rotate accent colours across chips so the palette shows up */
.wp-block-post-terms a:nth-child(3n + 2) { background: var(--ywf-cyan); }
.wp-block-post-terms a:nth-child(3n + 3) { background: var(--ywf-pink); color: #fff !important; }

/* ==========================================================================
   Single post content
   ========================================================================== */

.wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.wp-block-post-content > p > a,
.wp-block-post-content li a {
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	font-weight: 600;
}

.wp-block-post-content > p > a:hover {
	background: var(--ywf-lime);
	color: var(--ywf-ink);
}

blockquote,
.wp-block-quote {
	border-left: 6px solid var(--ywf-ink);
	background: var(--ywf-lime);
	border-radius: 0 12px 12px 0;
	padding: 1.25rem 1.5rem;
	margin-inline: 0;
}

.wp-block-quote cite {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.wp-block-pullquote {
	border-block: var(--ywf-border-thick) solid var(--ywf-ink);
	background: var(--ywf-cyan);
	padding: 2rem 1.5rem;
}

.wp-block-separator {
	border: none;
	border-top: var(--ywf-border) solid var(--ywf-ink);
	opacity: 1;
	max-width: 100%;
}

.wp-block-image img,
figure.wp-block-image img {
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 12px;
}

.wp-block-table table {
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 12px;
	overflow: hidden;
	border-collapse: collapse;
}

.wp-block-table th {
	background: var(--ywf-lime);
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.wp-block-table td,
.wp-block-table th {
	border: 2px solid var(--ywf-ink);
	padding: 0.65rem 0.9rem;
}

.wp-block-code {
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 12px;
	padding: 1.1rem 1.25rem;
	box-shadow: var(--ywf-shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link,
.wp-block-search__button,
.wp-block-file__button,
input[type="submit"],
button[type="submit"] {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.8125rem;
	background: var(--ywf-lime);
	color: var(--ywf-ink);
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: var(--ywf-radius-pill);
	box-shadow: var(--ywf-shadow);
	padding: 0.85rem 1.75rem;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.wp-block-button__link:hover,
.wp-block-search__button:hover,
.wp-block-file__button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--ywf-purple);
	color: #fff;
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 0 var(--ywf-ink);
}

.wp-block-button__link:active,
input[type="submit"]:active,
button[type="submit"]:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 var(--ywf-ink);
}

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

/* ==========================================================================
   Forms — search, comments (incl. the Turnstile comment form)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select,
.wp-block-search__input {
	background: #fff;
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	color: var(--ywf-ink);
	width: 100%;
	max-width: 100%;
	box-shadow: var(--ywf-shadow-sm);
	transition: box-shadow 0.12s ease, transform 0.12s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
.wp-block-search__input:focus {
	outline: none;
	box-shadow: var(--ywf-shadow);
	transform: translate(-1px, -1px);
}

.wp-block-search__inside-wrapper {
	gap: 0.6rem;
}

.comment-form label,
.comment-respond label {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: block;
	margin-bottom: 0.4rem;
}

.comment-form p {
	margin-bottom: 1.1rem;
}

.wp-block-post-comments-form,
.comment-respond {
	background: #fff;
	border: var(--ywf-border-thick) solid var(--ywf-ink);
	border-radius: var(--ywf-radius);
	box-shadow: var(--ywf-shadow-lg);
	padding: 1.75rem;
}

.comment-reply-title {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	margin-top: 0;
}

/* Cloudflare Turnstile widget sits flush in the brutalist form */
.cf-turnstile,
.loginizer-turnstile,
.formlayer-captcha {
	margin-block: 1rem;
}

.wp-block-comment-template li {
	background: #fff;
	border: var(--ywf-border) solid var(--ywf-ink);
	border-radius: var(--ywf-radius);
	box-shadow: var(--ywf-shadow-sm);
	padding: 1.25rem 1.4rem;
	margin-bottom: 1.25rem;
	list-style: none;
}

.wp-block-comment-author-name {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
}

.wp-block-comment-author-name a { text-decoration: none; }

.wp-block-avatar img {
	border: 2px solid var(--ywf-ink);
	border-radius: 50%;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wp-block-query-pagination {
	gap: 0.6rem;
	margin-top: 2.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current,
.wp-block-query-pagination-numbers .page-numbers {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	background: #fff;
	color: var(--ywf-ink);
	border: 2px solid var(--ywf-ink);
	border-radius: var(--ywf-radius-pill);
	box-shadow: var(--ywf-shadow-sm);
	padding: 0.5rem 1.05rem;
	display: inline-block;
	transition: transform 0.12s ease;
}

.wp-block-query-pagination a:hover {
	background: var(--ywf-lime);
	transform: translate(-1px, -1px);
}

.wp-block-query-pagination .current,
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--ywf-purple);
	color: #fff;
}

/* ==========================================================================
   Footer — black bar, white text, lime accents
   ========================================================================== */

.wp-site-blocks > footer.wp-block-template-part {
	background: var(--ywf-ink);
	color: #fff;
	border-top: var(--ywf-border) solid var(--ywf-ink);
	margin-block-start: 4rem;
}

.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part p,
.wp-site-blocks > footer.wp-block-template-part li,
.wp-site-blocks > footer.wp-block-template-part h1,
.wp-site-blocks > footer.wp-block-template-part h2,
.wp-site-blocks > footer.wp-block-template-part h3,
.wp-site-blocks > footer.wp-block-template-part .wp-block-site-title a {
	color: #fff;
}

.wp-site-blocks > footer.wp-block-template-part a {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}

.wp-site-blocks > footer.wp-block-template-part a:hover {
	color: var(--ywf-lime);
	opacity: 1;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wp-site-blocks > footer.wp-block-template-part .wp-block-site-title a::before {
	background: var(--ywf-lime);
	color: var(--ywf-ink);
}

.wp-site-blocks > footer.wp-block-template-part .wp-block-heading {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	color: var(--ywf-lime);
}

/* ==========================================================================
   Sharing bar (ShareMyPost) — keep it on-brand
   ========================================================================== */

.smp-share-bar a,
.smp-share a {
	border: 2px solid var(--ywf-ink) !important;
	border-radius: 10px !important;
	box-shadow: var(--ywf-shadow-sm);
}

/* ==========================================================================
   Motion & responsive
   ========================================================================== */

@media (max-width: 781px) {
	:root {
		--ywf-shadow-lg: 5px 5px 0 0 var(--ywf-ink);
		--ywf-shadow: 4px 4px 0 0 var(--ywf-ink);
	}

	.wp-block-query .wp-block-post {
		padding: 1.25rem;
	}

	.wp-block-post-comments-form,
	.comment-respond {
		padding: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.wp-block-query .wp-block-post:hover,
	.wp-block-button__link:hover,
	input[type="submit"]:hover,
	button[type="submit"]:hover {
		transform: none;
	}
}


/* ==========================================================================
   v1.1 — layout containment, card grid, brand wordmark
   ========================================================================== */

.wp-block-query.alignfull > .wp-block-post-template,
.wp-block-query.alignwide > .wp-block-post-template,
.wp-block-query > .wp-block-post-template {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--30, 1.25rem);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 2rem;
	list-style: none;
}

.wp-block-query .wp-block-post > *,
.wp-block-query .wp-block-post > .wp-block-group > * {
	max-width: none;
	margin-inline: 0;
}

.wp-block-site-logo img {
	height: auto;
	max-height: 46px;
	width: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.wp-block-site-logo a {
	display: inline-flex;
	align-items: center;
	transition: transform 0.12s ease;
}

.wp-block-site-logo a:hover {
	transform: translate(-1px, -1px);
}

.has-site-logo .wp-site-blocks > header .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-site-blocks > footer .wp-block-site-logo img {
	max-height: 40px;
}


/* ==========================================================================
   v1.2 — Youth Workforce wordmark in header and footer
   ========================================================================== */

.wp-site-blocks > header .wp-block-site-title,
.wp-site-blocks > footer .wp-block-site-title {
	margin: 0;
	line-height: 0;
}

.wp-site-blocks > header .wp-block-site-title a {
	display: block;
	height: 42px;
	width: 311px;
	max-width: 62vw;
	background-image: url("https://blog.youthworkforce.ca/wp-content/uploads/2026/09/ywf-logo.png");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
	transition: transform 0.12s ease;
}

.wp-site-blocks > header .wp-block-site-title a:hover {
	transform: translate(-1px, -1px);
}

.wp-site-blocks > footer .wp-block-site-title a {
	display: block;
	height: 34px;
	width: 252px;
	max-width: 70vw;
	background-image: url("https://blog.youthworkforce.ca/wp-content/uploads/2026/09/ywf-logo-white.png");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}

.wp-block-site-title a::before {
	display: none !important;
}

@media (max-width: 600px) {
	.wp-site-blocks > header .wp-block-site-title a { height: 34px; width: 252px; }
}


/* ==========================================================================
   v1.3 — neutralise the constrained inner layout inside post cards,
   and badge the header wordmark as the blog
   ========================================================================== */

.wp-block-query .wp-block-post .is-layout-constrained > *,
.wp-block-query .wp-block-post .wp-block-group > * {
	max-width: none;
	margin-inline: 0;
}

.wp-block-query .wp-block-post .has-global-padding {
	padding-inline: 0;
}

.wp-block-query .wp-block-post .alignfull,
.wp-block-query .wp-block-post .alignwide {
	margin-inline: 0;
	width: auto;
	max-width: none;
	left: auto;
	right: auto;
}

.wp-block-query .wp-block-post .wp-block-group {
	padding-block: 0;
}

/* "BLOG" badge beside the wordmark in the lime bar */
.wp-site-blocks > header .wp-block-site-title {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.wp-site-blocks > header .wp-block-site-title::after {
	content: "Blog";
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	font-size: 0.7rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ywf-lime);
	background: var(--ywf-ink);
	border-radius: var(--ywf-radius-pill);
	padding: 0.42rem 0.8rem;
	flex: none;
}

@media (max-width: 600px) {
	.wp-site-blocks > header .wp-block-site-title::after {
		font-size: 0.62rem;
		padding: 0.35rem 0.65rem;
	}
}


/* ==========================================================================
   v1.4 - put the Turnstile challenge above the submit button
   ========================================================================== */

.comment-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.comment-form > .logged-in-as { order: 1; }
.comment-form > .comment-form-author,
.comment-form > .comment-form-email,
.comment-form > .comment-form-url { order: 2; }
.comment-form > .comment-form-comment { order: 3; }
.comment-form > .comment-form-cookies-consent { order: 4; }
.comment-form > .cf-turnstile { order: 5; margin-block: 0.25rem 1.25rem; }
.comment-form > .form-submit { order: 6; margin-block: 0; display: flex; }
.comment-form > br { display: none; }
.comment-form > .form-submit .submit { align-self: flex-start; }


/* ==========================================================================
   v1.5 - narrow-screen safety for the header lockup
   ========================================================================== */

.wp-site-blocks > header .wp-block-group.is-layout-flex {
	flex-wrap: nowrap;
	gap: 0.75rem;
}

@media (max-width: 700px) {
	.wp-site-blocks > header .wp-block-site-title a {
		max-width: 54vw;
	}
	.wp-site-blocks > header > .wp-block-group {
		padding-block: 0.85rem;
	}
}

@media (max-width: 380px) {
	.wp-site-blocks > header .wp-block-site-title::after {
		display: none;
	}
}


/* ==========================================================================
   v1.6 - footer link columns: no mid-word breaks, tighter type
   ========================================================================== */

.wp-site-blocks > footer .wp-block-columns {
	gap: 2rem;
}

.wp-site-blocks > footer .wp-block-navigation {
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	line-height: 1.3;
}

.wp-site-blocks > footer .wp-block-navigation-item__content {
	padding: 0;
	border: 0;
	box-shadow: none;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
}

.wp-site-blocks > footer .wp-block-navigation-item__content:hover {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--ywf-lime);
	transform: none;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.wp-site-blocks > footer .wp-block-heading {
	white-space: nowrap;
	margin-bottom: 1rem;
}

.wp-site-blocks > footer .wp-block-site-tagline {
	color: #fff;
	opacity: 0.72;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	max-width: 34ch;
}

@media (max-width: 781px) {
	.wp-site-blocks > footer .wp-block-navigation-item__content {
		white-space: normal;
	}
}


/* ==========================================================================
   v1.7 - blog homepage hero
   ========================================================================== */

.ywf-hero {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

.ywf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--ywf-lime);
	border: 2px solid var(--ywf-ink);
	border-radius: var(--ywf-radius-pill);
	box-shadow: var(--ywf-shadow-sm);
	padding: 0.45rem 1rem;
	margin: 0 0 1.4rem;
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	font-size: 0.72rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ywf-ink);
}

.ywf-hero-title {
	font-size: clamp(2.6rem, 1.6rem + 5.2vw, 5rem) !important;
	line-height: 0.98 !important;
	letter-spacing: -0.025em;
	margin: 0 0 1.25rem;
	max-width: 16ch;
}

.ywf-hero-title .ywf-accent {
	color: var(--ywf-pink);
}

.ywf-lede {
	border-left: 4px solid var(--ywf-ink);
	padding-left: 1rem;
	margin: 0;
	max-width: 46ch;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.6;
	color: #2a2a28;
}

.ywf-hero-rule {
	border: none;
	border-top: var(--ywf-border) solid var(--ywf-ink);
	margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
	opacity: 1;
}

/* Section label above the post grid */
.ywf-section-label {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 800;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ywf-muted);
	margin: 0 0 1.25rem;
}

/* The archive/query title is redundant once the hero carries the headline */
.ywf-hero + .wp-block-query .wp-block-query-title,
body.home .wp-block-query-title {
	display: none;
}


/* ==========================================================================
   v1.8 - hero alignment with the card grid
   ========================================================================== */

.ywf-hero,
.ywf-section-label {
	padding-inline: var(--wp--preset--spacing--30, 1.25rem);
	box-sizing: border-box;
}

.ywf-hero > *,
.ywf-kicker,
.ywf-hero-title,
.ywf-lede {
	margin-inline: 0 !important;
}

.ywf-section-label {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto !important;
}


/* ==========================================================================
   v1.9 - FormLayer contact form in the brutalist style
   ========================================================================== */

.formlayer-form-wrapper {
	background: #fff;
	border: var(--ywf-border-thick) solid var(--ywf-ink);
	border-radius: var(--ywf-radius);
	box-shadow: var(--ywf-shadow-lg);
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
}

.formlayer-form-wrapper .formlayer-label {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ywf-ink);
	margin-bottom: 0.4rem;
}

.formlayer-form-wrapper .formlayer-input,
.formlayer-form-wrapper input[type="text"],
.formlayer-form-wrapper input[type="email"],
.formlayer-form-wrapper input[type="tel"],
.formlayer-form-wrapper input[type="url"],
.formlayer-form-wrapper select,
.formlayer-form-wrapper textarea {
	border: var(--ywf-border) solid var(--ywf-ink) !important;
	border-radius: 12px !important;
	box-shadow: var(--ywf-shadow-sm);
	background: #fff !important;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
	font-size: 1rem !important;
	color: var(--ywf-ink) !important;
	padding: 0.75rem 1rem !important;
	transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.formlayer-form-wrapper .formlayer-input:focus,
.formlayer-form-wrapper textarea:focus,
.formlayer-form-wrapper select:focus {
	outline: none !important;
	box-shadow: var(--ywf-shadow) !important;
	transform: translate(-1px, -1px);
}

.formlayer-form-wrapper .formlayer-input::placeholder,
.formlayer-form-wrapper textarea::placeholder {
	color: #9a9a95;
}

.formlayer-form-wrapper .formlayer-submit-btn {
	font-family: Lexend, ui-sans-serif, system-ui, sans-serif !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.8125rem !important;
	background: var(--ywf-lime) !important;
	color: var(--ywf-ink) !important;
	border: var(--ywf-border) solid var(--ywf-ink) !important;
	border-radius: var(--ywf-radius-pill) !important;
	box-shadow: var(--ywf-shadow);
	padding: 0.85rem 1.75rem !important;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.formlayer-form-wrapper .formlayer-submit-btn:hover {
	background: var(--ywf-purple) !important;
	color: #fff !important;
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 0 var(--ywf-ink);
}

.formlayer-form-wrapper .formlayer-submit-btn:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 var(--ywf-ink);
}

/* Captcha widget breathing room */
.formlayer-form-wrapper .cf-turnstile,
.formlayer-form-wrapper .h-captcha,
.formlayer-form-wrapper .g-recaptcha {
	margin-block: 0.5rem 1.25rem;
}
