/*
Theme Name: Zoja e Shkodrës
Description: Tema e Bibliotekës Zoja e Shkodrës: e bardhë, me pllaka të buta, kopertinat si imazh dhe bluja e logos për veprimet.
Version: 3.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: zoja
*/

/* tastemaker: elegant/light · brand #3e6cae fixed · Newsreader 500 + Inter · cover-wall hero · tiles rows · split book page · contrast: bg/accent 6.75, primary/on-primary 4.54 */

:root {
	--z-ink: var(--wp--preset--color--ink);
	--z-ink-2: var(--wp--preset--color--ink-2);
	--z-ink-3: var(--wp--preset--color--ink-3);
	--z-line: var(--wp--preset--color--line);
	--z-tile: var(--wp--preset--color--surface);
	--z-tile-2: var(--wp--preset--color--surface-2);
	--z-brand: var(--wp--preset--color--brand);
	--z-brand-dark: var(--wp--preset--color--brand-dark);
	--z-brand-soft: var(--wp--preset--color--brand-soft);
	--z-serif: var(--wp--preset--font-family--serif);
	--z-wide: 1200px;
	--z-gutter: clamp(1rem, 4vw, 2rem);
	--r-xs: 6px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-2xl: 32px;
	--sh-1: 0 1px 2px rgba(28, 25, 23, .05), 0 10px 30px rgba(28, 25, 23, .08);
	--sh-cover: 0 1px 2px rgba(28, 25, 23, .08), 0 8px 20px rgba(28, 25, 23, .14);
	--sh-lift: 0 2px 4px rgba(28, 25, 23, .1), 0 24px 50px rgba(28, 25, 23, .22);
	--z-shadow: var(--sh-1);
	--z-ease: cubic-bezier(.2, .7, .2, 1);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--z-brand); outline-offset: 2px; border-radius: var(--r-xs); }
.wp-site-blocks > * + * { margin-block-start: 0; }
::selection { background: var(--z-brand-soft); }

