/*
Theme Name: Zen Dev Tools
Theme URI: https://zendevtools.com
Author: Zen Dev Tools
Author URI: https://zendevtools.com
Description: A modern theme for showcasing WordPress themes, plugins, web tools and apps, with a blog. Pairs with the Zen Dev Tools Core plugin for page-building blocks and Easy Digital Downloads for selling.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zendevtools-primary
Tags: blog, e-commerce, portfolio, one-column, three-columns, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, rtl-language-support, wide-blocks

Zen Dev Tools WordPress theme, (C) 2026 Zen Dev Tools.
Zen Dev Tools is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   1. Design tokens
   The five base colours come from Appearance > Customize > Colors (printed
   inline after this file). Everything else is derived from them, so one
   change re-colours the whole site, including the Zen Dev Tools blocks.
   ========================================================================== */
:root {
	--zdtp-primary: #c30029;
	--zdtp-dark: #330000;
	--zdtp-accent: #fcc;
	--zdtp-text: #1d1b22;
	--zdtp-bg: #fff;

	--zdtp-primary-dark: color-mix(in srgb, var(--zdtp-primary) 78%, #000);
	--zdtp-primary-soft: color-mix(in srgb, var(--zdtp-primary) 8%, var(--zdtp-bg));
	--zdtp-muted: color-mix(in srgb, var(--zdtp-text) 64%, var(--zdtp-bg));
	--zdtp-bg-alt: color-mix(in srgb, var(--zdtp-text) 3.5%, var(--zdtp-bg));
	--zdtp-border: color-mix(in srgb, var(--zdtp-text) 11%, var(--zdtp-bg));
	--zdtp-surface-dark: color-mix(in srgb, var(--zdtp-dark) 55%, #0c0b10);
	--zdtp-gradient: linear-gradient(135deg, var(--zdtp-primary) 0%, color-mix(in srgb, var(--zdtp-primary) 55%, var(--zdtp-dark)) 55%, var(--zdtp-dark) 100%);
	--zdtp-gold: #f5a524;

	/* Card/panel background and red used for text; dark mode changes these. */
	--zdtp-surface: var(--zdtp-bg);
	--zdtp-primary-text: var(--zdtp-primary);
	--zdtp-primary-text-hover: var(--zdtp-primary-dark);
	--zdtp-gradient-text: var(--zdtp-gradient);
	--zdtp-glow-opacity: 0.5;
	--zdtp-icon-filter: none;

	--zdtp-font: "Plus Jakarta Sans", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", sans-serif;
	--zdtp-font-heading: var(--zdtp-font);
	--zdtp-font-mono: "JetBrains Mono", ui-monospace, sfmono-regular, menlo, consolas, monospace;

	--zdtp-content: 760px;
	--zdtp-wide: 1200px;
	--zdtp-gutter: 24px;
	--zdtp-radius: 8px;
	--zdtp-radius-lg: 8px;
	--zdtp-shadow-sm: 0 1px 2px rgba(20, 16, 30, 0.06), 0 2px 8px rgba(20, 16, 30, 0.04);
	--zdtp-shadow: 0 10px 30px -12px rgba(20, 16, 30, 0.18);
	--zdtp-shadow-lg: 0 30px 60px -20px rgba(20, 16, 30, 0.3);
	--zdtp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--zdtp-header-h: 76px;

	color-scheme: light;
}

/* ==========================================================================
   1b. Dark mode
   Follows the visitor's system setting unless they pick light or dark with
   the header switch (saved in their browser as data-theme on <html>).
   Text and background get dark versions; Primary, Dark and Accent from the
   Customizer still apply. The two blocks below must stay identical.
   ========================================================================== */
:root[data-theme="dark"] {
	--zdtp-bg: color-mix(in srgb, var(--zdtp-dark) 16%, #0e0d12);
	--zdtp-text: #ecebf1;
	--zdtp-surface: color-mix(in srgb, #fff 5%, var(--zdtp-bg));
	--zdtp-primary-soft: color-mix(in srgb, var(--zdtp-primary) 20%, var(--zdtp-bg));
	--zdtp-primary-text: color-mix(in srgb, var(--zdtp-primary) 55%, #fff);
	--zdtp-primary-text-hover: color-mix(in srgb, var(--zdtp-primary) 35%, #fff);
	--zdtp-gradient-text: linear-gradient(90deg, var(--zdtp-primary-text) 0%, var(--zdtp-accent) 100%);
	--zdtp-glow-opacity: 0.16;
	--zdtp-icon-filter: invert(1);
	--zdtp-muted: color-mix(in srgb, var(--zdtp-text) 70%, var(--zdtp-bg));
	--zdtp-bg-alt: color-mix(in srgb, #fff 3%, var(--zdtp-bg));
	--zdtp-border: color-mix(in srgb, #fff 13%, var(--zdtp-bg));
	--zdtp-surface-dark: color-mix(in srgb, var(--zdtp-dark) 35%, #07060a);
	--zdtp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
	--zdtp-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	--zdtp-shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75);

	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) {
		--zdtp-bg: color-mix(in srgb, var(--zdtp-dark) 16%, #0e0d12);
		--zdtp-text: #ecebf1;
		--zdtp-surface: color-mix(in srgb, #fff 5%, var(--zdtp-bg));
		--zdtp-primary-soft: color-mix(in srgb, var(--zdtp-primary) 20%, var(--zdtp-bg));
		--zdtp-primary-text: color-mix(in srgb, var(--zdtp-primary) 55%, #fff);
		--zdtp-primary-text-hover: color-mix(in srgb, var(--zdtp-primary) 35%, #fff);
		--zdtp-gradient-text: linear-gradient(90deg, var(--zdtp-primary-text) 0%, var(--zdtp-accent) 100%);
		--zdtp-glow-opacity: 0.16;
		--zdtp-icon-filter: invert(1);
	--zdtp-icon-filter: invert(1);
	--zdtp-glow-opacity: 0.16;
	--zdtp-icon-filter: invert(1);
	--zdtp-gradient-text: linear-gradient(90deg, var(--zdtp-primary-text) 0%, var(--zdtp-accent) 100%);
	--zdtp-glow-opacity: 0.16;
	--zdtp-icon-filter: invert(1);
		--zdtp-muted: color-mix(in srgb, var(--zdtp-text) 70%, var(--zdtp-bg));
		--zdtp-bg-alt: color-mix(in srgb, #fff 3%, var(--zdtp-bg));
		--zdtp-border: color-mix(in srgb, #fff 13%, var(--zdtp-bg));
		--zdtp-surface-dark: color-mix(in srgb, var(--zdtp-dark) 35%, #07060a);
		--zdtp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
		--zdtp-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
		--zdtp-shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75);

		color-scheme: dark;
	}
}

/* Dark logos stay visible on the dark header (shown as a white silhouette). */
:root[data-theme="dark"] .site-header .custom-logo {
	filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) .site-header .custom-logo {
		filter: brightness(0) invert(1);
	}
}

/* Smooth colour change when the visitor flips the switch (not on page load). */
.zdtp-theme-switching,
.zdtp-theme-switching *,
.zdtp-theme-switching *::before,
.zdtp-theme-switching *::after {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, fill 0.4s ease !important;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--zdtp-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--zdtp-bg);
	color: var(--zdtp-text);
	font-family: var(--zdtp-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizelegibility;
}

/* 100vw full-width blocks include the scrollbar; clip instead of scrolling sideways. */
.site {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
}

.site-content {
	flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.6em 0 0.6em;
	color: inherit;
	font-family: var(--zdtp-font-heading);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p,
ul,
ol,
dl,
blockquote,
pre,
table,
figure {
	margin: 0 0 1.4em;
}

ul,
ol {
	padding-inline-start: 1.4em;
}

li + li {
	margin-top: 0.35em;
}

a {
	color: var(--zdtp-primary-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--zdtp-ease);
}

a:hover,
a:focus {
	color: var(--zdtp-primary-text-hover);
}

:focus-visible {
	outline: 2px solid var(--zdtp-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

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

svg {
	flex-shrink: 0;
}

::selection {
	background: var(--zdtp-primary);
	color: #fff;
}

blockquote {
	position: relative;
	margin-inline: 0;
	padding: 0.4em 0 0.4em 1.4em;
	border-inline-start: 4px solid var(--zdtp-primary);
	font-size: 1.15em;
	font-style: italic;
}

blockquote cite {
	display: block;
	margin-top: 0.6em;
	color: var(--zdtp-muted);
	font-size: 0.85em;
	font-style: normal;
	font-weight: 600;
}

code,
kbd,
pre,
samp {
	font-family: var(--zdtp-font-mono);
	font-size: 0.88em;
}

code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--zdtp-primary-soft);
	color: var(--zdtp-primary-text-hover);
}

pre {
	overflow-x: auto;
	padding: 1.2em 1.4em;
	border-radius: var(--zdtp-radius);
	background: var(--zdtp-surface-dark);
	color: #f3eef0;
	line-height: 1.6;
}

pre code {
	padding: 0;
	background: none;
	color: inherit;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

th,
td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--zdtp-border);
	text-align: start;
}

th {
	font-weight: 700;
}

hr {
	height: 1px;
	margin: 2.5em 0;
	border: 0;
	background: var(--zdtp-border);
}

/* ==========================================================================
   3. Buttons (theme, core button block, EDD)
   ========================================================================== */
.zdtp-btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.wp-element-button,
.edd-submit,
a.edd-submit,
.edd-add-to-cart.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.7em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--zdtp-primary);
	box-shadow: 0 10px 24px -12px var(--zdtp-primary);
	color: #fff;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--zdtp-ease), box-shadow 0.25s var(--zdtp-ease), background-color 0.25s var(--zdtp-ease), color 0.25s var(--zdtp-ease), border-color 0.25s var(--zdtp-ease);
}

.zdtp-btn:hover,
.zdtp-btn:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.edd-submit:hover,
a.edd-submit:hover {
	background: var(--zdtp-primary-dark);
	box-shadow: 0 16px 30px -14px var(--zdtp-primary);
	color: #fff;
	transform: translateY(-2px);
}

.zdtp-btn svg {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.25s var(--zdtp-ease);
}

.zdtp-btn:hover svg {
	transform: translateX(3px);
}

.rtl .zdtp-btn:hover svg {
	transform: translateX(-3px);
}

.zdtp-btn--outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
	background: transparent;
	box-shadow: none;
	color: var(--zdtp-primary-text);
}

.zdtp-btn--outline:hover,
.zdtp-btn--outline:focus,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--zdtp-primary-text);
	background: var(--zdtp-primary);
	color: #fff;
}

.zdtp-btn--light {
	background: #fff;
	box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5);
	color: var(--zdtp-primary-dark);
}

.zdtp-btn--light:hover,
.zdtp-btn--light:focus {
	background: var(--zdtp-accent);
	color: var(--zdtp-dark);
}

.zdtp-btn--ghost {
	background: transparent;
	box-shadow: none;
	color: var(--zdtp-text);
}

.zdtp-btn--ghost:hover,
.zdtp-btn--ghost:focus {
	background: var(--zdtp-primary-soft);
	box-shadow: none;
	color: var(--zdtp-primary-text);
}

.zdtp-btn--sm {
	min-height: 40px;
	padding: 0.5em 1.1em;
	font-size: 0.9rem;
}

/* ==========================================================================
   4. Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 0.7em 1em;
	border: 1.5px solid var(--zdtp-border);
	border-radius: 8px;
	background: var(--zdtp-surface);
	color: var(--zdtp-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s var(--zdtp-ease), box-shadow 0.2s var(--zdtp-ease);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--zdtp-primary-text);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--zdtp-primary) 18%, transparent);
}

label {
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1 1 auto;
}

/* ==========================================================================
   5. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip: auto !important;
	clip-path: none;
	border-radius: 6px;
	background: #fff;
	box-shadow: var(--zdtp-shadow);
	color: var(--zdtp-primary-dark);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   6. Layout
   ========================================================================== */
.zdtp-container {
	width: 100%;
	max-width: var(--zdtp-wide);
	margin-inline: auto;
	padding-inline: var(--zdtp-gutter);
}

.site-main {
	padding-block: clamp(40px, 6vw, 72px);
}

.zdtp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 56px;
}

.has-sidebar .zdtp-layout {
	grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 960px) {
	.has-sidebar .zdtp-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Block content: a comfortable reading column, with Wide and Full width
 * blocks breaking out of it. Full width only reaches the screen edges where
 * the column is centred (no sidebar).
 */
.entry-content > * {
	max-width: var(--zdtp-content);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--zdtp-wide);
}

.entry-content > .alignfull {
	max-width: none;
}

.no-sidebar .entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.entry-content > .alignleft,
.entry-content > .alignright {
	max-width: 50%;
}

.zdtp-landing .site-main {
	padding-block: 0;
}

.zdtp-landing .entry-content > :first-child {
	margin-top: 0;
}

.zdtp-landing .entry-content > :last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   7. Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	background: color-mix(in srgb, var(--zdtp-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	transition: border-color 0.3s var(--zdtp-ease), box-shadow 0.3s var(--zdtp-ease);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	border-bottom-color: var(--zdtp-border);
	box-shadow: 0 8px 30px -18px rgba(20, 16, 30, 0.25);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--zdtp-header-h);
}

.site-branding {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	margin-inline-end: auto;
}

.site-branding a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--zdtp-text);
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 48px;
}

.site-branding__mark {
	width: 40px;
	height: 40px;
}

.site-title {
	margin: 0;
	font-family: var(--zdtp-font-heading);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.site-description {
	margin: 2px 0 0;
	color: var(--zdtp-muted);
	font-size: 0.8rem;
	line-height: 1.3;
}

/* Primary navigation */
.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
	margin: 0;
}

.main-navigation > div > ul,
.main-navigation > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-navigation a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border-radius: 6px;
	color: var(--zdtp-text);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s var(--zdtp-ease), background-color 0.2s var(--zdtp-ease);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	background: var(--zdtp-primary-soft);
	color: var(--zdtp-primary-text);
}

.main-navigation .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-inline-start: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: 0.6;
	transform: translateY(-2px) rotate(45deg);
}

/* A menu item with the CSS class "menu-button" becomes the header call-to-action. */
.main-navigation .menu-button > a {
	margin-inline-start: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--zdtp-primary);
	box-shadow: 0 10px 24px -12px var(--zdtp-primary);
	color: #fff;
}

