/*
 * Zestly main stylesheet.
 * Colors, fonts and sizes come from theme.json presets (--wp--preset--*), so the
 * Customizer and the block editor change them in one place.
 */

/* Base ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	/* clip, not hidden: hidden would turn body into a scroll box and break the sticky header. */
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

/* Text for screen readers only; the skip link shows when it gets keyboard focus. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.85rem 1.25rem;
	clip: auto !important;
	clip-path: none;
	border-radius: 6px;
	background-color: var(--wp--preset--color--base, #fff);
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary, #e5532d);
	color: var(--wp--preset--color--secondary, #17222d);
	font-size: 1rem;
	font-weight: 600;
	line-height: normal;
	text-decoration: none;
}

::selection {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
	color: inherit;
}

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

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--wp--preset--color--secondary);
	text-decoration-thickness: 2px;
}

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

/* The skip link target takes the focus; no ring around the whole content. */
#primary:focus {
	outline: 0;
}

/*
 * The zest line: a short rule in the primary color that marks labels (eyebrows),
 * the current menu item and hovered links. It is the theme's one recurring detail.
 */
:root {
	--zestly-line: 1.5rem;
	--zestly-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--zestly-radius: 14px;
	--zestly-hairline: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.zestly-eyebrow,
.entry-content p[style*="text-transform:uppercase"] {
	letter-spacing: 0.14em;
}

/* Inline, so the label still follows the text alignment of its block. */
.zestly-eyebrow:not(.elementor-widget)::before,
.elementor-widget.zestly-eyebrow p::before,
.entry-content p[style*="text-transform:uppercase"]::before {
	content: "";
	display: inline-block;
	width: var(--zestly-line);
	height: 2px;
	margin-right: 0.75em;
	vertical-align: 0.3em;
	background: currentColor;
	border-radius: 2px;
}

/* Containers ------------------------------------------------------------- */

.zestly-container {
	width: 100%;
	max-width: var(--zestly-container, 1200px);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

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

.zestly-content__inner {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* Contained: readable text column, wide blocks may break out. */
.zestly-content--contained .site-main {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
}

.zestly-content--contained .site-main .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: calc((var(--wp--style--global--content-size, 760px) - min(var(--wp--style--global--wide-size, 1200px), 100vw - 2.5rem)) / 2);
}

.zestly-content--contained .site-main .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* Sidebar layout. minmax(0, …) on every width: a long word or a wide embed never widens a column. */
.zestly-content--sidebar .zestly-content__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
}

.zestly-sidebar {
	min-width: 0;
}

@media (min-width: 992px) {
	.zestly-content--sidebar .zestly-content__inner {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* Full width: the page builder owns the whole width. */
.zestly-content--full-width .site-main {
	width: 100%;
}

/* Builder pages and canvas: no theme spacing around the builder output. */
.zestly-builder-page .entry-content > *:first-child {
	margin-top: 0;
}

/* Header ------------------------------------------------------------------ */

.zestly-header {
	position: relative;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.zestly-sticky-header .zestly-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.zestly-scrolled .zestly-sticky-header .zestly-header {
	background: color-mix(in srgb, var(--wp--preset--color--base) 86%, transparent);
	border-bottom-color: var(--zestly-hairline);
	box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.25);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}

.zestly-header-row--main .zestly-row__inner {
	transition: min-height 0.35s var(--zestly-ease);
}

.zestly-scrolled .zestly-sticky-header .zestly-header-row--main .zestly-row__inner {
	min-height: 64px;
}

.zestly-header .custom-logo {
	transition: max-height 0.35s var(--zestly-ease);
}

.zestly-scrolled .zestly-sticky-header .zestly-header .custom-logo {
	max-height: 44px;
}

@media (max-width: 600px) {
	/* The admin bar is not fixed on phones. */
	.admin-bar.zestly-sticky-header .zestly-header {
		top: 0;
	}
}

.zestly-row__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.zestly-row--no-center .zestly-row__inner {
	grid-template-columns: auto 1fr;
}

.zestly-header-row--main .zestly-row__inner {
	min-height: 80px;
}

.zestly-zone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	min-width: 0;
}

/* Items may shrink below their content width, so long words wrap instead of widening the row. */
.zestly-el {
	min-width: 0;
	max-width: 100%;
}

.zestly-zone--right {
	justify-content: flex-end;
}

.zestly-header__mobile {
	display: none;
}

@media (max-width: 1023.98px) {
	.zestly-header__desktop {
		display: none;
	}

	.zestly-header__mobile {
		display: block;
	}

	.zestly-header-row--main .zestly-row__inner {
		min-height: 64px;
	}
}

/* Logo. */
.zestly-site-title {
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	font-weight: 750;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.zestly-site-title:hover {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
}

.zestly-site-tagline {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

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

.zestly-brand {
	/* Block-level, so no text line box adds space under the image. */
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.zestly-brand:hover {
	text-decoration: none;
}

.zestly-brand--title .custom-logo {
	max-height: 40px;
}

.zestly-footer .zestly-brand--title .custom-logo {
	max-height: 48px;
}

/* Menus. */
.zestly-menu,
.zestly-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zestly-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
}

.zestly-menu li {
	position: relative;
	display: flex;
	align-items: center;
}

.zestly-menu a {
	position: relative;
	display: block;
	padding: 0.5rem 0;
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.zestly-menu a:hover,
.zestly-menu .current-menu-item > a,
.zestly-menu .current-menu-ancestor > a {
	color: var(--wp--preset--color--secondary);
}

/* The zest line under the current and hovered item (desktop menus only). */
.zestly-nav:not(.zestly-nav--vertical) .zestly-menu > li > a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.15rem;
	left: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--zestly-ease);
}

.zestly-nav:not(.zestly-nav--vertical) .zestly-menu > li > a:hover::after,
.zestly-nav:not(.zestly-nav--vertical) .zestly-menu > .current-menu-item > a::after,
.zestly-nav:not(.zestly-nav--vertical) .zestly-menu > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.zestly-submenu-toggle {
	display: inline-flex;
	margin-left: 0.25rem;
	padding: 0.25rem;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

/* Desktop dropdowns. */
.zestly-nav:not(.zestly-nav--vertical) .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 10;
	min-width: 230px;
	padding: 0.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--zestly-hairline);
	border-radius: 12px;
	box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	/* Visible at once when opening (so Tab can enter right away), hidden only after the fade when closing. */
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.zestly-nav:not(.zestly-nav--vertical) .sub-menu .sub-menu {
	top: -0.5rem;
	left: 100%;
}

.zestly-nav:not(.zestly-nav--vertical) .sub-menu a {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
}

.zestly-nav:not(.zestly-nav--vertical) .sub-menu a:hover {
	background: var(--wp--preset--color--surface);
}

.zestly-nav:not(.zestly-nav--vertical) .sub-menu li {
	display: flex;
	justify-content: space-between;
}

.zestly-nav:not(.zestly-nav--vertical) li:hover > .sub-menu,
.zestly-nav:not(.zestly-nav--vertical) li:focus-within > .sub-menu,
.zestly-nav:not(.zestly-nav--vertical) li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* Closed with its button or Escape: stays closed while the focus is still inside. */
.zestly-nav:not(.zestly-nav--vertical) li.is-closed > .sub-menu {
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
}

/* Vertical menu (drawer). */
.zestly-nav--vertical .zestly-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.zestly-nav--vertical .zestly-menu li {
	flex-wrap: wrap;
	justify-content: space-between;
	border-bottom: 1px solid rgb(0 0 0 / 0.07);
}

.zestly-nav--vertical .zestly-menu a {
	flex: 1;
	padding: 0.85rem 0;
}

.zestly-nav--vertical .sub-menu {
	display: none;
	flex-basis: 100%;
	padding-left: 1rem;
}

.zestly-nav--vertical li.is-open > .sub-menu,
.zestly-nav--vertical li:focus-within > .sub-menu {
	display: block;
}

.zestly-nav--vertical li.is-closed > .sub-menu {
	display: none;
}

.zestly-nav--vertical .sub-menu li:last-child {
	border-bottom: 0;
}

.menu-item-has-children.is-open > .zestly-submenu-toggle svg {
	transform: rotate(180deg);
}

/* Buttons and icon buttons. */
.zestly-button,
.search-submit,
input[type="submit"],
button[type="submit"]:not(.zestly-icon-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 0.75rem 1.35rem;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	border-radius: var(--zestly-button-radius, 10px);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s var(--zestly-ease);
}

.zestly-button:active,
.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY(1px);
}

.zestly-button:hover,
.search-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.zestly-icon-button):hover {
	background: var(--wp--preset--color--secondary);
	color: #fff;
}

.zestly-icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.zestly-icon-button:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--secondary);
}

