/*
Theme Name: Yizhen
Theme URI: https://example.com/
Author: Yizhen Web Team
Description: A fast, editorial block theme for B2B manufacturing and hardware companies. Built on the WordPress block editor with a custom design system.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yizhen
Tags: business, block-theme, full-site-editing
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--yz-ink: #0b1220;
	--yz-steel: #1b2433;
	--yz-accent: #e8541f;
	--yz-accent-dark: #c9451a;
	/* Darker accents so small text and button labels reach WCAG AA (4.5:1). */
	--yz-accent-text: #b83e16;
	--yz-accent-strong: #c24a1b;
	--yz-surface: #f5f6f8;
	--yz-line: #e3e6eb;
	--yz-muted: #5b6472;
	--yz-radius: 10px;
	--yz-radius-sm: 6px;
	--yz-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px -12px rgba(11, 18, 32, 0.16);
	--yz-shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.05), 0 28px 60px -20px rgba(11, 18, 32, 0.25);
	--yz-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--yz-accent);
	color: #fff;
}

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

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

/* ==========================================================================
   3. Header
   ========================================================================== */
.yz-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--yz-line);
}

.yz-header__inner {
	padding-block: 0.85rem;
	gap: 2rem;
}

.yz-header .wp-block-site-logo img {
	max-height: 38px;
	width: auto;
}

.yz-header .wp-block-site-title {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.yz-header .wp-block-site-title a {
	color: var(--yz-ink);
	text-decoration: none;
}

.yz-header .wp-block-navigation__container {
	gap: 0.25rem;
}

.yz-header .wp-block-navigation-item__content {
	padding: 0.45rem 0.7rem;
	border-radius: 4px;
	color: var(--yz-ink);
	transition: color 0.18s var(--yz-ease), background 0.18s var(--yz-ease);
}

.yz-header .wp-block-navigation-item__content:hover,
.yz-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--yz-accent);
}

.yz-header .wp-block-navigation-item__content:hover {
	background: rgba(232, 84, 31, 0.06);
}

.yz-header .wp-block-button__link {
	padding: 0.8rem 1.4rem;
	font-size: 0.75rem;
}

/* Mobile nav overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 1.5rem;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.yz-section {
	padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.yz-section--tight {
	padding-block: clamp(2.5rem, 4vw, 4rem);
}

.yz-section--surface {
	background: var(--yz-surface);
}

.yz-section--dark {
	background: var(--yz-ink);
	color: rgba(255, 255, 255, 0.78);
}

.yz-section--dark :where(h1, h2, h3, h4) {
	color: #fff;
}

.yz-section--dark a {
	color: #fff;
}

.yz-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yz-accent-text);
	margin-bottom: 1rem;
}

.yz-eyebrow--light {
	color: #ff9a72;
}

.yz-lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.7;
	color: var(--yz-muted);
}

.yz-section--dark .yz-lead {
	color: rgba(255, 255, 255, 0.72);
}

.yz-max-60 {
	max-width: 60ch;
}

.yz-divider {
	height: 1px;
	background: var(--yz-line);
	border: 0;
	margin: 0;
}

/* Full-width sections: build the 1240 grid with padding instead of relying on
   WordPress' auto-centred constrained layout, so left-aligned headings line up
   with the cards below them. */
.yz-section,
.yz-page-header {
	padding-left: max(1.5rem, calc((100% - 1240px) / 2));
	padding-right: max(1.5rem, calc((100% - 1240px) / 2));
}

.yz-section > *,
.yz-page-header > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.yz-section .yz-lead,
.yz-page-header .yz-lead {
	max-width: 62ch;
}

/* Section heading block. */
.yz-heading,
.wp-block-group.yz-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.9rem;
	max-width: none;
	justify-items: start;
}

.yz-heading > *,
.wp-block-group.yz-heading > * {
	margin-inline: 0;
	max-width: 64ch;
}

.yz-heading h2 {
	margin: 0;
}

.yz-heading p {
	margin: 0;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.yz-hero {
	position: relative;
	min-height: min(82vh, 760px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: end;
	overflow: hidden;
	isolation: isolate;
}

.yz-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.72) 45%, rgba(11, 18, 32, 0.25) 100%),
		linear-gradient(0deg, rgba(11, 18, 32, 0.65) 0%, rgba(11, 18, 32, 0) 45%);
	z-index: 0;
}