.main-navigation .menu-button > a:hover,
.main-navigation .menu-button > a:focus {
	background: var(--zdtp-primary-dark);
	color: #fff;
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 99;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius);
	background: var(--zdtp-surface);
	box-shadow: var(--zdtp-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s var(--zdtp-ease), transform 0.2s var(--zdtp-ease), visibility 0.2s;
}

.main-navigation .sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.main-navigation .sub-menu .sub-menu {
	top: -8px;
	inset-inline-start: 100%;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-navigation .sub-menu a {
	padding: 9px 12px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.zdtp-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-height: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--zdtp-text);
}

.zdtp-icon-btn:hover,
.zdtp-icon-btn:focus {
	background: var(--zdtp-primary-soft);
	box-shadow: none;
	color: var(--zdtp-primary-text);
	transform: none;
}

.zdtp-icon-btn svg {
	width: 22px;
	height: 22px;
}

/*
 * Light/dark switch. Hidden without JavaScript (it couldn't work). The thumb
 * position comes from CSS, so it is right before the script runs.
 */
.zdtp-theme-toggle {
	display: none;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--zdtp-text);
	cursor: pointer;
}

.zdtp-js .zdtp-theme-toggle {
	display: inline-flex;
}

.zdtp-theme-toggle:hover,
.zdtp-theme-toggle:focus {
	background: transparent;
	box-shadow: none;
	color: var(--zdtp-text);
	transform: none;
}