.zestly-icon {
	display: block;
	flex: none;
}

/* Search panel. */
.zestly-el--search {
	position: relative;
}

.zestly-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: min(400px, 92vw);
	padding: 0.75rem;
	background: var(--wp--preset--color--base);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	border-radius: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: 0;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent);
}

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

/* Closes the search box (added by navigation.js); the form takes the rest of the row. */
.zestly-search-panel .search-form {
	flex: 1;
	min-width: 0;
}

.zestly-search-panel__close {
	display: inline-flex;
	flex: none;
	padding: 0.5rem;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.zestly-search-panel__close:hover {
	background: var(--wp--preset--color--surface);
}

.zestly-placeholder {
	padding: 0.2rem 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	border: 1px dashed currentColor;
	border-radius: 4px;
}

/* Mobile drawer ----------------------------------------------------------- */

.zestly-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.zestly-drawer[hidden] {
	display: none;
}

.zestly-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(10 14 20 / 0.5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: zestly-fade-in 0.3s ease-out;
}

@keyframes zestly-fade-in {
	from {
		opacity: 0;
	}
}

.zestly-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: min(360px, 88vw);
	padding: 4rem 1.5rem 2rem;
	overflow-y: auto;
	background: var(--wp--preset--color--base);
	animation: zestly-drawer-in 0.4s var(--zestly-ease);
}