/* ---------------------------------------------------------------- header */
.zoja-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.zoja-header:hover, body:not(.home) .zoja-header { border-bottom-color: var(--z-line); }
.admin-bar .zoja-header { top: var(--wp-admin--admin-bar--height, 32px); }
.zoja-header__row { min-height: 72px; gap: 1.5rem; }
.zoja-logo { display: inline-flex; flex: none; }
.zoja-logo img { height: 52px; width: auto; display: block; }
.zoja-nav { flex: 1; }
.zoja-nav .wp-block-navigation-item__content {
	padding: .45rem .75rem !important; border-radius: 999px; font-size: .9375rem; color: var(--z-ink-2); text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.zoja-nav .wp-block-navigation-item__content:hover { background: var(--z-tile); color: var(--z-ink); }
.zoja-nav [aria-current="page"], .zoja-nav .current-menu-item > a { color: var(--z-ink); background: var(--z-tile); }
.zoja-header__actions { gap: .5rem; flex: none; }
.zoja-header .zk-today span { display: none; }
/* Hours in the bar: a quiet dot and word behind a hairline, not a second button. */
.zoja-header__actions { padding-left: 1.25rem; border-left: 1px solid var(--z-line); }
.zoja-header .zk-today--pill { padding: 0; background: none; font-size: .8125rem; }
.zoja-header .zk-today--pill b { font-weight: 400; color: var(--z-ink-3); }
.zoja-header .zk-today--pill.is-open b { color: var(--zk-ok, #15803d); }
@media (max-width: 900px) { .zoja-header__actions { display: none !important; } }
/* The header blur would trap the full-screen menu inside the header bar; drop it while the menu is open. */
html.has-modal-open .zoja-header, .zoja-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Tablets: the menu folds behind the button below 900px (WordPress folds it only below 600px). */
@media (min-width: 600px) and (max-width: 900px) {
	.zoja-nav { flex: 0; }
	.zoja-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.zoja-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 901px) and (max-width: 1080px) {
	.zoja-logo img { height: 44px; }
	.zoja-header__row { gap: 1rem; }
	.zoja-nav .wp-block-navigation-item__content { padding: .45rem .6rem !important; font-size: .875rem; }
}
@media (max-width: 599px) { .zoja-logo img { height: 42px; } .zoja-nav { flex: 0; } }

/* ---------------------------------------------------------------- shared */
.zoja-section, .zoja-hero { max-width: calc(var(--z-wide) + 2 * var(--z-gutter)); margin-inline: auto; padding-inline: var(--z-gutter); box-sizing: border-box; }
.zoja-section { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.zoja-front > :last-child { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.zoja-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.zoja-section__head h2, .zoja-visit h2 { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: clamp(1.625rem, 3vw, 2.125rem); letter-spacing: -0.01em; line-height: 1.1; }
.zoja-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 500; color: var(--z-brand-dark); text-decoration: none !important; white-space: nowrap; }
.zoja-link .zk-icon { width: 16px; height: 16px; transition: transform .2s var(--z-ease); }
@media (hover: hover) and (pointer: fine) { .zoja-link:hover .zk-icon { transform: translateX(3px); } }
.zoja-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; background: var(--z-brand); color: #fff !important; font-size: .9375rem; font-weight: 500; text-decoration: none !important; transition: background-color .15s ease; }
.zoja-button:hover { background: var(--z-brand-dark); }

/* ---------------------------------------------------------------- hero: text + cover wall */
.zoja-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center;
	padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem);
}
.zoja-hero h1 { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.zoja-hero__lead { margin: 1.25rem 0 2rem; max-width: 30rem; font-size: 1.125rem; line-height: 1.55; color: var(--z-ink-2); }
.zoja-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0 0; font-size: .875rem; }
.zoja-hero__tags span { color: var(--z-ink-3); margin-right: .25rem; }
.zoja-hero__tags a { padding: .4rem .85rem; border-radius: 999px; background: var(--z-tile); color: var(--z-ink-2); text-decoration: none !important; transition: background-color .15s ease, color .15s ease; }
.zoja-hero__tags a:hover { background: var(--z-brand-soft); color: var(--z-brand-dark); }
.zoja-hero__visual { min-width: 0; }
@media (max-width: 900px) {
	.zoja-hero { grid-template-columns: 1fr; }
	.zoja-hero__visual { order: -1; }
}

/* ---------------------------------------------------------------- visit */
.zoja-visit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.zoja-visit__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; min-height: 360px; background: var(--z-tile); }
.zoja-visit__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; display: block; }
.zoja-visit__card { display: grid; align-content: space-between; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-xl); background: var(--z-tile); }
.zoja-visit__facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.zoja-visit__facts li { display: flex; gap: .9rem; align-items: flex-start; font-size: .9375rem; color: var(--z-ink-2); }
.zoja-visit__facts li > span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: #fff; color: var(--z-brand); }
.zoja-visit__facts .zk-icon { width: 20px; height: 20px; }
.zoja-visit__facts b { display: block; font-weight: 500; color: var(--z-ink); }
.zoja-visit__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--z-line); }
@media (max-width: 820px) { .zoja-visit { grid-template-columns: minmax(0, 1fr); } .zoja-visit__photo { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------------------------------------------------------------- news */
.zoja-news .wp-block-post-template { gap: 1.25rem !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 860px) { .zoja-news .wp-block-post-template { grid-template-columns: 1fr !important; } }
.zoja-news .wp-block-post { display: grid; gap: .4rem; align-content: start; }
.zoja-news .wp-block-post-featured-image { margin: 0 0 .6rem; border-radius: var(--r-lg); overflow: hidden; background: var(--z-tile); }
.zoja-news .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s var(--z-ease); }
@media (hover: hover) and (pointer: fine) { .zoja-news .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); } }
.zoja-news .wp-block-post-title { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.zoja-news .wp-block-post-title a { color: var(--z-ink); }
.zoja-news .wp-block-post-date { margin: 0; font-size: .8125rem; color: var(--z-ink-3); }
.zoja-news .wp-block-post-excerpt { font-size: .9375rem; color: var(--z-ink-2); margin: 0; }

/* ---------------------------------------------------------------- footer */
.zoja-footer { background: var(--z-tile); padding-block: 3.5rem 2rem; margin-top: 0 !important; }
.zoja-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; max-width: var(--z-wide); margin-inline: auto; }
.zoja-footer__brand p { margin: 1rem 0 0; font-size: .9375rem; color: var(--z-ink-2); line-height: 1.6; }
.zoja-footer h2 { margin: 0 0 .9rem; font-family: var(--wp--preset--font-family--sans); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--z-ink); }
.zoja-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.zoja-footer a { color: var(--z-ink-2); font-size: .9375rem; text-decoration: none; }
.zoja-footer a:hover { color: var(--z-brand-dark); }
.zoja-footer .zk-contact { font-size: .9375rem; }
.zoja-footer__legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: var(--z-wide); margin: 3rem auto 0 !important; padding-top: 1.5rem; border-top: 1px solid var(--z-line); font-size: .8125rem; color: var(--z-ink-3); }
.zoja-footer__legal p { margin: 0; }
.zoja-footer .zoja-footer__webmaster { font-size: .8125rem; color: var(--z-ink-3); }
@media (max-width: 860px) { .zoja-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zoja-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .zoja-footer__grid > :last-child { grid-column: 1 / -1; } }
.zoja-footer a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- pages and news posts */
.wp-block-post-title { font-family: var(--z-serif); font-weight: 400; letter-spacing: -0.015em; }
.is-style-lead { font-size: 1.125rem; color: var(--z-ink-2); }
main .wp-block-post-content { color: var(--z-ink-2); font-size: 1.0625rem; line-height: 1.7; }
main .wp-block-post-content :where(h2, h3) { color: var(--z-ink); margin-top: 2.5rem; }
main .wp-block-post-content :where(h3) { font-family: var(--wp--preset--font-family--sans); }

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