.zdtp-theme-toggle__track {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 58px;
	height: 32px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--zdtp-bg-alt);
	box-shadow: inset 0 0 0 1px var(--zdtp-border);
	transition: background-color 0.3s var(--zdtp-ease);
}

.zdtp-theme-toggle:hover .zdtp-theme-toggle__track {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zdtp-primary) 45%, var(--zdtp-border));
}

.zdtp-theme-toggle:focus-visible {
	outline: none;
}

.zdtp-theme-toggle:focus-visible .zdtp-theme-toggle__track {
	outline: 2px solid var(--zdtp-primary-text);
	outline-offset: 2px;
}

.zdtp-theme-toggle__icon {
	position: relative;
	z-index: 1;
	display: flex;
	color: var(--zdtp-muted);
	transition: color 0.3s var(--zdtp-ease), transform 0.5s var(--zdtp-ease);
}

.zdtp-theme-toggle__icon svg {
	width: 16px;
	height: 16px;
}

.zdtp-theme-toggle__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--zdtp-primary);
	box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--zdtp-primary) 70%, transparent);
	transition: transform 0.45s var(--zdtp-ease);
}

/* Light: thumb under the sun. */
.zdtp-theme-toggle__icon.is-sun {
	color: #fff;
}

/* Dark: thumb slides under the moon. */
:root[data-theme="dark"] .zdtp-theme-toggle__thumb {
	transform: translateX(26px);
}

:root[data-theme="dark"] .zdtp-theme-toggle__icon.is-sun {
	color: var(--zdtp-muted);
	transform: rotate(-90deg);
}