.zestly-drawer__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: inline-flex;
	padding: 0.5rem;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.zestly-drawer-open,
.zestly-drawer-open body {
	overflow: hidden;
}

@keyframes zestly-drawer-in {
	from {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zestly-drawer__panel,
	.zestly-drawer__backdrop {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Content ----------------------------------------------------------------- */

/* Long titles, URLs and unbroken words wrap instead of widening the page. */
body,
.entry-title,
.page-title,
.entry-content,
.entry-summary,
.comment-content,
.widget,
.zestly-site-title,
.zestly-menu a {
	overflow-wrap: break-word;
}

.entry-content,
.entry-summary,
.comment-content,
.widget {
	min-width: 0;
}

/* Floated images, galleries and embeds stay inside the content and never push the sidebar down. */
.site-main {
	min-width: 0;
}

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

.entry-footer,
.post-navigation,
.comments-area,
.page-links {
	clear: both;
}

iframe,
embed,
object,
.wp-video,
.wp-video-shortcode,
.wp-block-embed,
.wp-block-embed__wrapper,
.gallery,
.wp-block-gallery,
table,
pre {
	max-width: 100%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(var(--zestly-gallery-cols, 3), minmax(0, 1fr));
	gap: 1rem;
	margin-block: 1.5rem;
}

.gallery-columns-1 { --zestly-gallery-cols: 1; }
.gallery-columns-2 { --zestly-gallery-cols: 2; }
.gallery-columns-4 { --zestly-gallery-cols: 4; }
.gallery-columns-5 { --zestly-gallery-cols: 5; }
.gallery-columns-6 { --zestly-gallery-cols: 6; }
.gallery-columns-7 { --zestly-gallery-cols: 7; }
.gallery-columns-8 { --zestly-gallery-cols: 8; }
.gallery-columns-9 { --zestly-gallery-cols: 9; }

.gallery-item {
	margin: 0;
	min-width: 0;
}

.gallery-item img {
	display: block;
	width: 100%;
}

@media (max-width: 599.98px) {
	.gallery {
		grid-template-columns: repeat(min(var(--zestly-gallery-cols, 3), 2), minmax(0, 1fr));
	}
}

pre {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

td,
th {
	overflow-wrap: anywhere;
}

@media (max-width: 599.98px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: auto;
	}
}

.page-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-title,
.entry-title {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.entry-meta,
.entry-footer {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.entry-meta a,
.entry-footer a {
	color: inherit;
}

/* Single posts: an editorial header and a comfortable reading measure. */
.single .entry-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
	border-bottom: 1px solid var(--zestly-hairline);
}

.single .entry-content,
.single .entry-header,
.single .entry-footer,
.single .post-navigation,
.single .comments-area {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-inline: auto;
}

.single .entry-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.single .entry-content > * + * {
	margin-top: 1.25em;
}

.single .entry-content h2,
.single .entry-content h3 {
	margin-top: 2em;
}

.single .post-thumbnail {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.entry-content blockquote,
.wp-block-quote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: 1.25em;
	line-height: 1.5;
}

.wp-block-quote cite,
.entry-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

.entry-content code,
.entry-content pre {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
}

.entry-content :not(pre) > code {
	padding: 0.15em 0.4em;
	background: var(--wp--preset--color--surface);
	border-radius: 6px;
}

.entry-content pre {
	padding: 1.25rem 1.5rem;
	overflow-x: auto;
	background: var(--wp--preset--color--secondary);
	color: #f1f3f5;
	border-radius: var(--zestly-radius);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 2rem;
}

.byline {
	margin-left: 0.35rem;
}

.post-thumbnail {
	display: block;
	margin: 1.5rem 0;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--zestly-radius);
}

/* Post cards. */
.zestly-posts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.zestly-card,
.zestly-card__body {
	min-width: 0;
}

/* Lists of posts use the wide width; the text column is for reading single posts. */
body:not(.single):not(.page) .zestly-content--contained .site-main {
	max-width: var(--wp--style--global--wide-size, 1200px);
}

@media (min-width: 700px) {
	.zestly-layout-contained .zestly-posts,
	.zestly-layout-full-width .zestly-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.zestly-layout-contained .zestly-posts,
	.zestly-layout-full-width .zestly-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Cards: no box, the image and a hairline carry the structure. */
.zestly-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.zestly-card .post-thumbnail {
	margin: 0;
	overflow: hidden;
	border-radius: var(--zestly-radius);
}

.zestly-card .post-thumbnail img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.8s var(--zestly-ease);
}

.zestly-card:hover .post-thumbnail img {
	transform: scale(1.04);
}

.zestly-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--zestly-hairline);
}

.zestly-card .entry-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.zestly-card .entry-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size 0.45s var(--zestly-ease);
}

