/*!
 * Syder theme styles - standard (non-cover) templates: site chrome, archive
 * grid, single posts, prose, pagination, search and 404.
 */

:root {
	--syder-maxw: 1240px;
	--syder-gutter: clamp(1.25rem, 4vw, 3rem);
	--syder-header-height: 74px;
}

/* --- Global Typography Options ---------------------------------------- */

:is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-heading);
	color: var(--syder-headings-color, inherit);
	font-weight: var(--syder-headings-weight, inherit);
}

h1, .h1 { font-size: var(--syder-h1-size, 2.5rem); }
h2, .h2 { font-size: var(--syder-h2-size, 2rem); }
h3, .h3 { font-size: var(--syder-h3-size, 1.75rem); }
h4, .h4 { font-size: var(--syder-h4-size, 1.5rem); }
h5, .h5 { font-size: var(--syder-h5-size, 1.25rem); }
h6, .h6 { font-size: var(--syder-h6-size, 1rem); }

p {
	font-family: var(--font-body);
	font-size: var(--syder-p-size, inherit);
	font-weight: var(--syder-p-weight, inherit);
	color: var(--syder-p-color, inherit);
}

li {
	font-family: var(--font-body);
}

a {
	font-family: var(--font-link);
	font-weight: var(--syder-link-weight, inherit);
}

button,
input,
select,
textarea,
input[type="submit"],
[name="submit"],
.button,
.wp-block-button__link,
.page-actions a,
.post-nav a {
	font-family: var(--font-button);
}

.site-header,
.syder-menu,
.syder-nav-menu,
.frame,
.preview__column-title,
.syder-meta-label,
.work-card__meta,
.item__meta,
.syder-breadcrumbs,
.syder-pagination {
	font-family: var(--font-meta);
}

.site-title,
.work-card__title,
.item__title,
.preview__title,
.work-single__title,
.page-title,
.entry-title,
.syder-blog-loop__title,
.syder-single-related__title {
	font-family: var(--font-card);
}

.syder-menu a,
.syder-nav-menu a {
	font-family: var(--font-nav);
}
/* --- Site chrome ------------------------------------------------------ */

.site-header {
	min-height: var(--syder-header-height);
	padding: 0 var(--syder-gutter);
	border-bottom: var(--syder-border);
	background: color-mix(in srgb, var(--color-bg) 92%, #fff);
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	text-transform: none;
}

.site-header__inner,
.site-footer__inner {
	max-width: var(--syder-maxw);
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-title {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 300;
	color: var(--color-text);
	letter-spacing: 0.02em;
	line-height: 1;
}

.site-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.site-header .custom-logo {
	max-height: 44px;
	width: auto;
	display: block;
}

.syder-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.syder-menu a {
	position: relative;
	color: var(--color-text);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	transition: color 0.25s ease;
}

.syder-menu a:hover {
	color: var(--color-frame-alt);
}

.syder-menu .current-menu-item > a,
.syder-menu .current_page_item > a {
	color: var(--color-frame-alt);
}

/* --- AJAX Page Transitions -------------------------------------------- */

body.syder-ajax-loading::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--color-frame-alt);
	z-index: 9999;
	transform: translateX(-100%);
	animation: syder-ajax-progress 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes syder-ajax-progress {
	0% {
		transform: translateX(-100%);
	}
	50% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(100%);
	}
}

.syder-ajax-loading :is(.site-main, .syder-layout) {
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

/* --- Layout ----------------------------------------------------------- */

.site-main {
	min-height: 55vh;
	width: 100%;
	max-width: var(--syder-maxw);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 5.5rem) var(--syder-gutter);
}

.syder-layout {
	max-width: var(--syder-maxw);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 5.5rem) var(--syder-gutter);
	display: grid;
	gap: 3rem;
}

.site-main.has-sidebar,
.syder-layout.has-sidebar {
	grid-template-columns: var(--syder-sidebar-cols, minmax(0, 1fr) 300px);
	display: grid;
	gap: 3rem;
}

.widget-area {
	order: var(--syder-sidebar-order, 1);
}

.site-main.has-sidebar > .page-header {
	grid-column: 1 / -1;
	order: -2;
}

.syder-layout .syder-cover-stage {
	padding: 0;
	min-height: auto;
}

/* --- Page Header & Archive --------------------------------------------- */

.page-header {
	margin-bottom: 2.5rem;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	white-space: normal;
}

.archive-description {
	max-width: 42rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--color-column-title);
	margin: 0;
}

.site-main > .entry {
	max-width: 46rem;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}

.work-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.work-card__img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	background: var(--color-bg-alt);
}

.work-card__img-inner {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: filter 0.35s ease, opacity 0.35s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card__img-inner,
.work-card:focus-within .work-card__img-inner,
.work-card.is-glass-hover .work-card__img-inner {
	transform: scale(1.04);
	filter: brightness(0.82) contrast(1.04);
}

.work-card__img::after {
	position: absolute;
	inset: 0;
	content: "";
	opacity: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.22)),
		rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px) saturate(1.1);
	-webkit-backdrop-filter: blur(8px) saturate(1.1);
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.work-card__eye {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	background: rgba(255, 255, 255, 0.18);
	color: var(--color-text-alt);
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.work-card__eye svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.work-card:hover .work-card__img::after,
.work-card:focus-within .work-card__img::after,
.work-card.is-glass-hover .work-card__img::after,
.work-card:hover .work-card__eye,
.work-card:focus-within .work-card__eye,
.work-card.is-glass-hover .work-card__eye {
	opacity: 1;
}

.work-card:hover .work-card__eye,
.work-card:focus-within .work-card__eye,
.work-card.is-glass-hover .work-card__eye {
	transform: translate(-50%, -50%) scale(1);
}

.work-card__meta {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-column-title);
	margin: 1rem 0 0.25rem;
}