:root[data-theme="dark"] .zdtp-theme-toggle__icon.is-moon {
	color: #fff;
}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) .zdtp-theme-toggle__thumb {
		transform: translateX(26px);
	}

	:root:not([data-theme="light"]) .zdtp-theme-toggle__icon.is-sun {
		color: var(--zdtp-muted);
		transform: rotate(-90deg);
	}

	:root:not([data-theme="light"]) .zdtp-theme-toggle__icon.is-moon {
		color: #fff;
	}
}

.rtl .zdtp-theme-toggle__track {
	direction: ltr;
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Header search panel */
.header-search {
	position: absolute;
	inset: 100% 0 auto;
	padding: 20px 0 28px;
	border-bottom: 1px solid var(--zdtp-border);
	background: var(--zdtp-surface);
	box-shadow: var(--zdtp-shadow);
}

.header-search[hidden] {
	display: none;
}

.header-search .search-form {
	max-width: 720px;
	margin-inline: auto;
}

@media (max-width: 960px) {
	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		inset: 100% 0 auto;
		display: none;
		max-height: calc(100vh - var(--zdtp-header-h));
		overflow-y: auto;
		padding: 12px var(--zdtp-gutter) 24px;
		border-bottom: 1px solid var(--zdtp-border);
		background: var(--zdtp-surface);
		box-shadow: var(--zdtp-shadow);
	}

	.main-navigation.is-open {
		display: block;
		animation: zdtp-drop 0.3s var(--zdtp-ease);
	}

	.main-navigation > div > ul,
	.main-navigation > ul {
		flex-direction: column;
		align-items: stretch;
	}

	.main-navigation .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-navigation .menu-button > a {
		justify-content: center;
		margin: 12px 0 0;
	}
}

@keyframes zdtp-drop {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* --------------------------------------------------------------------------
   Header options (Appearance > Customize > Theme options > Header)
   -------------------------------------------------------------------------- */

/* "Fixed header" off: the header scrolls away with the page. */
.zdtp-header-static .site-header {
	position: relative;
	top: auto;
}

html:has(> body.zdtp-header-static) {
	scroll-padding-top: 16px;
}

/* Full-screen heroes subtract the visible header and admin bar. */
body {
	--zdtp-viewport-offset: calc(var(--zdtp-header-h) + var(--wp-admin--admin-bar--height, 0px));
}

/* Transparent header: sits over the top band until the page scrolls. */
.zdtp-header-transparent .site-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	border-bottom-color: transparent;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.zdtp-header-transparent.zdtp-header-sticky .site-header {
	position: fixed;
}

.admin-bar.zdtp-header-transparent.zdtp-header-sticky .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {

	/* The admin bar scrolls away on phones, so don't pin under it. */
	.admin-bar.zdtp-header-transparent.zdtp-header-sticky .site-header {
		position: absolute;
		top: 0;
	}
}

.zdtp-header-transparent .site-header:is(.is-scrolled, .is-open) {
	border-bottom-color: var(--zdtp-border);
	background: color-mix(in srgb, var(--zdtp-bg) 88%, transparent);
	box-shadow: 0 8px 30px -18px rgba(20, 16, 30, 0.25);
	backdrop-filter: saturate(180%) blur(14px);
}

/* The band under a transparent header makes room for it. */
.zdtp-header-transparent :is(.page-hero, .post-hero, .product-hero),
.zdtp-header-transparent.zdtp-landing .entry-content > :first-child {
	--zdtp-header-offset: var(--zdtp-header-h);
	--zdtp-viewport-offset: var(--wp-admin--admin-bar--height, 0px);
}

/* Over a dark or brand-coloured band: white header until it scrolls. */
.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) :is(.site-branding, .site-header__actions) {
	--zdtp-text: #fff;
	--zdtp-muted: rgba(255, 255, 255, 0.72);
	--zdtp-bg-alt: rgba(255, 255, 255, 0.14);
	--zdtp-border: rgba(255, 255, 255, 0.3);
	--zdtp-primary-soft: rgba(255, 255, 255, 0.14);
	--zdtp-primary-text: #fff;
}

.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) .site-branding a {
	color: #fff;
}

.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) .custom-logo {
	filter: brightness(0) invert(1);
}

@media (min-width: 961px) {

	.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) .main-navigation > ul > li > a,
	.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) .main-navigation > div > ul > li > a {
		--zdtp-text: #fff;
		--zdtp-primary-soft: rgba(255, 255, 255, 0.14);
		--zdtp-primary-text: #fff;
	}

	.zdtp-header-over-dark .site-header:not(.is-scrolled):not(.is-open) .main-navigation .menu-button > a {
		background: #fff;
		box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
		color: var(--zdtp-primary-dark);
	}
}

/* ==========================================================================
   8. Page hero (pages, archives, search, blog)
   ========================================================================== */
.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: calc(clamp(48px, 7vw, 96px) + var(--zdtp-header-offset, 0px)) clamp(40px, 6vw, 72px);
	background: linear-gradient(180deg, var(--zdtp-primary-soft) 0%, var(--zdtp-bg) 100%);
	text-align: center;
}

.page-hero::before,
.page-hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	filter: blur(60px);
	opacity: var(--zdtp-glow-opacity);
	pointer-events: none;
}

.page-hero::before {
	top: -120px;
	inset-inline-start: -80px;
	width: 360px;
	height: 360px;
	background: color-mix(in srgb, var(--zdtp-primary) 28%, transparent);
	animation: zdtp-float 14s ease-in-out infinite;
}

.page-hero::after {
	right: -100px;
	bottom: -160px;
	width: 420px;
	height: 420px;
	background: color-mix(in srgb, var(--zdtp-accent) 70%, transparent);
	animation: zdtp-float 18s ease-in-out infinite reverse;
}

.page-hero > * {
	position: relative;
	z-index: 1;
}