.zestly-card .entry-title a:hover,
.zestly-card:focus-within .entry-title a {
	color: inherit;
	background-size: 100% 2px;
}

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

.zestly-card .entry-meta,
.zestly-card .entry-summary {
	position: relative;
}

.entry-summary p {
	margin-bottom: 0;
}

/* Pagination and post navigation. */
.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--zestly-hairline);
	border-radius: 10px;
	text-decoration: none;
}

.pagination .page-numbers:hover {
	border-color: var(--wp--preset--color--secondary);
}

.pagination .page-numbers.current {
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border-color: var(--wp--preset--color--secondary);
}

/* Previous / next post: two quiet panels. */
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.post-navigation .nav-links a {
	display: block;
	height: 100%;
	padding: 1.25rem 1.5rem;
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--zestly-hairline);
	border-radius: var(--zestly-radius);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.post-navigation .nav-links a:hover {
	background: var(--wp--preset--color--surface);
	border-color: transparent;
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-subtitle {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* 404. */
.error-404__code {
	margin: 0;
	color: var(--wp--preset--color--secondary);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 750;
	letter-spacing: -0.06em;
	line-height: 0.9;
}

/* Sidebar and widgets. */
.widget {
	margin-bottom: 2rem;
}

.widget-title,
.widget h2,
.widget .wp-block-heading,
.widget .wp-block-search__label {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.3;
}

.widget ul,
.widget ol {
	padding-left: 1.1rem;
}

/* Block widgets: plain lists, not the large post cards used in content. */
.widget .wp-block-latest-posts,
.widget .wp-block-latest-comments,
.widget .wp-block-archives,
.widget .wp-block-categories {
	padding-left: 0;
	list-style: none;
}

.widget .wp-block-latest-posts li,
.widget .wp-block-latest-comments li,
.widget .wp-block-archives li,
.widget .wp-block-categories li {
	margin: 0;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgb(0 0 0 / 0.07);
}

.widget .wp-block-latest-posts__post-title {
	display: inline;
	color: var(--wp--preset--color--contrast);
	font-size: inherit;
	font-weight: 500;
	text-decoration: none;
}

.widget .wp-block-latest-posts__post-title:hover {
	color: var(--wp--preset--color--primary);
}

.widget .wp-block-latest-comments__comment {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.5rem;
}

.widget .wp-block-search__button {
	margin: 0;
	padding: 0.6rem 1rem;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.zestly-footer .widget h2,
.zestly-footer .widget .wp-block-heading,
.zestly-footer .widget .wp-block-latest-posts__post-title {
	color: #fff;
}

.zestly-footer .widget li {
	border-color: rgb(255 255 255 / 0.12);
}

/* Comments. */
.comments-area {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--zestly-hairline);
}

.comments-title,
.comment-reply-title {
	font-size: var(--wp--preset--font-size--large);
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--surface);
	border-radius: var(--zestly-radius);
}

.comment-meta {
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

.comment-meta a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.comment-author .fn,
.comment-author .fn a {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
}

.comment-author .avatar {
	float: left;
	margin-right: 0.75rem;
	border-radius: 50%;
}

/* Footer ------------------------------------------------------------------ */

.zestly-footer {
	margin-top: auto;
	background: var(--wp--preset--color--secondary);
	color: rgb(255 255 255 / 0.72);
	font-size: 0.9375rem;
}

.zestly-footer a {
	color: #fff;
	text-decoration: none;
}

.zestly-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary);
	text-decoration-thickness: 2px;
}