.work-card__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	color: var(--color-text);
}

.work-card__desc {
	margin: 0;
	font-size: 0.925rem;
	line-height: 1.45;
	color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

/* --- Single Template -------------------------------------------------- */

.work-single__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 65vh;
	overflow: hidden;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	margin-bottom: 2.5rem;
}

.work-single__media-inner {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-single__header {
	margin-bottom: 2rem;
}

.work-single__meta {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-column-title);
}

.work-single__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2.15rem, 5vw, 3.5rem);
	line-height: 1.05;
	margin: 0.5rem 0 0;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	white-space: normal;
}

.work-single__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
	margin: 2.5rem 0;
	padding: 1.5rem 0;
	border-top: var(--syder-border);
	border-bottom: var(--syder-border);
}

.work-single__columns h3 {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-column-title);
	margin: 0 0 0.5rem;
	font-weight: 400;
}

.work-single__columns p {
	margin: 0;
	line-height: 1.4;
	font-size: 0.95rem;
}

/* --- Entry Content (Prose) -------------------------------------------- */

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: color-mix(in srgb, var(--color-text) 90%, transparent);
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.entry-content :is(h1, h2, h3, h4) {
	font-family: var(--font-display);
	font-weight: 300;
	color: var(--color-text);
	margin: 2.5rem 0 1rem;
	line-height: 1.2;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.85rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content a {
	color: var(--color-frame-alt);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.entry-content a:hover {
	color: var(--color-text);
}

.entry-content blockquote {
	margin: 2rem 0;
	padding-left: 1.5rem;
	border-left: calc(var(--syder-border-width) * 2) var(--syder-border-style) var(--color-frame-alt);
	font-family: var(--font-display);
	font-size: 1.2rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

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

/* --- Code Blocks ------------------------------------------------------ */

:where(.entry-content, .comment-content, .widget) :where(code, kbd, samp) {
	font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.92em;
}

:where(.entry-content, .comment-content, .widget) :where(:not(pre) > code, kbd, samp) {
	padding: 0.12em 0.38em;
	border: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
	border-radius: max(3px, calc(var(--syder-border-radius) * 0.5));
	background: color-mix(in srgb, var(--color-bg-alt) 9%, var(--color-bg));
	color: color-mix(in srgb, var(--color-text) 84%, var(--color-frame-alt));
	white-space: break-spaces;
}

:where(.entry-content, .comment-content, .widget) :where(pre, .wp-block-code, .wp-block-preformatted) {
	position: relative;
	margin: 2rem 0;
	padding: 1rem;
	border: 1px solid var(--syder-code-border);
	border-radius: max(6px, var(--syder-border-radius));
	background:
		linear-gradient(var(--syder-code-line) 1px, transparent 1px) 0 0 / 100% 1.65rem,
		var(--syder-code-bg);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
	color: var(--syder-code-text);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	tab-size: 2;
}

:where(.entry-content, .comment-content, .widget) .wp-block-code {
	padding: 0;
}

:where(.entry-content, .comment-content, .widget) :where(pre code, .wp-block-code code, .wp-block-preformatted) {
	display: block;
	min-width: max-content;
	padding: 0.15rem 0.25rem;
	background: transparent;
	border: 0;
	color: inherit;
	font-size: clamp(0.82rem, 1.5vw, 0.95rem);
	line-height: 1.65;
	white-space: pre;
}

:where(.entry-content, .comment-content, .widget) :where(pre[class*="language-"], code[class*="language-"]) {
	color: var(--syder-code-text);
	text-shadow: none;
}

:where(.entry-content, .comment-content, .widget) pre[class*="language-"]::before {
	position: sticky;
	top: 0;
	left: 100%;
	float: right;
	display: block;
	width: max-content;
	margin: -0.35rem -0.1rem 0.5rem 1rem;
	padding: 0.18rem 0.45rem;
	border: 1px solid var(--syder-code-border);
	border-radius: 999px;
	background: var(--syder-code-surface);
	color: var(--syder-code-muted);
	content: attr(class);
	font-family: var(--font-meta);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

:where(.entry-content, .comment-content, .widget) :where(.token.comment, .token.prolog, .token.doctype, .token.cdata, .hljs-comment, .hljs-quote) {
	color: var(--syder-code-muted);
	font-style: italic;
}

:where(.entry-content, .comment-content, .widget) :where(.token.punctuation, .hljs-punctuation) {
	color: color-mix(in srgb, var(--syder-code-text) 68%, transparent);
}

:where(.entry-content, .comment-content, .widget) :where(.token.property, .token.tag, .token.boolean, .token.constant, .token.symbol, .token.deleted, .hljs-tag, .hljs-name, .hljs-built_in, .hljs-deletion) {
	color: var(--syder-code-tag);
}

:where(.entry-content, .comment-content, .widget) :where(.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted, .hljs-string, .hljs-selector-tag, .hljs-selector-class, .hljs-selector-id, .hljs-addition) {
	color: var(--syder-code-string);
}

:where(.entry-content, .comment-content, .widget) :where(.token.operator, .token.entity, .token.url, .token.regex, .token.important, .hljs-operator, .hljs-regexp, .hljs-link) {
	color: var(--syder-code-operator);
}

:where(.entry-content, .comment-content, .widget) :where(.token.atrule, .token.attr-value, .token.keyword, .hljs-keyword, .hljs-meta, .hljs-doctag) {
	color: var(--syder-code-keyword);
}

:where(.entry-content, .comment-content, .widget) :where(.token.function, .token.class-name, .hljs-title, .hljs-title.function_, .hljs-title.class_) {
	color: var(--syder-code-function);
}

:where(.entry-content, .comment-content, .widget) :where(.token.number, .token.date, .hljs-number, .hljs-literal) {
	color: var(--syder-code-number);
}

:where(.entry-content, .comment-content, .widget) :where(.token.variable, .token.parameter, .token.interpolation, .hljs-variable, .hljs-params, .hljs-template-variable) {
	color: var(--syder-code-variable);
}

:where(.entry-content, .comment-content, .widget) :where(.token.bold, .hljs-strong) {
	font-weight: 700;
}

:where(.entry-content, .comment-content, .widget) :where(.token.italic, .hljs-emphasis) {
	font-style: italic;
}

:where(.entry-content, .comment-content, .widget) :where(.hljs-section, .hljs-attribute, .hljs-attr) {
	color: var(--syder-code-attr);
}

:where(.entry-content, .comment-content, .widget) :where(.hljs) {
	display: block;
	background: transparent;
	color: var(--syder-code-text);
}

/* --- Post Navigation -------------------------------------------------- */

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: var(--syder-border);
}

.post-nav a {
	font-family: var(--font-display);
	color: var(--color-text);
	transition: color 0.2s ease;
}

.post-nav a:hover {
	color: var(--color-frame-alt);
}

.syder-pagination,
.page-links {
	margin-top: 2.5rem;
	display: flex;
	gap: 0.65rem;
	flex-wrap: wrap;
	align-items: center;
}

.syder-pagination .page-numbers,
.page-links a,
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.45rem 0.75rem;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	color: var(--color-text);
	background: color-mix(in srgb, var(--color-bg) 92%, #fff);
}

.syder-pagination .current,
.page-links .current {
	background: var(--color-text);
	border-color: var(--color-text);
	color: var(--color-text-alt);
}

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

.site-footer {
	flex-shrink: 0;
	width: 100%;
	margin: 0;
	padding: 2.5rem var(--syder-gutter);
	border-top: var(--syder-border);
	background: color-mix(in srgb, var(--color-bg) 95%, #000);
}

.site-footer__inner {
	max-width: var(--syder-maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-footer__credit {
	margin: 0;
	font-size: 0.85rem;
	color: var(--color-column-title);
}

/* --- Widgets & Sidebar ------------------------------------------------ */

.widget-area {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.widget {
	font-size: 0.95rem;
}

.widget-title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 1.25rem;
	margin: 0 0 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.widget ul a {
	color: var(--color-text);
	transition: color 0.2s ease;
}

.widget ul a:hover {
	color: var(--color-frame-alt);
}

/* --- Sidebar style treatments ----------------------------------------- */
/* Driven by the Sidebar style (stacked/panel/rail) and Sidebar border     */
/* (border/no-border) options. Sidebar borders use a dedicated 1px hairline */
/* on var(--syder-border-color) so the toggle is visible by default and     */
/* honors the Border color setting regardless of the global border width.  */

/* Stacked: flat list with optional hairline dividers between widgets. */
.widget-area--stacked {
	gap: 0;
}

.widget-area--stacked .widget {
	padding: 1.75rem 0;
}

.widget-area--stacked .widget:first-child {
	padding-top: 0;
}

.widget-area--stacked .widget:last-child {
	padding-bottom: 0;
}

.widget-area--stacked.widget-area--border .widget + .widget {
	border-top: 1px solid var(--syder-border-color);
}

/* Panel: each widget is a surfaced card. */
.widget-area--panel .widget {
	background: var(--syder-sidebar-bg, var(--color-surface-strong));
	padding: 1.5rem;
	border-radius: var(--radius-md);
}

.widget-area--panel.widget-area--border .widget {
	border: 1px solid var(--syder-border-color);
}

/* Rail: the whole sidebar is one surfaced column. */
.widget-area--rail {
	background: var(--syder-sidebar-bg, var(--color-surface-strong));
	padding: 1.75rem;
	border-radius: var(--radius-md);
	gap: 1.75rem;
}

.widget-area--rail.widget-area--border {
	border: 1px solid var(--syder-border-color);
}

.widget-area--rail .widget {
	padding: 0;
}

/* --- Search & 404 ----------------------------------------------------- */

.error-404, .search-no-results {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto;
	padding: 4rem 0;
}

.page-actions {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"],
[name="submit"],
.page-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.65rem 1rem;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	color: var(--color-text);
	background: color-mix(in srgb, var(--color-bg) 90%, #fff);
	cursor: pointer;
	font-family: var(--font-button);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
[name="submit"]:hover,
.page-actions a:hover {
	border-color: var(--color-frame-alt);
	color: var(--color-frame-alt);
}

.error-404 .search-form,
.search .search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin: 1.5rem auto 0;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 0.75rem 1rem;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	font: inherit;
	background: var(--color-bg);
	color: var(--color-text);
}

.search-form button {
	padding-inline: 1.5rem;
}

/* --- Comments --------------------------------------------------------- */

.comments-area {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding-top: clamp(2rem, 5vw, 3rem);
	border-top: var(--syder-border);
}

.comments-area__header {
	max-width: 42rem;
	margin-bottom: 2rem;
}

.comments-area__eyebrow,
.comment-notes,
.logged-in-as {
	font-size: 0.85rem;
	color: var(--color-column-title);
}

.comments-title,
.comment-reply-title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.comments-area__intro {
	margin: 0;
	color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.comment-list {
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0 clamp(1rem, 4vw, 3rem);
	padding: 0;
	display: grid;
	gap: 1rem;
}

.syder-comment__body {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 1rem;
	padding: 1.25rem;
	border: var(--syder-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.syder-comment__avatar-img {
	border-radius: 50%;
	display: block;
}

.syder-comment__header {
	display: flex;
	gap: 0.5rem 0.85rem;
	flex-wrap: wrap;
	align-items: baseline;
	margin-bottom: 0.75rem;
}

.syder-comment__author {
	font-style: normal;
	font-weight: 600;
}

.syder-comment__author a,
.syder-comment__content a,
.comment-edit-link,
.comment-reply-link {
	color: var(--color-link);
}

.syder-comment__author a:hover,
.syder-comment__content a:hover,
.comment-edit-link:hover,
.comment-reply-link:hover {
	color: var(--color-link-hover);
}

.syder-comment__date,
.syder-comment__edit,
.syder-comment__reply {
	font-size: 0.82rem;
	color: var(--color-column-title);
}

.syder-comment__content > * {
	margin-top: 0;
	margin-bottom: 1rem;
}

.syder-comment__content > *:last-child {
	margin-bottom: 0;
}

.syder-comment-form {
	display: grid;
	gap: 1rem;
	max-width: 46rem;
}

.syder-comment-form p {
	margin: 0;
}

.syder-comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	color: var(--color-column-title);
}

.syder-comment-form input:not([type="submit"]),
.syder-comment-form textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: var(--syder-border);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--color-bg) 92%, #fff);
	color: var(--color-text);
}

.syder-comment-form__submit {
	justify-self: start;
}

/* --- WooCommerce ------------------------------------------------------ */

.syder-woocommerce .woocommerce-products-header,
.syder-woocommerce div.product {
	max-width: var(--syder-maxw);
}

.syder-woocommerce .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2rem;
	padding: 0;
}

.syder-woocommerce .products::before,
.syder-woocommerce .products::after {
	display: none;
}

.syder-woocommerce ul.products li.product {
	width: auto;
	margin: 0;
	padding: 1rem;
	border: var(--syder-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	box-shadow: var(--shadow-soft);
}

.syder-woocommerce ul.products li.product a img,
.syder-woocommerce div.product div.images img {
	border-radius: var(--radius-sm);
}

.syder-woocommerce .woocommerce-loop-product__title,
.syder-woocommerce div.product .product_title {
	font-family: var(--font-display);
	font-weight: 300;
	color: var(--color-text);
}

.syder-woocommerce .price {
	color: var(--color-frame-alt);
}

.syder-woocommerce .button,
.syder-woocommerce button.button,
.syder-woocommerce input.button {
	border-radius: var(--syder-border-radius);
	background: var(--color-text);
	color: var(--color-text-alt);
	font-weight: 400;
}

.syder-woocommerce .button:hover,
.syder-woocommerce button.button:hover,
.syder-woocommerce input.button:hover {
	background: var(--color-frame-alt);
	color: var(--color-text-alt);
}

/* --- Responsive Overrides --------------------------------------------- */

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

@media (max-width: 600px) {
	.page-title {
		font-size: 2rem;
	}
	.work-single__title {
		font-size: 2.1rem;
	}
	.site-header__inner,
	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.syder-menu {
		gap: 0.85rem;
	}
	.site-main,
	.syder-layout {
		padding-top: 1.5rem;
	}
	.error-404 .search-form,
	.search .search-form {
		flex-direction: column;
	}
	:root {
		--syder-header-height: 106px; /* Stacked header height for mobile */
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-main,
	.syder-layout,
	.syder-ajax-ready,
	.work-card,
	.work-single__header {
		transition: none;
	}

	body.syder-ajax-loading::before {
		animation: none;
		opacity: 0;
	}

	.syder-ajax-loading :is(.site-main, .syder-layout),
	.syder-ajax-exiting,
	.syder-ajax-entering {
		transform: none;
	}
}

/* --- Entrance reveal (page-enter.js) ---------------------------------- */
/* Pre-hidden initial states for templates that explicitly opt into the loader.
   Standard page/single views no longer depend on JS to become visible. */

html.js body.loading:not(.syder-cover) .work-single__media-inner,
html.js body.loading.syder-single-01 .preview__img-inner {
	transform: translateY(110%);
}

html.js body.loading:not(.syder-cover) .work-single__title,
html.js body.loading:not(.syder-cover) .page-title,
html.js body.loading.syder-single-01 .preview__title {
	opacity: 0;
}

html.js body.loading:not(.syder-cover) .work-single__header,
html.js body.loading:not(.syder-cover) .work-single__meta,
html.js body.loading:not(.syder-cover) .work-single__columns,
html.js body.loading:not(.syder-cover) .entry-content,
html.js body.loading:not(.syder-cover) .post-nav,
html.js body.loading:not(.syder-cover) .preview__back,
html.js body.loading.syder-single-01 .preview__column,
html.js body.loading.syder-single-01 .preview__back,
html.js body.loading.syder-single-01 .syder-single-content {
	opacity: 0;
	transform: translateY(16px);
}

html.js body.loading:not(.syder-cover) .work-card {
	opacity: 0;
	transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
	html.js body.loading:not(.syder-cover) .work-single__media-inner,
	html.js body.loading.syder-single-01 .preview__img-inner,
	html.js body.loading:not(.syder-cover) .work-single__title,
	html.js body.loading:not(.syder-cover) .page-title,
	html.js body.loading.syder-single-01 .preview__title,
	html.js body.loading:not(.syder-cover) .work-single__header,
	html.js body.loading:not(.syder-cover) .work-single__meta,
	html.js body.loading:not(.syder-cover) .work-single__columns,
	html.js body.loading:not(.syder-cover) .entry-content,
	html.js body.loading:not(.syder-cover) .post-nav,
	html.js body.loading:not(.syder-cover) .preview__back,
	html.js body.loading.syder-single-01 .preview__column,
	html.js body.loading.syder-single-01 .preview__back,
	html.js body.loading.syder-single-01 .syder-single-content,
	html.js body.loading:not(.syder-cover) .work-card {
		opacity: 1;
		transform: none;
	}
}

/* ===================================================================== */
/* Layout styles for new templates                                       */
/* ===================================================================== */

/* Single content section below the viewport-hero */
.syder-breadcrumbs {
	position: relative;
	z-index: 10;
	background: var(--color-bg);
	border-bottom: var(--syder-border);
	padding: clamp(1rem, 2vw, 1.35rem) var(--syder-gutter);
}

.syder-breadcrumbs__list {
	max-width: var(--syder-maxw);
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.syder-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex: 0 0 auto;
	max-width: min(18rem, 60vw);
	color: color-mix(in srgb, var(--color-text) 64%, transparent);
	font-size: 0.75rem;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.syder-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	color: color-mix(in srgb, var(--color-text) 38%, transparent);
}

.syder-breadcrumbs__item a,
.syder-breadcrumbs__item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.syder-breadcrumbs__item a {
	color: inherit;
	text-decoration: none;
}

.syder-breadcrumbs__item a:hover,
.syder-breadcrumbs__item a:focus {
	color: var(--color-text);
}

.syder-breadcrumbs__item span[aria-current="page"] {
	color: var(--color-text);
}

.syder-single-content {
	padding: clamp(2.5rem, 6vw, 5rem) var(--syder-gutter) clamp(3rem, 7vw, 6rem);
	background: var(--color-bg);
	position: relative;
	z-index: 10;
}

.syder-content-title {
	max-width: var(--syder-maxw);
	margin: 0 auto clamp(1.75rem, 4vw, 3rem);
}

.syder-content-title__heading {
	max-width: 46rem;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 4.5rem);
	font-weight: 300;
	line-height: 0.95;
	color: var(--color-text);
}

.syder-single-content__inner {
	max-width: 46rem;
	margin: 0 auto;
}

.syder-single-content__inner .entry-content {
	max-width: 100%;
}

.syder-single-article {
	max-width: 46rem;
}

.syder-single-tags {
	margin: 2rem 0;
	font-size: 0.9rem;
}

.syder-single-tags .tag-label {
	font-weight: bold;
	color: var(--color-column-title);
}

/* Home template: Blog loop section below the cover grid */
.syder-blog-loop {
	padding: clamp(3rem, 8vw, 6rem) var(--syder-gutter);
	background: var(--color-surface);
	border-top: var(--syder-border);
	position: relative;
	z-index: 10;
	/* body.syder-cover uppercases everything; the blog loop should read normally. */
	text-transform: none;
}

.syder-blog-loop__inner {
	max-width: var(--syder-maxw);
	margin: 0 auto;
}

.syder-blog-loop__header {
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
	max-width: 38rem;
}

.syder-blog-loop__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	margin: 0;
	color: var(--color-text);
}

.syder-single-01 .syder-single-hero .preview__title,
.syder-featured-loop .preview__title {
	display: block;
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	line-height: 0.96;
}

.syder-single-01 .syder-single-hero .preview__title {
	font-size: clamp(2.5rem, 8vw, 6.25rem);
	max-width: min(78rem, calc(100vw - 5rem));
}

.syder-single-01 .syder-single-hero .preview__title > .oh__inner,
.syder-featured-loop .preview__title > .oh__inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	width: 100%;
	max-width: 100%;
	line-height: 0.96;
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
}

.syder-single-01 .syder-single-hero .preview__title .line,
.syder-featured-loop .preview__title .line {
	white-space: normal;
}

.syder-featured-loop {
	min-height: clamp(32rem, 72vh, 58rem);
	padding: clamp(1.5rem, 4vw, 3rem) var(--syder-gutter);
	display: flex;
	align-items: stretch;
	color: var(--color-text-alt);
	background: var(--color-bg-alt);
	text-transform: uppercase;
}

.syder-featured-loop + .syder-cover-stage,
.syder-featured-loop + .syder-layout {
	margin-top: clamp(2rem, 5vw, 4rem);
}

.syder-featured-loop + .syder-layout .syder-cover-stage {
	padding-top: clamp(3rem, 7vw, 5.5rem);
}

.syder-featured-loop .syder-blog-loop__inner {
	width: 100%;
	max-width: none;
	display: flex;
	align-items: stretch;
}

.syder-featured-loop .archive-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(var(--syder-featured-columns, 2), minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.syder-featured-loop .syder-featured-card {
	position: relative;
	min-height: clamp(34rem, 78vh, 62rem);
	padding: 1.5rem 2.5rem 3rem;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 1fr auto auto;
	grid-row-gap: 1rem;
	color: var(--color-text-alt);
	background: var(--color-bg-alt);
	text-transform: uppercase;
	overflow: hidden;
	cursor: pointer;
	isolation: isolate;
}

.syder-featured-loop .syder-featured-card::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0.72) 100%);
	pointer-events: none;
}

.syder-featured-loop .syder-featured-card__link {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: block;
	color: inherit;
	text-decoration: none;
}

.syder-featured-loop .syder-featured-card__link:focus-visible {
	outline: 2px solid var(--color-link-alt);
	outline-offset: -0.5rem;
}

.syder-featured-loop .preview__img {
	grid-area: 1 / 1 / 2 / -1;
	width: 100%;
	height: 100%;
	min-height: 200px;
	overflow: hidden;
	position: relative;
	transform: none;
	pointer-events: none;
	will-change: transform;
}

.syder-featured-loop .preview__img-inner {
	background-position: 50% 35%;
	background-size: cover;
	width: 100%;
	height: 100%;
	transform: none;
	will-change: transform;
}

.syder-featured-loop .preview__title {
	position: relative;
	z-index: 2;
	pointer-events: none;
	margin: 2rem 0;
	max-width: 100%;
	line-height: 0.96;
	font-size: clamp(2rem, calc(10vw / var(--syder-featured-columns, 2)), 5.75rem);
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 300;
	justify-self: center;
	align-self: center;
	grid-area: 1 / 1 / 2 / -1;
	color: var(--color-text-alt);
}

.syder-featured-loop .preview__title span {
	line-height: 0.96;
}

.syder-featured-loop .preview__column {
	position: relative;
	z-index: 2;
	pointer-events: none;
}

.syder-featured-loop .preview__column > span {
	display: block;
}

.syder-featured-loop .preview__column-title {
	font-weight: 300;
	margin-top: 0;
	font-size: 1rem;
}

.syder-featured-loop .preview__column-title:not(.preview__column-title--main) {
	color: var(--color-column-title);
}

.syder-featured-loop .syder-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	line-height: 1.15;
}

.syder-featured-loop .syder-meta-list li {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	min-width: 0;
	white-space: nowrap;
}

.syder-featured-loop .syder-meta-label {
	color: var(--color-column-title);
	font-size: 0.75rem;
	flex: 0 0 auto;
}

.syder-featured-loop .syder-meta-value {
	color: var(--color-text-alt);
	font-size: 0.75rem;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.syder-featured-loop .syder-meta-group--primary .syder-meta-value {
	font-size: 1rem;
	line-height: 1.2;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}

.syder-featured-loop a {
	color: var(--color-link-alt);
}

.syder-featured-loop a:hover {
	color: var(--color-link-hover-alt);
}

.syder-featured-loop h3 {
	margin: 0;
}

@media screen and (min-width: 53em) {
	.syder-featured-loop .syder-featured-card {
		display: grid;
		grid-column-gap: 0;
		grid-row-gap: 1rem;
		grid-template-columns: minmax(0, 75%) minmax(0, 25%);
		grid-template-rows: 1fr auto;
	}

	.syder-featured-loop .preview__title {
		margin: 0;
	}

	.syder-featured-loop .syder-meta-group--primary {
		grid-area: 2 / 1 / 3 / 2;
		width: 100%;
		min-width: 0;
		padding-right: clamp(1.5rem, 4vw, 4rem);
	}

	.syder-featured-loop .syder-meta-group--secondary {
		grid-area: 2 / 2 / 3 / 3;
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 42rem) {
	.syder-featured-loop .archive-grid {
		grid-template-columns: 1fr;
	}

	.syder-featured-loop .syder-featured-card {
		min-height: 100vh;
		padding: 1.5rem 1.25rem 2rem;
	}

	.syder-featured-loop .preview__title {
		font-size: clamp(2.5rem, 14vw, 4.25rem);
		max-width: calc(100vw - 2.5rem);
		white-space: normal;
	}

	.syder-featured-loop .preview__column {
		grid-area: auto;
	}
}

/* WooCommerce single product content below the cinematic hero */
.syder-product-summary {
	max-width: 42rem;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: var(--syder-border);
}

.syder-product-summary .price {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 300;
	color: var(--color-frame-alt);
	margin: 0 0 1rem;
}

.syder-product-summary .woocommerce-product-rating {
	margin-bottom: 1rem;
}

.syder-product-summary .woocommerce-product-details__short-description {
	font-size: 1.0625rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.syder-single-content .cart {
	margin: 2rem 0 3rem;
	padding: 1.5rem;
	border: var(--syder-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	max-width: 32rem;
}

.syder-product-summary :where(.quantity, .single_add_to_cart_button) {
	margin-right: 0.5rem;
}

.syder-product-summary .product_meta {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--color-column-title);
}

.syder-product-tabs {
	max-width: min(100%, 58rem);
}

.syder-product-tabs .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.syder-product-tabs .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
}

.syder-product-tabs .woocommerce-tabs ul.tabs a {
	display: inline-flex;
	padding: 0.55rem 0.9rem;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	text-decoration: none;
}

.syder-product-tabs .woocommerce-tabs ul.tabs li.active a {
	background: var(--color-text);
	border-color: var(--color-text);
	color: var(--color-text-alt);
}

.syder-single-related {
	padding-top: var(--syder-related-padding, clamp(3rem, 8vw, 6rem));
	padding-bottom: var(--syder-related-padding, clamp(3rem, 8vw, 6rem));
	background: var(--syder-related-bg, color-mix(in srgb, var(--color-bg) 88%, #fff));
	border: var(--syder-related-border, 0);
}

.syder-single-related .syder-blog-loop__header {
	margin-bottom: var(--syder-related-layout-gap, clamp(1.75rem, 4vw, 3rem));
	max-width: none;
}

.syder-related-layout {
	display: grid;
	grid-template-areas:
		"controls"
		"track";
	gap: var(--syder-related-layout-gap, 1rem);
}

.syder-related-shell {
	grid-area: track;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	max-width: none;
}

.syder-related-controls {
	grid-area: controls;
	display: flex;
	gap: var(--syder-related-control-gap, 0.5rem);
	justify-self: end;
}

.syder-related-control {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: var(--syder-border);
	border-radius: var(--syder-border-radius);
	background: var(--color-bg);
	color: var(--color-text);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.syder-related-arrow {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.syder-related-arrow--long {
	width: 3.8rem;
	height: 0.75rem;
}

.syder-related-arrow--next {
	transform: scaleX(-1);
}

.syder-related-control:hover:not(.is-disabled) {
	background: var(--color-text);
	color: var(--color-text-alt);
}

.syder-related-control.is-disabled {
	cursor: default;
	opacity: 0.5;
	pointer-events: none;
}

.syder-related-control.is-hidden {
	display: none;
}

.syder-related-arrows--bare .syder-related-control {
	width: auto;
	min-width: 2.5rem;
	border: 0;
	background: transparent;
}

.syder-related-arrows--bare .syder-related-control:hover:not(.is-disabled) {
	background: transparent;
	color: color-mix(in srgb, var(--color-text) 72%, var(--color-frame-alt));
}

.syder-single-related .syder-related-track {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	gap: var(--syder-related-card-gap, 1rem);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 0.75rem;
	-webkit-overflow-scrolling: touch;
}

.syder-related-visible--1 .syder-related-track {
	grid-auto-columns: 100%;
}

.syder-related-visible--2 .syder-related-track {
	grid-auto-columns: calc((100% - var(--syder-related-card-gap, 1rem)) / 2);
}

.syder-related-visible--3 .syder-related-track {
	grid-auto-columns: calc((100% - (var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem))) / 3);
}

.syder-related-visible--4 .syder-related-track {
	grid-auto-columns: calc((100% - (var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem))) / 4);
}

.syder-related-visible--5 .syder-related-track {
	grid-auto-columns: calc((100% - (var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem))) / 5);
}

.syder-related-visible--6 .syder-related-track {
	grid-auto-columns: calc((100% - (var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem) + var(--syder-related-card-gap, 1rem))) / 6);
}

.syder-single-related .syder-related-track:focus-visible {
	box-shadow: var(--focus-ring);
}

.syder-single-related .work-card {
	scroll-snap-align: start;
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	gap: 0 0.9rem;
	align-items: start;
	padding: 0.65rem;
	border: var(--syder-border);
	border-radius: var(--radius-md);
	background: var(--color-bg);
}

.syder-related--no-images .work-card {
	grid-template-columns: minmax(0, 1fr);
}

.syder-related--no-images .work-card__img {
	display: none;
}

.syder-single-related .work-card__link {
	display: contents;
}

.syder-single-related .work-card__img {
	grid-row: 1 / span 3;
	aspect-ratio: 1;
	border-radius: var(--radius-sm);
}

.syder-single-related .work-card__meta {
	margin: 0 0 0.15rem;
	font-size: 0.68rem;
}

.syder-single-related .work-card__title {
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
}

.syder-single-related .work-card__desc {
	font-size: 0.8rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.syder-related-nav--top-center .syder-related-controls {
	justify-self: center;
}

.syder-related-nav--bottom-right .syder-related-layout,
.syder-related-nav--bottom-center .syder-related-layout,
.syder-related-nav--bottom-left .syder-related-layout {
	grid-template-areas:
		"track"
		"controls";
}

.syder-related-nav--bottom-center .syder-related-controls {
	justify-self: center;
}

.syder-related-nav--bottom-left .syder-related-controls {
	justify-self: start;
}

.syder-related-side {
	display: none;
}

.syder-related-nav--sides .syder-related-controls,
.syder-related-nav--middle .syder-related-controls {
	display: none;
}

.syder-related-nav--sides .syder-related-shell {
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--syder-related-control-gap, 0.75rem);
}

.syder-related-nav--sides .syder-related-side {
	display: inline-flex;
}

.syder-related-nav--middle .syder-related-side {
	display: inline-flex;
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
}

.syder-related-nav--middle .syder-related-control--prev.syder-related-side {
	left: 0.5rem;
}

.syder-related-nav--middle .syder-related-control--next.syder-related-side {
	right: 0.5rem;
}

@media (max-width: 600px) {
	.syder-single-related .syder-blog-loop__header {
		align-items: start;
		flex-direction: column;
	}

	.syder-single-related .syder-related-track {
		grid-auto-columns: minmax(15rem, 82vw);
	}

	.syder-related-nav--sides .syder-related-shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.syder-related-nav--sides .syder-related-side {
		display: none;
	}

	.syder-related-nav--sides .syder-related-controls,
	.syder-related-nav--middle .syder-related-controls {
		display: flex;
		justify-self: end;
	}
}

/* Ensure the cover stage and single hero templates adapt their height to the site header height */
.syder-home-01 .syder-cover-stage {
	min-height: calc(100vh - var(--syder-header-height, 74px));
}

.syder-single-01 .syder-single-hero .preview__title {
	position: relative;
	z-index: 2;
	display: block;
	pointer-events: none;
	margin: 2rem 0;
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	line-height: 0.96;
	font-size: clamp(2.5rem, 8vw, 6.25rem);
	max-width: min(78rem, calc(100vw - 5rem));
	text-align: center;
	font-family: var(--font-display);
	font-weight: 300;
	justify-self: center;
	align-self: center;
	grid-area: 1 / 1 / 2 / -1;
	color: var(--color-text-alt);
}

.syder-single-01 .syder-single-hero .preview__title > .oh__inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	width: 100%;
	max-width: 100%;
	line-height: 0.96;
	white-space: normal;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
}

.syder-single-01 .syder-single-hero .preview__title .line {
	white-space: normal;
}

@media screen and (min-width: 53em) {
	.syder-single-01 .syder-single-hero {
		grid-column-gap: 0;
		grid-template-columns: minmax(0, 75%) minmax(0, 25%);
		grid-template-rows: 1fr auto auto;
	}

	.syder-single-01 .syder-single-hero .syder-meta-group--primary {
		grid-area: 2 / 1 / 3 / 2;
		width: 100%;
		min-width: 0;
		padding-right: clamp(1.5rem, 4vw, 4rem);
	}

	.syder-single-01 .syder-single-hero .syder-meta-group--secondary {
		grid-area: 2 / 2 / 3 / 3;
		width: 100%;
		min-width: 0;
	}

	.syder-single-01 .syder-single-hero .preview__back {
		grid-area: 3 / 1 / 4 / 2;
		justify-self: start;
		align-self: end;
	}
}

@media screen and (max-width: 52.99em) {
	.syder-single-01 .syder-single-hero .preview__title {
		font-size: clamp(2.25rem, 11vw, 3.75rem);
		max-width: calc(100vw - 2.5rem);
	}
}

@media screen and (min-width: 53em) {
	.syder-featured-loop .syder-featured-card {
		grid-column-gap: 0;
		grid-template-columns: minmax(0, 75%) minmax(0, 25%);
	}

	.syder-featured-loop .syder-meta-group--primary {
		grid-area: 2 / 1 / 3 / 2;
		width: 100%;
		min-width: 0;
		padding-right: 0;
	}

	.syder-featured-loop .syder-meta-group--secondary {
		grid-area: 2 / 2 / 3 / 3;
		width: 100%;
		min-width: 0;
		padding-left: clamp(1.5rem, 4vw, 4rem);
	}
}

/* Final typography role assignments. Kept late so component-specific rules can
   keep their sizing/weight while the selected font roles still win. */
body,
p,
li,
.entry-content,
.work-card__desc,
.syder-meta-value,
.widget,
.comment-content {
	font-family: var(--font-body);
}

:is(h1, h2, h3, h4, h5, h6),
.page-title,
.entry-title,
.work-single__title {
	font-family: var(--font-heading);
}

a {
	font-family: var(--font-link);
}

.site-header,
.syder-menu a,
.syder-nav-menu a,
.frame,
.site-footer {
	font-family: var(--font-nav);
}

.syder-nav-menu__trigger {
	z-index: 10000;
}

.site-title,
.item__title,
.preview__title,
.work-card__title,
.syder-blog-loop__title,
.syder-single-related__title {
	font-family: var(--font-card);
}

.item__meta,
.work-card__meta,
.work-single__meta,
.syder-meta-label,
.preview__column-title,
.syder-breadcrumbs,
.syder-pagination,
.widget-title,
.tag-label {
	font-family: var(--font-meta);
}

button,
input,
select,
textarea,
input[type="submit"],
[name="submit"],
.button,
.wp-block-button__link,
.page-actions a,
.post-nav a,
.preview__back,
.syder-related-control {
	font-family: var(--font-button);
}