.page-hero__eyebrow,
.zdtp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--zdtp-primary-text);
	font-family: var(--zdtp-font-mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-hero__title {
	max-width: 880px;
	margin: 0 auto;
}

.page-hero__description {
	max-width: 640px;
	margin: 16px auto 0;
	color: var(--zdtp-muted);
	font-size: 1.1rem;
}

.page-hero__description > :last-child {
	margin-bottom: 0;
}

.page-hero .search-form {
	max-width: 560px;
	margin: 28px auto 0;
}

.zdtp-breadcrumbs {
	margin: 0 0 16px;
	color: var(--zdtp-muted);
	font-size: 0.85rem;
}

.zdtp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zdtp-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.zdtp-breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.zdtp-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

/* Rank Math breadcrumbs (<nav class="rank-math-breadcrumb"><p>...). */
.zdtp-breadcrumbs--rank-math p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.zdtp-breadcrumbs--rank-math .separator {
	opacity: 0.5;
}

.product-hero .zdtp-breadcrumbs--rank-math p {
	justify-content: flex-start;
}

.post-hero .zdtp-breadcrumbs--rank-math,
.product-hero .zdtp-breadcrumbs--rank-math {
	color: rgba(255, 255, 255, 0.8);
}

.zdtp-breadcrumbs a:hover {
	color: var(--zdtp-primary-text);
}

@keyframes zdtp-float {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	50% {
		transform: translate(30px, 20px) scale(1.08);
	}
}

/* ==========================================================================
   9. Cards and grids
   ========================================================================== */
.zdtp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

@media (max-width: 960px) {
	.zdtp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.zdtp-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius-lg);
	background: var(--zdtp-surface);
	box-shadow: var(--zdtp-shadow-sm);
	transition: transform 0.35s var(--zdtp-ease), box-shadow 0.35s var(--zdtp-ease), border-color 0.35s var(--zdtp-ease);
}

.post-card:hover {
	border-color: color-mix(in srgb, var(--zdtp-primary) 25%, var(--zdtp-border));
	box-shadow: var(--zdtp-shadow-lg);
	transform: translateY(-6px);
}

.post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--zdtp-gradient);
}

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

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: rgba(255, 255, 255, 0.9);
	font-size: 3rem;
	font-weight: 800;
}

.post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 12px;
	color: var(--zdtp-muted);
	font-size: 0.82rem;
}

.zdtp-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--zdtp-primary-soft);
	color: var(--zdtp-primary-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

a.zdtp-pill:hover {
	background: var(--zdtp-primary);
	color: #fff;
}

.post-card__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--zdtp-text);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size 0.4s var(--zdtp-ease), color 0.2s;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: var(--zdtp-primary-text);
	background-size: 100% 2px;
}

/* The whole card is clickable through the title link. */
.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card {
	position: relative;
}

.post-card a.zdtp-pill,
.post-card__media {
	position: relative;
	z-index: 1;
}

.post-card__excerpt {
	margin: 0 0 18px;
	color: var(--zdtp-muted);
	font-size: 0.95rem;
}

.post-card__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--zdtp-border);
	color: var(--zdtp-muted);
	font-size: 0.85rem;
}

.post-card__footer img {
	border-radius: 50%;
}

.post-card__footer strong {
	color: var(--zdtp-text);
	font-weight: 600;
}

/* Featured (first) post on the blog. */
.post-card--featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.post-card--featured .post-card__media {
	aspect-ratio: auto;
	min-height: 340px;
}

.post-card--featured .post-card__body {
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
}

.post-card--featured .post-card__title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

@media (max-width: 782px) {
	.post-card--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-card--featured .post-card__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

.sticky .post-card__meta::before {
	content: "★";
	color: var(--zdtp-gold);
}

/* Pagination */
.pagination,
.comments-pagination {
	margin-top: clamp(40px, 5vw, 64px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--zdtp-border);
	border-radius: 8px;
	color: var(--zdtp-text);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s var(--zdtp-ease);
}

a.page-numbers:hover {
	border-color: var(--zdtp-primary-text);
	color: var(--zdtp-primary-text);
}

.page-numbers.current {
	border-color: var(--zdtp-primary-text);
	background: var(--zdtp-primary);
	color: #fff;
}

.page-numbers.dots {
	border: 0;
}

/* ==========================================================================
   10. Single post
   ========================================================================== */
.post-hero {
	position: relative;
	overflow: hidden;
	padding-block: calc(clamp(48px, 7vw, 88px) + var(--zdtp-header-offset, 0px)) clamp(120px, 14vw, 180px);
	background: var(--zdtp-gradient);
	color: #fff;
	text-align: center;
}

.post-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.post-hero > * {
	position: relative;
}

.post-hero .zdtp-breadcrumbs,
.post-hero .zdtp-breadcrumbs a {
	color: rgba(255, 255, 255, 0.8);
}

.post-hero .zdtp-pill {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	backdrop-filter: blur(6px);
}

.post-hero .zdtp-pill:hover {
	background: #fff;
	color: var(--zdtp-primary-text);
}

.post-hero__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.post-hero__title {
	max-width: 900px;
	margin: 0 auto;
	color: #fff;
}

.post-hero__excerpt {
	max-width: 680px;
	margin: 18px auto 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.12rem;
}

.post-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	margin-top: 26px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.92rem;
}

.post-hero__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.post-hero__meta svg {
	width: 16px;
	height: 16px;
	opacity: 0.8;
}

.post-hero__meta img {
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
}

.post-hero__meta a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.single-featured {
	position: relative;
	z-index: 2;
	max-width: 1040px;
	margin: clamp(-150px, -12vw, -90px) auto 0;
	padding-inline: var(--zdtp-gutter);
}

.single-featured img {
	display: block;
	width: 100%;
	border-radius: var(--zdtp-radius-lg);
	box-shadow: var(--zdtp-shadow-lg);
}