.zestly-footer .zestly-site-title {
	color: #fff;
	font-size: 1.75rem;
}

.zestly-footer .widget-title {
	color: #fff;
}

.zestly-footer .zestly-row__inner {
	grid-template-columns: repeat(var(--zestly-cols, 1), minmax(0, 1fr));
	align-items: start;
	gap: 2rem;
}

.zestly-footer-row--main {
	padding-block: clamp(3rem, 8vw, 5.5rem);
}

.zestly-footer-row--main + .zestly-footer-row--bottom {
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.zestly-footer-row--bottom {
	padding-block: 1.5rem;
	color: rgb(255 255 255 / 0.55);
	font-size: 0.8125rem;
}

.zestly-footer-row--bottom .zestly-row__inner {
	align-items: center;
}

.zestly-footer-row--bottom .zestly-zone:last-child:not(:first-child) {
	justify-content: flex-end;
}

.zestly-footer .zestly-zone {
	flex-direction: column;
	align-items: stretch;
}

.zestly-footer-row--bottom .zestly-zone {
	flex-direction: row;
	align-items: center;
}

.zestly-footer .zestly-menu a {
	color: inherit;
}

.zestly-copyright {
	margin: 0;
}

@media (max-width: 767.98px) {
	.zestly-footer .zestly-row__inner {
		grid-template-columns: 1fr;
	}

	.zestly-footer-row--bottom .zestly-zone:last-child:not(:first-child) {
		justify-content: flex-start;
	}
}

/* Core blocks ------------------------------------------------------------------ */

.wp-block-details {
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--zestly-hairline);
}

