/*
Theme Name: Dziki Zryw — teksty na zdjęciu
Theme URI: https://dzikizryw.pl/
Author: Stowarzyszenie Dziki Zryw
Description: Układ strony stowarzyszenia. Składa istniejące treści i wtyczki. Multimedia strony głównej podmienia się w personalizacji.
Version: 2.8.1
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dziki-zryw
*/

:root {
	--ink: #0F1715;
	--ink-soft: #4b5563;
	--hero: #0F1715;
	--night: #0F1715;
	--zryw: #10B981;
	--flare: #F97316;
	--ivory: #F8FAFC;
	--paper: #F8FAFC;
	--mist: #F8FAFC;
	--white: #FFFFFF;
	--card: #FFFFFF;
	--line: rgba(15, 23, 21, 0.12);
	--copper: #F97316;
	--header: 68px;
	--wide: 1240px;
	--display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	--sans: "Inter", "Segoe UI", sans-serif;
	--serif: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	background: var(--mist);
	font-family: var(--sans);
	font-size: 1.05rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.22em; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.05;
	margin: 0 0 0.45em;
}

p { margin: 0 0 1em; }

::selection { background: #a7f3d0; color: var(--ink); }

:focus-visible {
	outline: 2px solid var(--zryw);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 80;
	background: var(--white);
	color: var(--ink);
	padding: 0.7rem 1rem;
}

.skip-link:focus { top: 1rem; }

.wrap {
	width: min(100% - 3rem, var(--wide));
	max-width: var(--wide);
	margin: 0 auto;
}

.kicker,
.footer-kicker,
.card-meta,
.nav-label,
.filmstrip figcaption {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--zryw);
}

.lead {
	font-family: var(--sans);
	font-style: normal;
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--ink-soft);
	max-width: 38rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.05rem;
	border: 1px solid transparent;
	background: transparent;
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--night); color: var(--mist); }
.btn-primary:hover { background: var(--flare); color: var(--white); }
.btn-accent { background: var(--zryw); color: #052e22; }
.btn-accent:hover { background: var(--flare); color: var(--white); }

.icon-btn,
.nav-toggle,
.sub-toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
}

body.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header);
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.custom-logo { width: auto; height: 36px; }

.custom-logo-link { display: block; line-height: 0; }

.brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.brand-kicker {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--zryw);
}