/* Without a featured image there is nothing to overlap, so the hero is shorter. */
.post-hero--no-image {
	padding-bottom: clamp(56px, 7vw, 96px);
}

.single .site-main {
	padding-top: clamp(40px, 5vw, 64px);
}

.entry-content {
	font-size: 1.08rem;
}

.entry-content > h2,
.entry-content > h3 {
	scroll-margin-top: calc(var(--zdtp-header-h) + 24px);
}

.entry-content a:not(.wp-block-button__link):not(.zdtp-btn) {
	text-decoration-color: color-mix(in srgb, var(--zdtp-primary) 40%, transparent);
	text-decoration-thickness: 2px;
}

.entry-content a:not(.wp-block-button__link):not(.zdtp-btn):hover {
	text-decoration-color: currentColor;
}

.entry-content img {
	border-radius: var(--zdtp-radius);
}

.entry-footer {
	max-width: var(--zdtp-content);
	margin: 48px auto 0;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.entry-tags a {
	padding: 6px 14px;
	border: 1px solid var(--zdtp-border);
	border-radius: 999px;
	color: var(--zdtp-muted);
	font-size: 0.85rem;
	text-decoration: none;
	transition: all 0.2s var(--zdtp-ease);
}

.entry-tags a::before {
	content: "#";
	opacity: 0.6;
}

.entry-tags a:hover {
	border-color: var(--zdtp-primary-text);
	color: var(--zdtp-primary-text);
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
	border-block: 1px solid var(--zdtp-border);
}

.share-links__label {
	margin-inline-end: 6px;
	font-weight: 700;
}

.share-links a,
.share-links button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	min-height: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--zdtp-border);
	border-radius: 50%;
	background: var(--zdtp-surface);
	box-shadow: none;
	color: var(--zdtp-text);
	transition: all 0.25s var(--zdtp-ease);
}

.share-links a:hover,
.share-links button:hover,
.share-links button.is-copied {
	border-color: var(--zdtp-primary-text);
	background: var(--zdtp-primary);
	color: #fff;
	transform: translateY(-2px);
}

.share-links svg {
	width: 18px;
	height: 18px;
}

.author-box {
	display: flex;
	gap: 20px;
	margin-top: 36px;
	padding: 28px;
	border-radius: var(--zdtp-radius-lg);
	background: var(--zdtp-bg-alt);
}

.author-box img {
	flex: 0 0 auto;
	border-radius: 50%;
}

.author-box__label {
	margin: 0 0 2px;
	color: var(--zdtp-muted);
	font-family: var(--zdtp-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-box__name {
	margin: 0 0 8px;
	font-size: 1.2rem;
}

.author-box__bio {
	margin: 0 0 10px;
	color: var(--zdtp-muted);
	font-size: 0.95rem;
}

.author-box__link {
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.post-navigation {
	max-width: var(--zdtp-content);
	margin: 48px auto 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 20px 22px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius);
	color: var(--zdtp-text);
	text-decoration: none;
	transition: all 0.3s var(--zdtp-ease);
}

.post-navigation a:hover {
	border-color: var(--zdtp-primary-text);
	box-shadow: var(--zdtp-shadow);
	transform: translateY(-3px);
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: end;
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 4px;
	color: var(--zdtp-primary-text);
	font-family: var(--zdtp-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	font-weight: 700;
	line-height: 1.35;
}

@media (max-width: 600px) {
	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		grid-column: auto;
	}
}

.related-posts {
	padding-block: clamp(56px, 7vw, 96px);
	background: var(--zdtp-bg-alt);
}

.zdtp-section-title {
	margin: 0 0 clamp(28px, 4vw, 44px);
	text-align: center;
}

.zdtp-section-title h2 {
	margin: 0;
}

.zdtp-section-title p {
	margin: 10px 0 0;
	color: var(--zdtp-muted);
}

/* Reading progress bar (single posts). */
.reading-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	height: 3px;
	background: var(--zdtp-gradient);
	transform: scaleX(var(--zdtp-progress, 0));
	transform-origin: 0 50%;
}

.rtl .reading-progress {
	transform-origin: 100% 50%;
}

.admin-bar .reading-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* ==========================================================================
   11. Comments
   ========================================================================== */
.comments-area {
	max-width: var(--zdtp-content);
	margin: 64px auto 0;
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-inline-start: clamp(16px, 4vw, 40px);
}

.comment-body {
	margin-bottom: 20px;
	padding: 22px 24px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius);
	background: var(--zdtp-surface);
}

.bypostauthor > .comment-body {
	border-color: color-mix(in srgb, var(--zdtp-primary) 30%, var(--zdtp-border));
	background: var(--zdtp-primary-soft);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
	font-weight: 700;
}

.comment-author .says {
	display: none;
}

.comment-metadata,
.comment-metadata a {
	color: var(--zdtp-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   12. Widgets and sidebar
   ========================================================================== */
.widget-area .widget {
	margin-bottom: 32px;
	padding: 24px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius);
	font-size: 0.95rem;
}

.widget-title,
.widget .wp-block-heading {
	margin-top: 0;
	font-size: 1.05rem;
}

.widget ul {
	padding-inline-start: 0;
	list-style: none;
}

.widget-area a:not(.wp-block-button__link) {
	color: var(--zdtp-text);
	text-decoration: none;
}

.widget-area a:not(.wp-block-button__link):hover,
.widget-area a:not(.wp-block-button__link):focus {
	color: var(--zdtp-primary-text);
}

.widget-area .wp-block-latest-comments {
	padding-inline-start: 0;
}

.has-sidebar .widget-area {
	position: sticky;
	top: calc(var(--zdtp-header-h) + 24px);
	align-self: start;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(56px, 7vw, 88px);
	background: var(--zdtp-surface-dark);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.95rem;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--zdtp-gradient);
}

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

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr);
	gap: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.site-footer__brand .site-branding a {
	color: #fff;
}