.yz-hero .wp-block-cover {
	min-height: inherit;
}

.yz-hero .wp-block-cover__background {
	opacity: 0.45 !important;
}

.yz-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-block: clamp(4rem, 9vh, 7rem) clamp(3rem, 6vh, 4.5rem);
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin-inline: auto;
}

.yz-hero h1 {
	color: #fff;
	font-size: clamp(2.4rem, 5.6vw, 4.3rem);
	line-height: 1.03;
	letter-spacing: -0.03em;
	font-weight: 800;
	max-width: 16ch;
	margin: 0 0 1.4rem;
	text-wrap: balance;
}

.yz-hero p {
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	line-height: 1.6;
	max-width: 46ch;
	margin: 0 0 2.2rem;
}

.yz-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
}

.yz-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	margin-top: 3.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.yz-hero__meta p {
	margin: 0;
}

/* ==========================================================================
   6. Trust bar / stats
   ========================================================================== */
.yz-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--yz-line);
	border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius);
	overflow: hidden;
}

.yz-stat {
	background: #fff;
	padding: 1.9rem 1.6rem;
}

.yz-stat__num {
	font-size: clamp(1.9rem, 3.2vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--yz-ink);
	display: block;
}

.yz-stat__num span {
	color: var(--yz-accent);
}

.yz-stat__label {
	margin-top: 0.55rem;
	font-size: 0.82rem;
	color: var(--yz-muted);
	line-height: 1.4;
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.yz-grid {
	display: grid;
	gap: 1.5rem;
}

.yz-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yz-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yz-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yz-material {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--yz-radius);
	padding: 1.6rem 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	height: 100%;
}

.yz-material h3 {
	font-size: 1.15rem;
	margin: 0.25rem 0 0.6rem;
	color: #fff;
}

.yz-material p {
	margin: 0;
	color: rgba(255, 255, 255, 0.64);
}

/* ==========================================================================
   7b. Certificates + proof
   ========================================================================== */
.yz-cert-head {
	margin-bottom: 1.75rem;
}

.yz-certs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--yz-line);
	border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius);
	overflow: hidden;
}

.yz-cert {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fff;
	padding: 1.3rem 1.4rem;
}

.yz-cert__mark {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--yz-accent-text);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	margin: 0;
}

.yz-cert__name {
	margin: 0;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.25;
	color: var(--yz-ink);
}

.yz-cert__note {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--yz-muted);
}

.yz-proof {
	border-top: 2px solid var(--yz-line);
	padding-top: 1.5rem;
}

.yz-proof__metric {
	margin: 0 0 0.5rem;
	font-size: clamp(1.8rem, 2.8vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--yz-accent);
}

.yz-proof h3 {
	font-size: 1.05rem;
	margin: 0 0 0.6rem;
}

.yz-proof p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--yz-muted);
}

.yz-card {
	background: #fff;
	border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius);
	padding: 2rem;
	height: 100%;
	transition: transform 0.3s var(--yz-ease), box-shadow 0.3s var(--yz-ease), border-color 0.3s var(--yz-ease);
}

.yz-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--yz-shadow);
	border-color: #d5dae2;
}

.yz-card h3 {
	margin: 0 0 0.6rem;
	font-size: 1.15rem;
}

.yz-card p {
	margin: 0;
	color: var(--yz-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

.yz-card__icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--accent-soft);
	color: var(--yz-accent-text);
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-weight: 800;
	font-size: 1rem;
}

.yz-section--surface .yz-card {
	border-color: #e8ebef;
}

/* ==========================================================================
   8. Product grid
   ========================================================================== */
.yz-products .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

.yz-products .wp-block-post-template > li {
	margin: 0;
	display: flex;
}

.yz-products .wp-block-post {
	width: 100%;
}

.yz-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius);
	overflow: hidden;
	transition: transform 0.3s var(--yz-ease), box-shadow 0.3s var(--yz-ease);
}

.yz-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--yz-shadow-lg);
}

.yz-product-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--yz-surface);
}

.yz-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s var(--yz-ease);
}

.yz-product-card:hover .yz-product-card__media img {
	transform: scale(1.04);
}

.yz-product-card__body {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.yz-product-card__cat {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--yz-accent-text);
	font-weight: 700;
}

.yz-product-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.yz-product-card__title a {
	color: var(--yz-ink);
	text-decoration: none;
}

.yz-product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.yz-product-card {
	position: relative;
}