.wp-block-details + .wp-block-details {
	margin-top: 0;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary {
	color: var(--wp--preset--color--secondary);
	font-size: 1.0625rem;
}

.wp-block-details summary::after {
	content: "+";
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--secondary);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	border: 1px solid var(--zestly-hairline);
	border-radius: 50%;
	transition: transform 0.35s var(--zestly-ease), background-color 0.25s ease, color 0.25s ease;
}

.wp-block-details[open] summary::after {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: transparent;
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--muted);
}

.wp-block-details > :not(summary) {
	margin-bottom: 0;
}

.wp-block-latest-posts.is-grid,
.wp-block-latest-posts.is-layout-grid {
	gap: 1.5rem;
	padding: 0;
}

.wp-block-latest-posts.is-layout-grid li,
.wp-block-latest-posts.is-grid li {
	margin: 0;
}

.wp-block-latest-posts__featured-image {
	margin: 0 0 1.1rem;
	overflow: hidden;
	border-radius: var(--zestly-radius);
}

.wp-block-latest-posts__featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.8s var(--zestly-ease);
}

.wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img {
	transform: scale(1.04);
}

.wp-block-latest-posts__post-title {
	display: block;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.wp-block-latest-posts__post-date {
	margin-top: 0.35rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-latest-posts__post-excerpt {
	margin-block: 0.75rem 1.25rem;
}

@media (max-width: 781px) {
	.wp-block-latest-posts.is-grid li {
		width: 100%;
	}
}

/* Elementor: text widgets sit in flex gaps, so their last paragraph needs no margin. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor p:first-child {
	margin-top: 0;
}

/* WordPress core classes. */
.sticky .entry-title::before {
	content: "★ ";
	color: var(--wp--preset--color--accent);
}

.bypostauthor > .comment-body .fn::after {
	content: " ✓";
	color: var(--wp--preset--color--primary);
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

/* Block styles registered in inc/setup.php. */
.wp-block-group.is-style-zestly-card,
.wp-block-column.is-style-zestly-card {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--zestly-hairline);
	border-radius: 18px;
	transition: border-color 0.3s ease, transform 0.4s var(--zestly-ease);
}

.wp-block-group.is-style-zestly-card:hover,
.wp-block-column.is-style-zestly-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
}

.wp-block-button.is-style-zestly-pill .wp-block-button__link {
	border-radius: 999px;
}

/* Block alignment helpers outside contained pages. */
.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

/* Motion ---------------------------------------------------------------------
 * Set by assets/js/motion.js only (content is never hidden without JavaScript),
 * and never for visitors who prefer reduced motion.
 */
.zestly-reveal {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition:
		opacity 0.7s var(--zestly-ease) var(--zestly-delay, 0ms),
		transform 0.9s var(--zestly-ease) var(--zestly-delay, 0ms);
}

.zestly-reveal--media {
	transform: scale(0.97);
	transform-origin: 50% 100%;
}

.zestly-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.zestly-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.zestly-header,
	.zestly-card .post-thumbnail img,
	.wp-block-latest-posts__featured-image img {
		transition: none;
	}
}

@media print {
	.zestly-reveal {
		opacity: 1;
		transform: none;
	}
}

/* Archive label above the archive name. */
.zestly-archive-label {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--primary);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Line height that tightens as text grows: about 1.6 for body text, 1.4 for lead text. */
p.has-large-font-size,
p.has-x-large-font-size {
	line-height: calc(1em + 0.7rem);
}

/* Footer columns ------------------------------------------------------------------ */

.zestly-footer .zestly-zone {
	gap: 1rem;
}

.zestly-footer .zestly-nav .zestly-menu > li > a::after {
	display: none;
}

.zestly-footer .zestly-menu a:hover,
.zestly-footer .zestly-menu .current-menu-item > a {
	color: #fff;
}

.zestly-footer {
	font-size: 0.9375rem;
}

/* Bottom bar. */
.zestly-footer-row--bottom .zestly-zone {
	gap: 0.75rem 1.25rem;
}