/* Show the logo as a white silhouette so dark logos stay visible on the dark footer. */
.site-footer .custom-logo,
.site-footer .site-branding__mark {
	filter: brightness(0) invert(1);
}

.site-footer__brand .site-description {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.92rem;
	line-height: 1.6;
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
}

.site-footer .widget {
	margin: 0;
}

.site-footer .widget-title,
.site-footer .wp-block-heading {
	margin: 0 0 16px;
	color: var(--zdtp-accent);
	font-family: var(--zdtp-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget li {
	margin: 0 0 10px;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.social-links li {
	margin: 0;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	transition: all 0.25s var(--zdtp-ease);
}

.social-links a:hover,
.social-links a:focus {
	background: var(--zdtp-primary);
	transform: translateY(-3px);
}

.social-links svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
}

.site-footer__bottom p {
	margin: 0;
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-navigation li {
	margin: 0;
}

@media (max-width: 782px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	width: 48px;
	min-height: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
}

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

.back-to-top svg {
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   14. 404 and empty states
   ========================================================================== */
.error-404 {
	padding-block: clamp(56px, 9vw, 120px);
	text-align: center;
}

.error-404__code {
	margin: 0;
	background: var(--zdtp-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(6rem, 4rem + 10vw, 12rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	animation: zdtp-pulse 4s ease-in-out infinite;
}

.error-404 h1 {
	margin-top: 8px;
}

.error-404 p {
	max-width: 520px;
	margin-inline: auto;
	color: var(--zdtp-muted);
}

.error-404 .search-form {
	max-width: 520px;
	margin: 28px auto;
}

.zdtp-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

@keyframes zdtp-pulse {
	50% {
		filter: brightness(1.15);
		transform: scale(1.02);
	}
}

.no-results {
	max-width: 620px;
	margin-inline: auto;
	padding: 48px 32px;
	border: 1px dashed var(--zdtp-border);
	border-radius: var(--zdtp-radius-lg);
	text-align: center;
}

.no-results h2 {
	margin-top: 0;
}

/* ==========================================================================
   15. Products (Easy Digital Downloads)
   ========================================================================== */
.product-hero {
	position: relative;
	overflow: hidden;
	padding-block: calc(clamp(48px, 7vw, 96px) + var(--zdtp-header-offset, 0px)) clamp(48px, 7vw, 96px);
	background: var(--zdtp-gradient);
	color: #fff;
}

.product-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.product-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.product-hero .zdtp-breadcrumbs ol {
	justify-content: flex-start;
}

.product-hero .zdtp-breadcrumbs,
.product-hero .zdtp-breadcrumbs a {
	color: rgba(255, 255, 255, 0.8);
}

.product-hero__type {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.product-hero h1 {
	margin: 14px 0 0;
	color: #fff;
}

.product-hero__excerpt {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.12rem;
}

.product-hero__excerpt > :last-child {
	margin-bottom: 0;
}

.product-hero .zdtp-actions {
	justify-content: flex-start;
	margin-top: 28px;
}

.product-hero .zdtp-btn--outline {
	color: #fff;
}

.product-hero .zdtp-btn--outline:hover {
	border-color: #fff;
	background: #fff;
	color: var(--zdtp-primary-text);
}

.zdtp-browser {
	overflow: hidden;
	border-radius: var(--zdtp-radius-lg);
	background: #fff;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
	transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
	transition: transform 0.6s var(--zdtp-ease);
}

.zdtp-browser:hover {
	transform: none;
}

.zdtp-browser__bar {
	display: flex;
	gap: 6px;
	padding: 12px 14px;
	background: #f1eff3;
}

.zdtp-browser__bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d9d4dc;
}

.zdtp-browser__bar span:first-child {
	background: #ff5f57;
}

.zdtp-browser__bar span:nth-child(2) {
	background: #febc2e;
}

.zdtp-browser__bar span:nth-child(3) {
	background: #28c840;
}

.zdtp-browser img {
	display: block;
	width: 100%;
}

@media (max-width: 960px) {
	.product-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.zdtp-browser {
		transform: none;
	}
}

.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.product-layout .entry-content > * {
	max-width: none;
}

.product-sidebar {
	position: sticky;
	top: calc(var(--zdtp-header-h) + 24px);
	display: grid;
	gap: 20px;
}

@media (max-width: 960px) {
	.product-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.product-sidebar {
		position: static;
		order: -1;
	}
}

.zdtp-panel {
	padding: 26px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius-lg);
	background: var(--zdtp-surface);
	box-shadow: var(--zdtp-shadow-sm);
}

.zdtp-panel__title {
	margin: 0 0 16px;
	font-family: var(--zdtp-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.purchase-box {
	border-color: color-mix(in srgb, var(--zdtp-primary) 30%, var(--zdtp-border));
	box-shadow: var(--zdtp-shadow);
}

.purchase-box__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.purchase-box__price del {
	color: var(--zdtp-muted);
	font-size: 1.1rem;
	font-weight: 600;
}

.purchase-box .edd_download_purchase_form,
.purchase-box .edd_purchase_submit_wrapper {
	margin: 0;
}

.purchase-box .edd-submit,
.purchase-box .zdtp-btn {
	width: 100%;
}

.purchase-box .zdtp-actions {
	flex-direction: column;
	margin-top: 12px;
}

.purchase-box .edd_price_options ul {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.purchase-box .edd_price_options li {
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid var(--zdtp-border);
	border-radius: 8px;
}

.purchase-box__note {
	margin: 14px 0 0;
	color: var(--zdtp-muted);
	font-size: 0.85rem;
	text-align: center;
}

.zdtp-summary {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zdtp-summary li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px dashed var(--zdtp-border);
	font-size: 0.92rem;
}

.zdtp-summary li:last-child {
	border-bottom: 0;
}

.zdtp-summary span {
	color: var(--zdtp-muted);
}

.zdtp-summary strong {
	text-align: end;
}

.zdtp-requirements {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zdtp-requirements li {
	display: flex;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 0.92rem;
}

.zdtp-requirements svg {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--zdtp-primary-text);
}

.zdtp-store-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.purchase-box .zdtp-store-buttons {
	margin-top: 14px;
}

.zdtp-store-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 14px;
	border-radius: 8px;
	background: #111;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	color: #fff;
	line-height: 1.15;
	text-decoration: none;
	transition: transform 0.25s var(--zdtp-ease);
}

.zdtp-store-button:hover,
.zdtp-store-button:focus {
	color: #fff;
	transform: translateY(-2px);
}

.zdtp-store-button svg {
	width: 22px;
	height: 22px;
}

.zdtp-store-button small {
	display: block;
	font-size: 0.68rem;
	opacity: 0.8;
}

.zdtp-store-button strong {
	font-size: 1rem;
}

/* Product gallery (scroll-snap slider). */
.product-gallery {
	position: relative;
	margin-bottom: 40px;
}

.product-gallery__track {
	display: grid;
	grid-auto-columns: 100%;
	grid-auto-flow: column;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--zdtp-radius-lg);
}

.product-gallery__track::-webkit-scrollbar {
	display: none;
}

.product-gallery__track figure {
	margin: 0;
	scroll-snap-align: start;
}

.product-gallery__track img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--zdtp-radius-lg);
}

.product-gallery__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.product-gallery__nav button {
	width: 10px;
	min-height: 10px;
	height: 10px;
	padding: 0;
	border-radius: 999px;
	background: var(--zdtp-border);
	box-shadow: none;
}

.product-gallery__nav button[aria-current="true"] {
	width: 28px;
	background: var(--zdtp-primary);
	transform: none;
}

.product-related {
	padding-block: clamp(56px, 7vw, 96px);
	background: var(--zdtp-bg-alt);
}

/* Fallback product cards (theme, when the Zen Dev Tools Core plugin is inactive). */
.product-tile__price {
	font-weight: 800;
}

/*
 * EDD colours its buttons with classes like .blue (Downloads > Settings >
 * Styles). Same specificity, loaded later, so the theme colours win.
 */
.edd-submit.button:is(.blue, .red, .green, .orange, .gray, .dark-gray, .yellow, .white, .inherit) {
	border-color: transparent;
	background: var(--zdtp-primary);
	color: #fff;
}

.edd-submit.button:is(.blue, .red, .green, .orange, .gray, .dark-gray, .yellow, .white, .inherit):is(:hover, :focus, .active) {
	border-color: transparent;
	background: var(--zdtp-primary-dark);
	color: #fff;
}

/* EDD checkout: borders, header row and icons follow the theme (and dark mode). */
body {
	--edd-blocks-light-grey: var(--zdtp-border);
}

#edd_checkout_cart :is(td, th) {
	border-color: var(--zdtp-border);
	color: inherit;
}

#edd_checkout_cart .edd_cart_header_row th {
	background: var(--zdtp-bg-alt);
}

.edd-blocks-cart__action-remove,
.edd_discount_remove {
	filter: var(--zdtp-icon-filter);
}

/* EDD forms and notices. */
.edd-alert,
.edd_errors {
	padding: 14px 18px;
	border-radius: 8px;
}

#edd_checkout_form_wrap fieldset {
	padding: 24px;
	border: 1px solid var(--zdtp-border);
	border-radius: var(--zdtp-radius);
}

#edd_checkout_cart {
	border-radius: var(--zdtp-radius);
}