/* ================================================================ inner pages */
.zoja-page { max-width: calc(var(--z-wide) + 2 * var(--z-gutter)); margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem) var(--z-gutter) clamp(3.5rem, 8vw, 6rem); box-sizing: border-box; }
.zoja-page > * + * { margin-block-start: 0; }
.zoja-page__head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.zoja-page__head > * { margin: 0; }
.zoja-page__eyebrow { margin-bottom: .75rem !important; font-size: .875rem; color: var(--z-ink-3); }
.zoja-page__eyebrow a { color: var(--z-brand-dark); text-decoration: none; }
.zoja-page__head h1, .zoja-page__head .wp-block-post-title, .zoja-page__head .wp-block-query-title { font-family: var(--z-serif); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.zoja-page__lead { margin-top: 1rem !important; font-size: 1.125rem; line-height: 1.55; color: var(--z-ink-2); max-width: 38rem; }
.zoja-page__head .wp-block-zoja-kerko { margin-top: 1.75rem; }

/* side navigation + reading column */
.zoja-page__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.zoja-page__layout > * { margin: 0 !important; }
.zoja-pagenav { position: sticky; top: 100px; }
.zoja-pagenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zoja-pagenav a { display: block; padding: .55rem .9rem; border-radius: var(--r-sm); font-size: .9375rem; color: var(--z-ink-2); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.zoja-pagenav a:hover { background: var(--z-tile); color: var(--z-ink); }
.zoja-pagenav a[aria-current="page"] { background: var(--z-tile); color: var(--z-ink); font-weight: 500; }
.zoja-page__stack { display: grid; gap: clamp(2.5rem, 6vw, 4rem); min-width: 0; }
@media (max-width: 900px) {
	.zoja-page__layout { grid-template-columns: 1fr; gap: 1.5rem; }
	.zoja-pagenav { position: static; margin: 0 calc(-1 * var(--z-gutter)) !important; overflow-x: auto; scrollbar-width: none; }
	.zoja-pagenav::-webkit-scrollbar { display: none; }
	.zoja-pagenav ul { display: flex; gap: .4rem; padding: 0 var(--z-gutter); width: max-content; }
	.zoja-pagenav a { padding: .5rem .95rem; border-radius: 999px; background: var(--z-tile); white-space: nowrap; }
	.zoja-pagenav a[aria-current="page"] { background: var(--z-ink); color: #fff; }
}

/* long-form text */
.zoja-prose { max-width: 680px; min-width: 0; font-size: 1.0625rem; line-height: 1.75; color: var(--z-ink-2); }
.zoja-prose > * { margin-block: 0 1.15em; }
.zoja-prose > p:first-child { font-size: 1.1875rem; line-height: 1.65; color: var(--z-ink); }
.zoja-prose :where(h2, h3) { margin: 2.25em 0 .6em !important; color: var(--z-ink); }
.zoja-prose h2 { font-family: var(--z-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.zoja-prose h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.zoja-prose strong, .zoja-prose b { color: var(--z-ink); font-weight: 600; }
.zoja-prose a { color: var(--z-brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.zoja-prose :where(ul, ol) { padding-left: 1.25rem; }
.zoja-prose li { margin-bottom: .45em; }
.zoja-prose li::marker { color: var(--z-brand); }
.zoja-prose blockquote { margin: 1.5em 0; padding: 1.1rem 1.4rem; border-radius: var(--r-lg); background: var(--z-tile); color: var(--z-ink); }
.zoja-prose img { border-radius: var(--r-lg); height: auto; }
.zoja-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.zoja-prose td, .zoja-prose th { padding: .55rem .5rem; border-bottom: 1px solid var(--z-line); text-align: left; }

/* gallery and video */
.zoja-prose .wp-block-gallery { gap: .75rem !important; margin-bottom: 2rem; }
.zoja-prose .wp-block-gallery .wp-block-image img { border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; }
.zoja-prose .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; align-items: stretch; }
.zoja-prose .wp-block-gallery.has-nested-images figure.wp-block-image::before { display: none; }
.zoja-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; max-height: none; padding: .6rem 0 0; background: none; color: var(--z-ink-2); font-size: .875rem; text-align: left; text-shadow: none; }
.zoja-prose .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.zoja-prose .wp-element-caption { font-size: .875rem; color: var(--z-ink-3); }

/* ---------------------------------------------------------------- visit page */
.zoja-visitpage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; min-width: 0; }
.zoja-vcard { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-xl); background: var(--z-tile); }
.zoja-vcard h2 { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: 1.625rem; line-height: 1.1; }
.zoja-vcard--hours header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.zoja-vcard--hours .zk-hours { padding: .25rem 1.1rem 1rem; border-radius: var(--r-md); background: #fff; }
.zoja-vcard--hours .zk-today--pill { background: #fff; }
.zoja-vcard--place { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.zoja-vcard--place figure { margin: 0; aspect-ratio: 16 / 9; }
.zoja-vcard--place img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoja-vcard--place > div { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 3vw, 1.75rem); }
.zoja-vcard--place p { margin: 0; }
.zoja-vfacts { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.zoja-vfacts li { display: grid; gap: .35rem; align-content: start; padding: 1.25rem; border-radius: var(--r-lg); background: var(--t, var(--z-tile)); }
.zoja-vfacts li > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .5rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .75); color: var(--i, var(--z-brand)); }
.zoja-vfacts .zk-icon { width: 20px; height: 20px; }
.zoja-vfacts b { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--z-ink); }
.zoja-vfacts small { font-size: .875rem; line-height: 1.5; color: var(--z-ink-2); }
.zoja-vcard--steps { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: start; background: #fff; box-shadow: 0 0 0 1px var(--z-line); }
.zoja-vcard--steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .9rem; }
.zoja-vcard--steps li { counter-increment: s; position: relative; min-height: 32px; padding: .3rem 0 0 2.9rem; font-size: .9375rem; line-height: 1.55; color: var(--z-ink-2); }
.zoja-vcard--steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--z-brand-soft); color: var(--z-brand-dark); font-weight: 600; font-size: .875rem; }
.zoja-vcard--steps li b { color: var(--z-ink); font-weight: 500; }
.zoja-vcard__links { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: .5rem 0 0; }
@media (max-width: 1000px) { .zoja-vfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.zoja-visitpage { grid-template-columns: 1fr; }
	.zoja-vcard--steps { grid-template-columns: 1fr; }
	.zoja-vcard__links { grid-column: 1; }
}
@media (max-width: 480px) { .zoja-vfacts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- collection page */
.zoja-collection { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 3.5rem); min-width: 0; }
.zoja-collection > * { min-width: 0; }
.zoja-page__stack { grid-template-columns: minmax(0, 1fr); }
.zoja-collection__new .zoja-section__head h2 { font-size: 1.625rem; }

/* ---------------------------------------------------------------- news: featured + archive + post */
.zoja-feature { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.zoja-feature .wp-block-post { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.zoja-feature .wp-block-post-featured-image { margin: 0; border-radius: var(--r-2xl); overflow: hidden; background: var(--z-tile); }
.zoja-feature .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.zoja-feature__text { display: grid; gap: .75rem; }
.zoja-feature__text > * { margin: 0 !important; }
.zoja-feature .wp-block-post-title { font-family: var(--z-serif); font-weight: 400; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em; }
.zoja-feature .wp-block-post-title a { color: var(--z-ink); text-decoration: none; }
.zoja-feature .wp-block-post-excerpt { font-size: 1.0625rem; color: var(--z-ink-2); }
.zoja-feature .wp-block-post-excerpt__more-link { display: inline-flex; margin-top: .75rem; font-weight: 500; color: var(--z-brand-dark); text-decoration: none; }
.zoja-news--archive { padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--z-line); }
@media (max-width: 800px) { .zoja-feature .wp-block-post { grid-template-columns: 1fr; } }

.zoja-post__head { max-width: 760px; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); text-align: center; }
.zoja-post__head > * { margin: 0 !important; }
.zoja-post__head .wp-block-post-title { margin: .25rem 0 .9rem !important; font-family: var(--z-serif); font-weight: 400; font-size: clamp(2.125rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.zoja-post__head .wp-block-post-date { font-size: .9375rem; }
.zoja-post__image { max-width: 980px; margin: 0 auto clamp(2rem, 5vw, 3rem) !important; border-radius: var(--r-2xl); overflow: hidden; }
.zoja-post__image img { width: 100%; max-height: 560px; object-fit: cover; }
.zoja-post__body { margin-inline: auto !important; }
.zoja-post__more { max-width: var(--z-wide); margin: clamp(3rem, 7vw, 5rem) auto 0 !important; padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--z-line); }
.zoja-post__more h2 { margin: 0 0 1.5rem; font-size: 1.625rem; }

/* ---------------------------------------------------------------- 404 + site search */
.zoja-empty-page .zoja-page__head { margin-inline: auto; text-align: center; padding-block: clamp(1rem, 5vw, 3rem); }
.zoja-empty-page .zoja-page__lead { margin-inline: auto; }
.zoja-empty-page .zk-search--hero { margin-inline: auto; }
.zoja-empty-page__links { margin-top: 1.5rem !important; color: var(--z-ink-3); }
.zoja-empty-page__links a { color: var(--z-brand-dark); text-decoration: none; }
.zoja-results .wp-block-post-template { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.zoja-results .wp-block-post { padding: 1.25rem 0; border-bottom: 1px solid var(--z-line); }
.zoja-results .wp-block-post-title { margin: 0 0 .35rem; font-family: inherit; font-size: 1.125rem; font-weight: 500; }
.zoja-results .wp-block-post-title a { color: var(--z-ink); text-decoration: none; }
.zoja-results .wp-block-post-excerpt { margin: 0; font-size: .9375rem; color: var(--z-ink-2); }

/* ---------------------------------------------------------------- home: welcome photo + catalogue search (as on the old site) */
.zoja-welcome { position: relative; height: clamp(380px, 64vh, 600px); overflow: hidden; background: #3b2f25; color: #fff; }
.zoja-welcome__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: zoja-slide 28s infinite; }
.zoja-welcome__slides img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.zoja-welcome__slides img:nth-child(2) { animation-delay: 7s; }
.zoja-welcome__slides img:nth-child(3) { animation-delay: 14s; }
.zoja-welcome__slides img:nth-child(4) { animation-delay: 21s; }
@keyframes zoja-slide { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.zoja-welcome__slides img:nth-child(1) { animation-name: zoja-slide-first; }
@keyframes zoja-slide-first { 0% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
.zoja-welcome.is-paused img { animation-play-state: paused; }
.zoja-welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 20, 14, .62) 0%, rgba(28, 20, 14, .25) 45%, rgba(28, 20, 14, 0) 70%), linear-gradient(0deg, rgba(28, 20, 14, .45) 0%, rgba(28, 20, 14, 0) 45%); pointer-events: none; }
.zoja-welcome__text { position: relative; z-index: 1; box-sizing: border-box; max-width: calc(var(--z-wide) + 2 * var(--z-gutter)); height: 100%; margin-inline: auto; padding: 0 var(--z-gutter) clamp(5.5rem, 12vh, 7.5rem); display: flex; flex-direction: column; justify-content: flex-end; }
.zoja-welcome__text > * { max-width: 34rem; margin: 0; }
.zoja-welcome__since { font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.zoja-welcome h1 { margin: .35rem 0 .75rem; font-family: var(--z-serif); font-weight: 500; font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.zoja-welcome__text > p:last-child { font-size: 1.125rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.zoja-welcome__pause { position: absolute; z-index: 1; right: var(--z-gutter); bottom: clamp(5.5rem, 12vh, 7.5rem); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); cursor: pointer; }
.zoja-welcome__pause::before, .zoja-welcome__pause::after { content: ""; position: absolute; top: 12px; width: 3px; height: 12px; border-radius: 2px; background: #fff; }
.zoja-welcome__pause::before { left: 14px; } .zoja-welcome__pause::after { left: 19px; }
.zoja-welcome__pause[aria-pressed="true"]::before { left: 14px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.zoja-welcome__pause[aria-pressed="true"]::after { display: none; }
.zoja-welcome__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .zoja-welcome__slides img { animation: none; } .zoja-welcome__pause { display: none; } }

.zoja-finder { position: relative; z-index: 2; box-sizing: border-box; max-width: calc(var(--z-wide) + 2 * var(--z-gutter)); margin: calc(-1 * clamp(3.5rem, 8vh, 4.5rem)) auto 0; padding-inline: var(--z-gutter); }
.zoja-finder__card { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-lift); }
.zoja-finder__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.zoja-finder__head p { margin: 0; font-size: .9375rem; color: var(--z-ink-2); }
.zoja-finder__head b { color: var(--z-ink); font-weight: 600; }
.zoja-finder__head a { font-size: .9375rem; font-weight: 500; color: var(--z-brand-dark); text-decoration: none; }
.zoja-finder .zk-search--hero { max-width: none; }
.zoja-finder .zoja-hero__tags { margin-top: 1rem; }
@media (max-width: 600px) { .zoja-welcome { height: 420px; } .zoja-welcome__pause { bottom: auto; top: 1rem; } }

/* ---------------------------------------------------------------- home: services (the old home tabs) */
.zoja-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.zoja-services a { display: grid; gap: .4rem; align-content: start; height: 100%; box-sizing: border-box; padding: 1.5rem; border-radius: var(--r-xl); background: var(--t, var(--z-tile)); color: inherit; text-decoration: none; transition: transform .2s var(--z-ease); }
.zoja-services span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .75rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .75); color: var(--i, var(--z-brand)); }
.zoja-services .zk-icon { width: 22px; height: 22px; }
.zoja-services h3 { margin: 0; font-family: var(--z-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.zoja-services p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--z-ink-2); }
@media (hover: hover) { .zoja-services a:hover { transform: translateY(-2px); } }
@media (max-width: 800px) { .zoja-services { grid-template-columns: minmax(0, 1fr); } }
.zoja-vcard--write { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: start; background: #fff; box-shadow: 0 0 0 1px var(--z-line); scroll-margin-top: 100px; }
.zoja-vcard--write > div p { margin: .75rem 0 0; font-size: .9375rem; line-height: 1.6; color: var(--z-ink-2); }
@media (max-width: 760px) { .zoja-vcard--write { grid-template-columns: minmax(0, 1fr); } }
.zoja-prose > h2:first-child { margin-top: 0 !important; }