.yz-product-card__excerpt {
	font-size: 0.9rem;
	color: var(--yz-muted);
	line-height: 1.6;
	margin: 0;
}

.yz-product-card__link {
	margin-top: auto;
	padding-top: 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yz-ink);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.yz-product-card:hover .yz-product-card__link {
	color: var(--yz-accent);
}

/* ==========================================================================
   9. Process / steps
   ========================================================================== */
.yz-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	counter-reset: yzstep;
}

.yz-step {
	counter-increment: yzstep;
	position: relative;
	padding-top: 1.5rem;
	border-top: 2px solid var(--yz-line);
}

.yz-step::before {
	content: "0" counter(yzstep);
	position: absolute;
	top: -2px;
	left: 0;
	padding-right: 0.6rem;
	background: var(--wp--preset--color--base);
	transform: translateY(-50%);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--yz-accent-text);
}

.yz-section--surface .yz-step::before {
	background: var(--yz-surface);
}

.yz-step h3 {
	font-size: 1.05rem;
	margin: 0.6rem 0 0.5rem;
}

.yz-step p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--yz-muted);
	line-height: 1.6;
}

/* ==========================================================================
   10. Split / media
   ========================================================================== */
.yz-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.yz-split--reverse .yz-split__media {
	order: 2;
}

.yz-split__media img {
	width: 100%;
	height: auto;
	border-radius: var(--yz-radius);
	box-shadow: var(--yz-shadow-lg);
	display: block;
}

.yz-checklist {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.yz-checklist li {
	position: relative;
	padding-left: 1.9rem;
	color: var(--yz-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.yz-checklist p {
	position: relative;
	margin: 0;
	padding-left: 1.9rem;
	color: var(--yz-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.yz-checklist li::before,
.yz-checklist p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--yz-accent);
}

.yz-section--dark .yz-checklist li {
	color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   11. CTA band
   ========================================================================== */
.yz-cta {
	position: relative;
	overflow: hidden;
	background: var(--yz-ink);
	color: #fff;
	border-radius: var(--yz-radius);
	padding: clamp(2.5rem, 5vw, 4rem);
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 2rem;
	align-items: center;
}

.yz-cta::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 140px rgba(255, 255, 255, 0.02);
	pointer-events: none;
}

.yz-cta h2 {
	color: #fff;
	margin: 0 0 0.6rem;
}

.yz-cta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	max-width: 52ch;
}

/* ==========================================================================
   12. Buttons
   ========================================================================== */
.wp-block-button.is-style-yz-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

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

.wp-block-button.is-style-yz-outline-dark .wp-block-button__link {
	background: transparent;
	color: var(--yz-ink);
	border: 1px solid #cfd5de;
}

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

.wp-block-button.is-style-yz-link .wp-block-button__link {
	background: transparent;
	color: var(--yz-ink);
	padding: 0;
	border-radius: 0;
	border-bottom: 1px solid currentColor;
}

.wp-block-button.is-style-yz-link .wp-block-button__link:hover {
	color: var(--yz-accent);
	background: transparent;
}

/* ==========================================================================
   13. Forms (Contact Form 7)
   ========================================================================== */
.yz-form {
	background: #fff;
	border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	box-shadow: var(--yz-shadow);
}

.yz-form .wpcf7-form p {
	margin: 0 0 1.1rem;
}

.yz-form .wpcf7-form label,
.yz-form .wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.yz-form .wpcf7-form-control {
	width: 100%;
	border: 1px solid #d8dde5;
	border-radius: var(--yz-radius-sm);
	padding: 0.8rem 0.95rem;
	font-size: 0.95rem;
	background: #fff;
	color: var(--yz-ink);
	transition: border-color 0.2s var(--yz-ease), box-shadow 0.2s var(--yz-ease);
	font-family: inherit;
}

.yz-form .wpcf7-form-control:focus {
	border-color: var(--yz-accent);
	box-shadow: 0 0 0 3px rgba(232, 84, 31, 0.12);
	outline: none;
}

.yz-form textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}

.yz-form .wpcf7-submit {
	background: var(--yz-accent-strong);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 1rem 1.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	width: auto;
	transition: background 0.2s var(--yz-ease);
}

.yz-form .wpcf7-submit:hover {
	background: var(--yz-accent-dark);
}

.yz-form .wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: #c0392b;
	margin-top: 0.35rem;
}