/* ==========================================================================
   16. WordPress core classes
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0.3em 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.6em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	clear: both;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.4em;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	margin-top: 0.6em;
	color: var(--zdtp-muted);
	font-size: 0.875rem;
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(var(--zdtp-gallery-cols, 3), 1fr);
	gap: 12px;
	margin-bottom: 1.4em;
}

.gallery-columns-2 { --zdtp-gallery-cols: 2; }
.gallery-columns-4 { --zdtp-gallery-cols: 4; }
.gallery-columns-5 { --zdtp-gallery-cols: 5; }

.gallery-item {
	margin: 0;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

.entry-content::after,
.comment-content::after {
	content: "";
	display: table;
	clear: both;
}

.page-links {
	clear: both;
	margin: 2em 0;
	font-weight: 600;
}

/* ==========================================================================
   17. Scroll animations
   Elements with data-zdtp-animate start hidden only once JavaScript has
   confirmed it is running (html.zdtp-js), and are revealed as they scroll
   into view. If the script never starts, they appear after a short delay.
   ========================================================================== */
.zdtp-js [data-zdtp-animate] {
	opacity: 0;
	transition: opacity 0.8s var(--zdtp-ease), transform 0.8s var(--zdtp-ease);
	transition-delay: var(--zdtp-delay, 0s);
}

.zdtp-js [data-zdtp-animate="fade-up"] { transform: translateY(32px); }
.zdtp-js [data-zdtp-animate="fade-down"] { transform: translateY(-32px); }
.zdtp-js [data-zdtp-animate="fade-left"] { transform: translateX(40px); }
.zdtp-js [data-zdtp-animate="fade-right"] { transform: translateX(-40px); }
.zdtp-js [data-zdtp-animate="zoom-in"] { transform: scale(0.92); }
.zdtp-js [data-zdtp-animate="none"] { opacity: 1; transform: none; }

.zdtp-js [data-zdtp-animate].is-inview {
	opacity: 1;
	transform: none;
}

.zdtp-js:not(.zdtp-reveal-ready) [data-zdtp-animate] {
	animation: zdtp-reveal-fallback 0.6s 2.5s forwards;
}

@keyframes zdtp-reveal-fallback {
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.zdtp-js [data-zdtp-animate] {
		opacity: 1;
		transform: none;
	}
}