.brand-text strong {
	display: block;
	font-family: var(--display);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.primary-nav { margin-left: auto; }

.menu,
.page-menu ul,
.footer-menu,
.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu,
.page-menu ul {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.menu a,
.page-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.2rem 0.75rem;
	color: inherit;
	text-decoration: none;
	font-size: 0.92rem;
}

.menu a:hover,
.page-menu a:hover,
.menu .is-current > a,
.page-menu .current_page_item > a {
	text-decoration: underline;
	text-underline-offset: 0.35em;
	text-decoration-thickness: 1px;
}

.menu > .is-cta > a,
.page-menu > ul > li:last-child > a {
	margin-left: 0.35rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	background: var(--zryw);
	color: #052e22;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.menu > .is-cta > a:hover,
.page-menu > ul > li:last-child > a:hover {
	background: var(--flare);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.has-sub { position: relative; display: flex; align-items: center; }

.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	width: max-content;
	min-width: 200px;
	max-width: 280px;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: var(--ivory);
	color: var(--ink);
	border: 1px solid var(--line);
	box-shadow: 0 18px 40px rgba(16, 18, 16, 0.14);
}

.submenu::marker,
.menu .submenu li::marker { content: none; }

.menu .submenu a {
	display: block;
	min-height: 0;
	padding: 0.55rem 1rem;
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: normal;
}

.menu .submenu a:hover {
	background: rgba(20, 22, 20, 0.05);
	text-decoration: none;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.is-open > .submenu { display: block; }

.sub-toggle { display: none; width: 34px; height: 34px; }

.header-tools {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.nav-toggle { display: none; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 16px;
	height: 1px;
	background: currentColor;
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.header-search { padding: 0 0 1rem; }

.header-search .search-form { max-width: 640px; margin-left: auto; }

body.nav-open {
	overflow: hidden;
}

body.nav-open .site-header {
	background: var(--ivory);
	color: var(--ink);
}

body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Banery wydarzeń: bez JS stoją jeden pod drugim, z JS są karuzelą. */
.event-carousel {
	position: relative;
	color: #F8FAFC;
	background: #0F1715;
}

.event-carousel[hidden] { display: none; }

.event-banner {
	background: var(--banner, #F97316);
	color: var(--banner-ink, #0F1715);
}

.event-tone-1 { --banner: #F97316; --banner-ink: #1c1008; --banner-btn: #1c1008; --banner-btn-ink: #fff; }
.event-tone-2 { --banner: #10B981; --banner-ink: #052e22; --banner-btn: #052e22; --banner-btn-ink: #fff; }
.event-tone-3 { --banner: #0F1715; --banner-ink: #F8FAFC; --banner-btn: #F97316; --banner-btn-ink: #1c1008; }
.event-tone-4 { --banner: #7C3AED; --banner-ink: #F8FAFC; --banner-btn: #F8FAFC; --banner-btn-ink: #3b0764; }
.event-tone-5 { --banner: #38BDF8; --banner-ink: #082f49; --banner-btn: #082f49; --banner-btn-ink: #fff; }

.event-banner + .event-banner { border-top: 1px solid rgba(15, 23, 21, 0.16); }

.event-carousel.is-ready .event-slides {
	display: grid;
	touch-action: pan-y;
}

.event-carousel.is-ready .event-banner {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	border-top: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0s linear 0.6s, visibility 0s linear 0.6s;
}

/* Nowy baner wjeżdża na wierzch, stary znika dopiero pod nim. */
.event-carousel.is-ready .event-banner.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s;
}

.event-banner-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: min(100% - 3rem, var(--wide));
	padding: 0.9rem 3.4rem 0.9rem 0;
}

.event-banner-link {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.event-banner-main {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	min-width: 0;
}

.event-media {
	flex: none;
	line-height: 0;
}

.event-media img {
	width: auto;
	height: 6.5rem;
	max-width: 11rem;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(15, 23, 21, 0.28);
}

.event-banner-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.event-kicker {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.event-banner strong {
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.6vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.event-lead {
	margin-top: 0.15rem;
	font-size: 0.98rem;
	font-weight: 500;
}

.event-banner-go {
	flex: none;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	background: var(--banner-btn, #0F1715);
	color: var(--banner-btn-ink, #F8FAFC);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.25s ease, color 0.25s ease;
}

.event-banner-link:hover .event-banner-go {
	background: var(--banner-ink, #0F1715);
	color: var(--banner, #fff);
}

/* Sama grafika na cały baner. */
.event-banner.is-graphic {
	background: #0F1715;
}

.event-graphic {
	display: block;
	width: 100%;
	line-height: 0;
}

.event-graphic picture,
.event-graphic img {
	display: block;
	width: 100%;
	height: auto;
}

/* Przyciski karuzeli leżą nad slajdami. */
.event-ui {
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
}

.event-carousel:not(.is-ready) .event-ui { display: none; }

.event-ui-inner {
	position: relative;
	height: 100%;
}

.event-dismiss {
	pointer-events: auto;
}

.event-dismiss {
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 21, 0.45);
	color: #F8FAFC;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease;
}

.event-dismiss:hover { background: rgba(15, 23, 21, 0.8); }

.event-dismiss:focus-visible {
	outline: 2px solid #F8FAFC;
	outline-offset: 1px;
}

.hero-cinema,
.hero-plain {
	background: #0F1715;
	color: #F8FAFC;
}

.hero-cinema {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: calc(100svh - var(--header));
	margin-top: 0;
	padding: 7rem 0 4.5rem;
	overflow: hidden;
}

.hero-bg,
.hero-shade {
	position: absolute;
	inset: 0;
}

.hero-bg { background: var(--night); overflow: hidden; }

.hero-bg img,
.hero-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-bg img { animation: dz-drift 36s ease-in-out infinite alternate; }

.hero-bg picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-bg .hero-phone-only { display: none; }

@media (max-width: 767px) {
	.hero-bg .hero-desktop-only { display: none; }
	.hero-bg .hero-phone-only { display: block; }
}

.hero-shade {
	background:
		linear-gradient(180deg, rgba(15, 23, 21, 0.42) 0%, rgba(15, 23, 21, 0.08) 42%, rgba(15, 23, 21, 0.9) 100%);
}

.hero-copy { position: relative; z-index: 1; }

.hero-glass {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	width: fit-content;
	max-width: min(100%, 40rem);
	padding: 1.35rem 1.5rem 1.2rem;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
}

.hero-kicker,
.hero-title,
.hero-lead {
	position: static;
	float: none;
	margin: 0;
}

.hero-kicker {
	order: 1;
	color: #10B981;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hero-title {
	order: 2;
	color: #F8FAFC;
	font-size: clamp(2.6rem, 6vw, 4.8rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.95;
	max-width: 12ch;
}

.hero-lead {
	order: 3;
	color: #F8FAFC;
	font-family: var(--sans);
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.45;
	text-transform: none;
	max-width: 36rem;
}

.hero-plain {
	padding: 5.2rem 0 3.2rem;
}

.page-hero {
	padding: 4.8rem 0 3rem;
	background: var(--hero);
	color: var(--mist);
	border-bottom: 0;
}

.page-hero .kicker { color: var(--zryw); }
.page-hero .lead { color: rgba(248, 250, 252, 0.82); }

.page-hero .crumbs { color: rgba(248, 250, 252, 0.64); }
.page-hero .crumbs a:hover { color: var(--zryw); }

.page-hero .search-form input[type="search"] {
	color: var(--white);
	border-bottom-color: rgba(248, 250, 252, 0.32);
}

.page-hero .search-form input[type="search"]::placeholder { color: rgba(248, 250, 252, 0.55); }

.page-hero .btn-primary { background: var(--zryw); color: #052e22; }
.page-hero .btn-primary:hover { background: var(--flare); color: var(--white); }

.page-hero h1 {
	font-size: clamp(2.8rem, 6vw, 5.2rem);
	max-width: 16ch;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.2rem;
	color: var(--ink-soft);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--copper); }

.hero-figure { margin-top: 1.8rem; }

.hero-figure img,
.entry-figure img {
	width: 100%;
	max-height: 70vh;
	object-fit: cover;
	border-radius: 20px;
}

.entry-figure { margin: 0 0 2rem; }

.hero-back { margin-top: 1.4rem; }

.filmstrip {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	background: #0F1715;
	color: #F8FAFC;
	padding: 1.35rem 0 1.6rem;
}

.filmstrip-viewport {
	overflow: hidden;
	max-width: 100%;
}

.filmstrip-track {
	display: flex;
	width: max-content;
	gap: 1.15rem;
	padding: 0.85rem 0.4rem;
	animation: dz-marquee 46s linear infinite;
}


.filmstrip .film-frame {
	position: relative;
	width: min(34vw, 420px);
	margin: 0;
	flex: none;
	padding: 0.55rem 0.55rem 0.7rem;
	background: #1a2420;
	border-radius: 8px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
	transform: rotate(-1.8deg);
}

.filmstrip .film-frame:nth-child(3n + 2) { transform: rotate(1.6deg); }
.filmstrip .film-frame:nth-child(3n) { transform: rotate(-0.5deg); }

.filmstrip .film-frame::before,
.filmstrip .film-frame::after {
	content: "";
	display: block;
	height: 16px;
	background: radial-gradient(circle, #0F1715 4.5px, transparent 5px) left center / 22px 16px repeat-x;
}

.filmstrip .film-frame::before { margin-bottom: 0.45rem; }
.filmstrip .film-frame::after { margin-top: 0.45rem; }

.film-window {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 3px;
	background: #0F1715;
}

.filmstrip img {
	width: 100%;
	height: min(28vw, 280px);
	object-fit: cover;
}

.filmstrip figcaption {
	position: absolute;
	left: 0.55rem;
	right: 0.55rem;
	bottom: 0.5rem;
	margin: 0;
	color: #F8FAFC;
	text-shadow: 0 1px 8px rgba(15, 23, 21, 0.8);
}

.section { padding: 4.2rem 0 5.5rem; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.layout > * {
	width: 100%;
	min-width: 0;
	max-width: none;
	justify-self: stretch;
}

.entry-content > *:not(.alignwide):not(.alignfull) {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

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

.entry-content > .alignfull {
	width: auto;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.5em; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.3em; }

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

.entry-content li { margin: 0.35rem 0; }

.entry-content blockquote {
	margin: 2rem auto;
	padding: 0;
	border: 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.entry-content img,
.entry-content video { }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }

.entry-content th,
.entry-content td {
	padding: 0.75rem 0.4rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.builder-canvas { margin: 0; }
.builder-canvas > * { max-width: none; }

.section-feed { padding-top: 2.6rem; }

.cards,
.cards-bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.15rem;
	align-items: stretch;
}

.cards-bento .card { grid-column: span 2; }

.cards-bento .card-feature {
	grid-column: span 4;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	background: var(--card);
	border: 1px solid rgba(15, 23, 21, 0.06);
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(15, 23, 21, 0.06);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
	z-index: 1;
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(15, 23, 21, 0.16);
}

.card-media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--hero);
}

.card-feature .card-media {
	height: 100%;
	min-height: 240px;
	aspect-ratio: auto;
}

.card-feature .card-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.card:hover .card-media img { transform: scale(1.06); }

.card-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.7), transparent 46%),
		radial-gradient(circle at 82% 78%, rgba(249, 115, 22, 0.65), transparent 42%),
		var(--hero);
}

.card-body { padding: 1.15rem 1.25rem 1.3rem; }

.card-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	margin: 0 0 0.75rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.14);
	color: #047857;
}

.card-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.card h2 {
	font-size: 1.25rem;
	line-height: 1.15;
	margin-bottom: 0.4rem;
}

.card-feature h2 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }

.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--zryw); }

.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem;
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.entry-meta a { color: inherit; }

.meta-gap {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--copper);
}

.pagination,
.post-navigation,
.comments { margin-top: 2.6rem; }

.nav-links,
.comment-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.page-numbers,
.post-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
	background: var(--night);
	border-color: var(--night);
	color: var(--ivory);
}

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.post-navigation a {
	align-items: flex-start;
	flex-direction: column;
	padding: 1rem 0;
	min-height: 0;
	border: 0;
	border-top: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
}

.post-navigation a:hover { background: transparent; color: var(--copper); border-color: var(--line); }

.post-navigation .nav-next a { margin-left: auto; text-align: right; align-items: flex-end; }

.nav-label { display: block; margin-bottom: 0.3rem; }

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

.search-form label { flex: 1; }

.search-form input[type="search"] { width: 100%; }

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content input[type="search"],
.entry-content input[type="date"],
.entry-content input[type="password"],
.entry-content select,
.entry-content textarea,
.search-form input[type="search"],
.comments input[type="text"],
.comments input[type="email"],
.comments input[type="url"],
.comments textarea,
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance),
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field input[type="number"],
.wpforms-field textarea,
.wpforms-field select,
.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.gform_wrapper textarea,
.gform_wrapper select {
	width: 100%;
	padding: 0.85rem 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"],
.wpcf7-submit,
.wpforms-submit,
.gform_button,
.comments input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.1rem;
	border: 0;
	background: var(--night);
	color: var(--ivory);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.entry-content input[type="submit"]:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover,
.gform_button:hover,
.comments input[type="submit"]:hover { background: var(--copper); }

.comments { max-width: 680px; }

.comment-list .children { margin: 0.8rem 0 0.8rem 1.2rem; padding: 0; list-style: none; }

.comment-body {
	margin-bottom: 1rem;
	padding: 0 0 1rem;
	border-bottom: 1px solid var(--line);
}

.sidebar .widget,
.footer-widgets .widget { margin-bottom: 1.8rem; }

.widget-title {
	font-size: 1.4rem;
	margin-bottom: 0.7rem;
}

.sidebar .widget ul,
.footer-widgets .widget ul { margin: 0; padding-left: 1rem; }

.site-footer {
	background: var(--hero);
	color: rgba(248, 250, 252, 0.78);
	padding: 3.2rem 0 1.4rem;
}

.site-footer a { color: var(--ivory); }

.footer-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr);
	gap: 1.4rem 2.5rem;
	align-items: start;
}

.footer-panel:has(.footer-widgets) {
	grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.55fr) minmax(170px, 0.7fr);
}

.footer-mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 0.85rem;
	border-radius: 14px;
	background: var(--zryw);
	color: #052e22;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.footer-mark .custom-logo,
.footer-mark img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 12px;
}

.footer-name {
	font-family: var(--display);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
	color: var(--ivory);
	margin: 0.15rem 0 0.7rem;
}

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

.footer-menu a {
	display: inline-block;
	padding: 0.2rem 0;
	text-decoration: none;
}

.footer-menu a:hover { color: var(--zryw); }

.socials { display: flex; gap: 0.45rem; margin-top: 1rem; }

.socials a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(243, 240, 234, 0.22);
}

.socials a:hover { border-color: var(--ivory); color: var(--ivory); }

.socials svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.legal {
	grid-column: 1 / -1;
	margin: 0.6rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(248, 250, 252, 0.14);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

.empty { padding: 1rem 0 2rem; }

@keyframes dz-drift {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@keyframes dz-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
	.cards,
	.cards-bento { grid-template-columns: 1fr 1fr; }

	.cards-bento .card,
	.cards-bento .card-feature {
		grid-column: auto;
		grid-row: auto;
	}

	.cards-bento .card-feature {
		grid-column: 1 / -1;
		grid-template-columns: 1fr;
	}

	.card-feature .card-media {
		height: auto;
		min-height: 200px;
		aspect-ratio: 16 / 9;
	}

	.footer-panel,
	.footer-panel:has(.footer-widgets),
	.post-navigation .nav-links { grid-template-columns: 1fr; }

	.post-navigation .nav-next a { margin-left: 0; text-align: left; align-items: flex-start; }

	.filmstrip,
	.filmstrip-viewport { overflow: hidden; max-width: 100%; }

	.filmstrip .film-frame { width: 68vw; transform: rotate(-1.2deg); }
	.filmstrip .film-frame:nth-child(even) { transform: rotate(1.2deg); }
	.filmstrip img { height: 40vw; }
}

@media (max-width: 760px) {
	.nav-toggle { display: grid; }
	.header-cta { display: none; }

	.primary-nav {
		position: fixed;
		top: var(--header);
		right: 0;
		bottom: auto;
		left: 0;
		z-index: 35;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		align-self: stretch;
		width: 100%;
		height: calc(100dvh - var(--header));
		max-height: none;
		margin: 0;
		padding: 0.6rem 1.15rem 2rem;
		overflow: auto;
		background: #F8FAFC;
		color: var(--ink);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	body.admin-bar .primary-nav {
		top: calc(var(--header) + 46px);
		height: calc(100dvh - var(--header) - 46px);
	}

	.primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.primary-nav .menu,
	.primary-nav .page-menu,
	.primary-nav .page-menu ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0.15rem;
	}

	.primary-nav .menu > li {
		border-bottom: 1px solid rgba(15, 23, 21, 0.08);
	}

	.primary-nav .menu > li.is-cta { border-bottom: 0; }

	.menu a,
	.page-menu a {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 48px;
		padding: 0.4rem 0.15rem;
		font-size: 1.08rem;
		font-weight: 600;
	}

	.menu > .is-cta > a,
	.page-menu > ul > li:last-child > a {
		width: fit-content;
		margin: 0.7rem 0 0.2rem;
		padding: 0.55rem 1.05rem;
		font-size: 0.95rem;
	}

	.has-sub { flex-wrap: wrap; }
	.has-sub > a { flex: 1; width: auto; }

	.sub-toggle {
		display: grid;
		place-items: center;
		flex: none;
		width: 44px;
		height: 44px;
		margin: 2px 0 2px 0.35rem;
		padding: 0;
		border: 1px solid rgba(15, 23, 21, 0.16);
		border-radius: 999px;
		background: #fff;
		color: var(--ink);
	}

	.sub-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
	}

	.has-sub.is-open > .sub-toggle {
		background: var(--night);
		color: #fff;
		border-color: transparent;
	}

	.has-sub.is-open > .sub-toggle::before { transform: rotate(225deg) translateY(-1px); }

	.submenu {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin: 0 0 0.45rem;
		padding: 0.15rem 0 0.35rem 0.35rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.menu .submenu a {
		min-height: 44px;
		padding: 0.25rem 0.7rem;
		font-weight: 500;
		font-size: 1rem;
	}

	.has-sub:hover > .submenu,
	.has-sub:focus-within > .submenu { display: none; }
	.has-sub.is-open > .submenu { display: block; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
	.cards,
	.cards-bento { grid-template-columns: 1fr; }

	.cards-bento .card-feature { grid-column: auto; }
	.search-form { flex-direction: column; align-items: stretch; }
	.event-banner-inner { width: min(100% - 2rem, var(--wide)); padding-right: 2.9rem; }
	.event-banner-link { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
	.event-banner-main { gap: 0.8rem; }
	.event-media img { height: 4.6rem; max-width: 6.5rem; border-radius: 8px; }
	.event-banner strong { font-size: 1.3rem; }
	.event-lead { font-size: 0.92rem; line-height: 1.4; }
	.event-banner-go { padding: 0.5rem 0.9rem; }
	.event-dismiss { width: 34px; height: 34px; font-size: 1.3rem; }
	.hero-copy h1,
	.page-hero h1 { max-width: none; }
	.wrap { width: min(100% - 2rem, var(--wide)); }
	.filmstrip,
	.filmstrip-viewport { overflow: hidden; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-bg img,
	.card,
	.card-media img,
	.btn,
	.filmstrip .film-frame,
	.filmstrip-track { animation: none; transition: none; }
	.event-carousel.is-ready .event-banner,
	.event-carousel.is-ready .event-banner.is-active { transition: none; }

	.filmstrip .film-frame,
	.filmstrip .film-frame:nth-child(n) { transform: none; }

	.card:hover,
	.btn:hover,
	.menu > .is-cta > a:hover,
	.page-menu > ul > li:last-child > a:hover { transform: none; }
}