.yz-form .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	border-radius: 6px;
	font-size: 0.9rem;
	border-width: 1px;
	border-style: solid;
}

.yz-form label {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--yz-muted);
	margin-bottom: 0.4rem;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.yz-footer {
	background: var(--yz-ink);
	color: rgba(255, 255, 255, 0.66);
	padding-block: clamp(3rem, 6vw, 5rem) 2rem;
	font-size: 0.92rem;
}

.yz-footer :where(h2, h3, h4) {
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 1.1rem;
}

.yz-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.yz-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.yz-footer .wp-block-navigation-item__content {
	padding: 0;
}

.yz-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 3rem;
	padding-top: 1.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.yz-footer__brand {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
}

/* ==========================================================================
   15. Content / editorial pages
   ========================================================================== */
.yz-page-header {
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--yz-line);
	background: linear-gradient(180deg, var(--yz-surface) 0%, #fff 100%);
}

.yz-page-header h1 {
	max-width: 26ch;
	line-height: 1.05;
	margin: 0 0 1rem;
}

.single-product .wp-block-post-date,
.single-product .wp-block-post-author-name {
	display: none;
}

.yz-entry-content > * {
	margin-block-start: 1.35rem;
	margin-block-end: 0;
}

.yz-entry-content > h2 {
	margin-block-start: 2.75rem;
}

.yz-entry-content > h3 {
	margin-block-start: 2rem;
}

.yz-entry-content ul,
.yz-entry-content ol {
	padding-left: 1.25rem;
}

.yz-entry-content li {
	margin-block: 0.4rem;
}

.yz-entry-content blockquote {
	border-left: 3px solid var(--yz-accent);
	padding-left: 1.5rem;
	font-size: 1.15rem;
	color: var(--yz-ink);
	font-style: normal;
}

.yz-entry-content :where(img, figure img) {
	border-radius: var(--yz-radius);
}

.yz-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.wp-block-table.yz-spec-table table {
	border-collapse: collapse;
}

.wp-block-table.yz-spec-table th,
.wp-block-table.yz-spec-table td {
	text-align: left;
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--yz-line);
	vertical-align: top;
}

.wp-block-table.yz-spec-table th {
	width: 32%;
	background: var(--yz-surface);
	font-weight: 600;
	color: var(--yz-ink);
}

/* ==========================================================================
   16. Blog / archive
   ========================================================================== */
.yz-posts .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yz-posts .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--yz-radius);
	width: 100%;
}

.yz-posts .wp-block-post-title {
	font-size: 1.15rem;
	margin: 0.9rem 0 0.4rem;
}

.yz-posts .wp-block-post-date,
.yz-posts .wp-block-post-terms {
	font-size: 0.78rem;
	color: var(--yz-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ==========================================================================
   17. Pagination
   ========================================================================== */
.wp-block-query-pagination {
	margin-top: 3rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.wp-block-query-pagination a {
	color: var(--yz-ink);
}

.wp-block-query-pagination .current {
	color: var(--yz-accent);
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.yz-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yz-grid--3,
	.yz-products .wp-block-post-template,
	.yz-posts .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yz-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yz-certs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yz-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2.5rem;
	}

	.yz-cta {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	/* the mobile overlay menu carries the contact link, so drop the header CTA */
	.yz-header .wp-block-buttons {
		display: none;
	}

	.yz-header__inner {
		gap: 0.75rem;
	}
}

@media (max-width: 782px) {
	.yz-header .wp-block-site-logo img {
		max-height: 34px;
	}

	.yz-hero h1 {
		max-width: 100%;
	}

	.yz-split {
		grid-template-columns: 1fr;
	}

	.yz-split--reverse .yz-split__media {
		order: 0;
	}

	.yz-hero {
		min-height: 74vh;
	}

	.yz-hero__meta {
		gap: 1rem;
		font-size: 0.72rem;
	}
}

@media (max-width: 620px) {
	.yz-grid--3,
	.yz-grid--2,
	.yz-grid--4,
	.yz-products .wp-block-post-template,
	.yz-posts .wp-block-post-template,
	.yz-steps {
		grid-template-columns: 1fr;
	}

	.yz-stats {
		grid-template-columns: 1fr;
	}

	.yz-certs {
		grid-template-columns: 1fr;
	}

	.yz-card {
		padding: 1.5rem;
	}
}

/* ==========================================================================
   19. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
