/*
Theme Name: PSSST!
Theme URI: https://festivalnijemogfilma.com
Author: CeKaTe
Description: Tema po mjeri PSSST! Festivala nijemog filma — crno zaglavlje i podnožje, svijetli sadržaj (bijela podloga, crni tekst), čist grotesk (sans-serif) i filmski crveni akcent.
Version: 2.1
License: GNU General Public License v2 or later
Text Domain: pssst
*/

/* ============================================================
   Temelji
   ============================================================ */
:root {
	/* Sadržaj (svijetlo) */
	--bg:      #ffffff;
	--bg-soft: #f4f4f2;
	--ink:     #17171b;
	--muted:   #57575f;
	--faint:   #8a8a92;
	--line:    rgba(0, 0, 0, .12);
	--line-2:  rgba(0, 0, 0, .22);

	/* Chrome (tamno) — zaglavlje i podnožje */
	--dark:    #0b0b0d;
	--dark-2:  #0f0f11;
	--dark-3:  #1d1d21;
	--dl-ink:   #f5f5f6;
	--dl-muted: #a6a6ae;
	--dl-faint: #7a7a83;
	--dl-line:   rgba(255, 255, 255, .14);
	--dl-line-2: rgba(255, 255, 255, .24);

	/* Akcent — filmski crveni */
	--red:        #e5121b;
	--red-bright: #ff2d38;
	--red-soft:   #b20f16;

	--font-display: "Helvetica Neue", Helvetica, "Segoe UI", Arial, system-ui, sans-serif;
	--font-body:    "Helvetica Neue", Helvetica, "Segoe UI", Arial, system-ui, sans-serif;

	--measure: 44rem;
	--wrap: 72rem;
	--header-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.02rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* Diskretno zrno */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: .03;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
	color: var(--red);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .18s ease;
}
a:hover { color: var(--red-bright); }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.4rem auto; width: 100%; }

/* Primarni gumb */
.btn, .button-link, input[type="submit"], button[type="submit"], .wp-block-button__link {
	display: inline-block;
	background: var(--red);
	color: #fff;
	border: 0;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .82rem;
	padding: .9rem 2rem;
	text-decoration: none;
	cursor: pointer;
	width: auto;
	transition: background .18s ease, transform .18s ease;
}
.btn:hover, .button-link:hover, input[type="submit"]:hover, button[type="submit"]:hover, .wp-block-button__link:hover {
	background: var(--red-bright);
	color: #fff;
	transform: translateY(-2px);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 100001; background: var(--red); color: #fff; padding: .6rem 1rem; text-decoration: none; }

/* ============================================================
   Zaglavlje — crna ljepljiva traka (topbar)
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--dark);
	border-bottom: 1px solid var(--dl-line);
}
.topbar {
	max-width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.4rem;
	padding: .85rem 1.4rem;
	min-height: var(--header-h);
}
.brand-wordmark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--dl-ink);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.brand-wordmark__dot { color: var(--red); }

.site-nav { margin-left: auto; }
.site-nav .nav-menu { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.7rem; }
.site-nav a {
	color: var(--dl-muted);
	text-decoration: none;
	text-transform: uppercase;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .14em;
	padding: .3rem 0;
	border-bottom: 2px solid transparent;
	transition: color .18s ease, border-color .18s ease;
	white-space: nowrap;
}
.site-nav a:hover { color: var(--dl-ink); border-bottom-color: var(--red); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--dl-ink); border-bottom-color: var(--red); }

.topbar__lang { display: flex; align-items: center; }
.lang-switch { display: inline-flex; align-items: stretch; border: 1px solid var(--dl-line-2); }
.lang-switch__item {
	margin: 0; padding: .3rem .55rem; line-height: 1;
	font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--dl-muted); text-decoration: none; display: inline-flex; align-items: center;
	transition: background .18s ease, color .18s ease;
}
.lang-switch__item + .lang-switch__item { border-left: 1px solid var(--dl-line-2); }
.lang-switch a.lang-switch__item:hover { background: rgba(255, 255, 255, .08); color: var(--dl-ink); }
.lang-switch .lang-switch__item.active { background: var(--red); color: #fff; }

.nav-toggle {
	display: none; background: transparent; border: 1px solid var(--dl-line-2);
	color: var(--dl-ink); padding: .5rem .6rem; cursor: pointer; width: auto;
	align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 2px; background: var(--dl-ink); }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--dl-ink); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ============================================================
   Hero (naslovnica) — svijetlo
   ============================================================ */
.hero { background: var(--bg); }
.hero__media { border-bottom: 3px solid var(--red); }
.hero__img { width: 100%; height: auto; display: block; }
.hero__intro { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.4rem, 5vw, 4rem) 1.4rem clamp(1.4rem, 3vw, 2rem); text-align: center; }
.hero__kicker { color: var(--red); text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; font-weight: 700; margin-bottom: 1.1rem; overflow-wrap: break-word; }
.hero__title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(1.7rem, 6.5vw, 4.3rem); line-height: 1.04;
	letter-spacing: -.01em; text-transform: uppercase; color: var(--ink);
	overflow-wrap: break-word; word-break: break-word; max-width: 100%;
}
.hero__tagline { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin-top: 1.15rem; }
.hero .btn { margin-top: 1.8rem; }

/* ============================================================
   Kartica naslova (ostale stranice) — svijetlo
   ============================================================ */
.page-card {
	background: var(--bg-soft);
	border-bottom: 3px solid var(--red);
	text-align: center;
	padding: clamp(2.4rem, 5vw, 3.4rem) 1.5rem;
}
.page-card h1 {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -.01em;
	text-transform: uppercase; line-height: 1.1; color: var(--ink);
}
.card-orn { display: block; width: 46px; height: 3px; background: var(--red); margin: 0 auto 1.1rem; }
.page-card__meta { color: var(--muted); font-size: .92rem; margin-top: .75rem; }
.page-card__meta a { color: var(--red); text-decoration: none; }
.page-card__meta a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
	.iris { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   Sadržaj — svijetlo
   ============================================================ */
.site-main { max-width: var(--measure); margin: 0 auto; padding: clamp(2.6rem, 6vw, 4rem) 1.4rem 4.5rem; }
.site-main--wide { max-width: var(--wrap); }
.site-main--form { max-width: 48rem; }

.entry-content { color: #26262b; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--font-display); font-weight: 700; line-height: 1.2;
	letter-spacing: -.01em; color: var(--ink); margin-top: 2em;
}
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.32rem; }
.entry-content h4 { font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em; }
.entry-content h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: .6rem; }
.entry-content a { color: var(--red); }
.entry-content a:hover { color: var(--red-bright); }
.entry-content blockquote { border-left: 3px solid var(--red); padding: .2rem 0 .2rem 1.4rem; font-style: italic; color: var(--muted); }
.entry-content img { border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0, 0, 0, .12); }
.entry-content ul, .entry-content ol { padding-left: 1.6rem; }
.entry-content li + li { margin-top: .3rem; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.entry-content th { background: var(--bg-soft); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--ink); }
.entry-content code { background: var(--bg-soft); padding: .1em .35em; font-size: .9em; border-radius: 3px; }
.entry-content pre { background: var(--dark); color: var(--dl-ink); padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; }
.entry-content pre code { background: none; padding: 0; }
.dropcap-first > p:first-of-type::first-letter { font-family: var(--font-display); font-weight: 800; float: left; font-size: 3.2em; line-height: .78; padding: .06em .12em 0 0; color: var(--red); }

/* ============================================================
   Brze poveznice — svijetle kartice
   ============================================================ */
.marquee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem clamp(3rem, 6vw, 4.5rem); }
.marquee-grid a {
	display: block; background: #fff; color: var(--ink); border: 1px solid var(--line);
	text-align: center; text-decoration: none; text-transform: uppercase;
	font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; font-size: 1rem;
	padding: 1.9rem 1.1rem 1.7rem;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.marquee-grid a small { display: block; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: .5rem; font-size: .85rem; }
.marquee-grid a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.marquee-grid a:hover small { color: rgba(255, 255, 255, .9); }

/* ============================================================
   Arhiva — svijetlo
   ============================================================ */
.archive-tools { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: space-between; margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.archive-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.archive-cats__item { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: .34rem .72rem; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.archive-cats__item:hover, .archive-cats__item.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.post-list article { border-bottom: 1px solid var(--line); }
.post-item { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; padding: 1.9rem 0; align-items: start; }
.post-item:first-child { padding-top: 0; }
.post-item:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.post-item__media { display: block; overflow: hidden; border: 1px solid var(--line); }
.post-item__media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.post-item__media:hover img { transform: scale(1.05); }
.post-item__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: .1rem 0 .45rem; letter-spacing: -.01em; }
.post-item__body h2 a { color: var(--ink); text-decoration: none; }
.post-item__body h2 a:hover { color: var(--red); }
.post-item__excerpt { color: var(--muted); }
.post-item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; color: var(--faint); font-size: .82rem; }
.post-item .meta a { color: var(--faint); text-decoration: none; }
.post-item .meta a:hover { color: var(--red); }
.meta__sep { margin: 0 .45rem; opacity: .5; }
.read-more { display: inline-block; margin-top: .7rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--red); text-decoration: none; }
.read-more:hover { color: var(--ink); }
.empty-reel { text-align: center; font-style: italic; color: var(--muted); padding: 3rem 0; }
.post-list h2 { font-family: var(--font-display); }
.post-list .meta { color: var(--faint); }

.pagination { margin-top: 3rem; text-align: center; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.pagination .page-numbers { display: inline-block; min-width: 2.4rem; padding: .4rem .7rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); font-size: .9rem; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

.single-thumb { margin: 0 0 2rem; border: 1px solid var(--line); }
.single-thumb img { display: block; width: 100%; height: auto; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav a:hover { color: var(--red); }
.post-nav__next { text-align: right; margin-left: auto; }

/* ============================================================
   Obrasci (prijavnica / CF7 / pretraga) — svijetlo
   ============================================================ */
.form-lead { text-align: center; font-size: 1.15rem; color: var(--muted); margin-bottom: 2.2rem; }
.form-card { position: relative; background: #fff; border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 2.8rem); box-shadow: 0 18px 50px rgba(0, 0, 0, .10); }
.form-card__corner { position: absolute; width: 13px; height: 13px; }
.form-card__corner--tl { left: -1px; top: -1px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); }
.form-card__corner--tr { right: -1px; top: -1px; border-right: 2px solid var(--red); border-top: 2px solid var(--red); }
.form-card__corner--bl { left: -1px; bottom: -1px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.form-card__corner--br { right: -1px; bottom: -1px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.form-alt { text-align: center; margin-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.form-alt a { color: var(--red); }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], input[type="password"],
select, textarea {
	width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 0;
	padding: .7rem .85rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.wpcf7 p { margin: 0 0 1.2rem; }
.wpcf7 label { display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--muted); }
.wpcf7 label input, .wpcf7 label textarea, .wpcf7 label select { margin-top: .4rem; }
.wpcf7 .wpcf7-list-item { display: inline-block; margin: .25rem 1.2rem .25rem 0; }
.wpcf7 .wpcf7-list-item label { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { width: auto; margin-right: .4rem; }
.wpcf7-response-output { border: 1px solid var(--line) !important; padding: .8rem 1rem !important; margin: 1.4rem 0 0 !important; background: var(--bg-soft); color: var(--ink); }
.wpcf7-not-valid-tip { color: var(--red); font-size: .85rem; margin-top: .3rem; }
.wpcf7 .wpcf7-submit { margin-top: .6rem; }
.form-card .wp-block-buttons { justify-content: center; margin-top: 1.4rem; }

.search-form { display: flex; width: 100%; max-width: 340px; }
.search-form__field { border-right: 0; }
.search-form__submit { padding: .7rem 1.2rem; font-size: .72rem; letter-spacing: .1em; white-space: nowrap; }

/* ============================================================
   Galerija + lightbox
   ============================================================ */
.is-gallery .gallery, .entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin: 2.2rem 0; }
.gallery .gallery-item { margin: 0 !important; width: auto !important; overflow: hidden; }
.gallery .gallery-item a { display: block; overflow: hidden; }
.gallery .gallery-item img, .wp-block-gallery img { border: 0; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; cursor: zoom-in; display: block; }
.gallery .gallery-item a:hover img, .wp-block-gallery a:hover img { transform: scale(1.05); }
.gallery .gallery-caption { display: none; }
.is-gallery iframe, .entry-content iframe { width: 100% !important; max-width: 100%; aspect-ratio: 6 / 5; height: auto; min-height: 320px; border: 1px solid var(--line); margin: 1.2rem 0; background: #000; }

.pssst-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .96); padding: 3rem 1rem; }
.pssst-lightbox.is-open { display: flex; }
body.pssst-lightbox-open { overflow: hidden; }
.pssst-lightbox__stage { margin: 0; max-width: 92vw; text-align: center; }
.pssst-lightbox__stage img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; border: 1px solid var(--dl-line-2); box-shadow: 0 22px 60px rgba(0, 0, 0, .7); }
.pssst-lightbox figcaption { color: var(--dl-muted); margin-top: .9rem; font-size: .9rem; }
.pssst-lightbox__close, .pssst-lightbox__nav { background: none; border: 0; color: var(--dl-ink); cursor: pointer; width: auto; letter-spacing: 0; transition: color .18s ease; }
.pssst-lightbox__close { position: absolute; top: .8rem; right: 1.2rem; font-size: 2.6rem; line-height: 1; padding: .1rem .5rem; }
.pssst-lightbox__nav { font-size: 3rem; line-height: 1; padding: 0 1rem; opacity: .8; }
.pssst-lightbox__close:hover, .pssst-lightbox__nav:hover { color: var(--red-bright); background: none; transform: none; }

/* ============================================================
   Perforacija (šav) — tanki tamni razdjelnik iznad podnožja
   ============================================================ */
.filmstrip { height: 10px; background: var(--dark-2); overflow: hidden; }
.filmstrip::before { content: ""; display: block; height: 4px; margin-top: 3px; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--dl-line-2) 9px 15px, transparent 15px 24px); }

/* ============================================================
   Pretpodnožje — svijetlo (logotipi na bijelom)
   ============================================================ */
.prefooter { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(2.8rem, 6vw, 4.4rem) 1.4rem; }
.prefooter__inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.credit-title { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .26em; font-size: .74rem; color: var(--faint); margin-bottom: 1.5rem; }
.credit-title::before, .credit-title::after { content: ""; width: 24px; height: 2px; background: var(--red); }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 2.4rem; max-width: 820px; margin: 0 auto; }
.logo-wall__item { display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.logo-wall__item:hover { transform: translateY(-2px); }
.logo-wall__img { max-height: 58px; max-width: 190px; width: auto; }
.logo-wall--single .logo-wall__img { max-height: 78px; }
.logo-wall__text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.credit-name { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; font-size: 1.05rem; }
.credit-name a { color: var(--ink); text-decoration: none; }
.credit-name a:hover { color: var(--red); }
.credit-note { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.social-row { display: inline-flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.social-row__item { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.social-row__item svg { fill: currentColor; }
.social-row__item:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ============================================================
   Podnožje — crno
   ============================================================ */
.site-footer { background: var(--dark); color: var(--dl-muted); text-align: center; padding: clamp(2.6rem, 5vw, 3.4rem) 1.4rem 2.6rem; font-size: .84rem; }
.site-footer .fin { display: inline-flex; align-items: center; gap: 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .36em; text-indent: .36em; color: var(--dl-ink); text-transform: uppercase; margin-bottom: 1.4rem; }
.site-footer .fin::before, .site-footer .fin::after { content: ""; width: 40px; height: 2px; background: var(--red); text-indent: 0; }
.site-footer a { color: var(--dl-ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--red-bright); }
.site-footer p + p { margin-top: .5rem; }
.site-footer__note { color: var(--dl-muted); }
.footer-legal { margin-top: 1.5rem; font-size: .82rem; letter-spacing: .04em; }
.footer-legal a { color: var(--dl-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--red-bright); text-decoration: underline; }
.footer-legal__sep { margin: 0 .55rem; color: var(--dl-faint); }

/* ============================================================
   404
   ============================================================ */
.lost-reel { text-align: center; padding: clamp(3.5rem, 8vw, 5.5rem) 1.4rem; }
.lost-reel .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 11vw, 6rem); color: var(--red); letter-spacing: .02em; line-height: 1; }
.lost-reel__search .search-form { margin: 1.6rem auto; }

/* ============================================================
   WP klase
   ============================================================ */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3rem 1.2rem .8rem 0; }
.alignright { float: right; margin: .3rem 0 .8rem 1.2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .82rem; text-align: center; color: var(--muted); margin-top: .4rem; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); position: absolute !important; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Podnožje — društvene mreže (novi red) + kredit
   ============================================================ */
.footer-social { margin: 1.6rem 0 .2rem; }
.site-footer .social-row { display: inline-flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.site-footer .social-row__item {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--dl-line-2); border-radius: 50%;
	color: var(--dl-ink); text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.site-footer .social-row__item svg { fill: currentColor; }
.site-footer .social-row__item:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.footer-credit { margin-top: 1.1rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-credit a { color: var(--dl-muted); text-decoration: none; }
.footer-credit a:hover { color: var(--red-bright); }

/* ============================================================
   Arhiva — kreativan prikaz izdanja + katalozi u gridu
   ============================================================ */
.section-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.6rem; text-align: center; margin-bottom: 1.7rem; }
.section-title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin: .55rem auto 0; }

/* Kartice izdanja */
.arhiva-editions { display: flex; flex-direction: column; gap: 1.3rem; max-width: 54rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.edition {
	display: grid; grid-template-columns: 104px 1fr; gap: 1.5rem;
	background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
	padding: 1.6rem 1.7rem;
	transition: box-shadow .2s ease, transform .2s ease;
}
.edition:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .10); transform: translateY(-2px); }
.edition__num {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .9; color: var(--red);
	border-right: 1px solid var(--line); padding-right: 1.2rem;
}
.edition__num span { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: .5rem; font-weight: 700; }
.edition__body { color: #333; font-size: .95rem; line-height: 1.6; overflow-wrap: break-word; }
.edition__body > *:first-child { margin-top: 0; }
.edition__body b, .edition__body strong { color: var(--ink); }
.edition__body b:first-child, .edition__body strong:first-child { display: inline-block; font-size: 1.05rem; margin-bottom: .35rem; }
.edition__body img { margin: 1rem auto; max-height: 240px; width: auto; border: 1px solid var(--line); }
.edition__body a { color: var(--red); font-weight: 500; }
.edition__body span[style*="color"] { color: inherit !important; }

/* Grid PDF kataloga */
.arhiva-catalogs { max-width: var(--wrap); margin: 0 auto; }
.pdf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.pdf-card {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
	aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line);
	text-decoration: none; color: var(--ink); text-align: center;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pdf-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.pdf-card__badge { font-family: var(--font-display); font-weight: 800; font-size: .7rem; letter-spacing: .12em; color: var(--red); }
.pdf-card__year { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.pdf-card__label { font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.pdf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .14); border-color: var(--red); }

/* Fallback ako se sadržaj ne uspije parsirati */
.is-arhiva .arhiva-content { max-width: 46rem; margin: 0 auto; }
.arhiva-content a[href$=".pdf"] { font-weight: 600; }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ============================================================
   Impresum / Kontakt — pregledna kontakt-kartica
   ============================================================ */
.page-impresum-kontakt .site-main,
.page-contact .site-main { max-width: 44rem; }
.page-impresum-kontakt .entry-content,
.page-contact .entry-content {
	background: #fff;
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	padding: clamp(1.5rem, 4vw, 2.6rem);
	box-shadow: 0 14px 38px rgba(0, 0, 0, .08);
	line-height: 1.65;
}
.page-impresum-kontakt .entry-content > * + *,
.page-contact .entry-content > * + * { margin-top: 1.05em; }
.page-impresum-kontakt .entry-content p,
.page-contact .entry-content p { margin: 0; padding: .9rem 0; border-top: 1px solid var(--line); }
.page-impresum-kontakt .entry-content p:first-of-type,
.page-contact .entry-content p:first-of-type { border-top: 0; padding-top: 0; }
.page-impresum-kontakt .entry-content strong,
.page-impresum-kontakt .entry-content b,
.page-contact .entry-content strong,
.page-contact .entry-content b {
	display: inline-block;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--ink);
}
.page-impresum-kontakt .entry-content a,
.page-contact .entry-content a { color: var(--red); font-weight: 600; }
.page-impresum-kontakt .entry-content div,
.page-contact .entry-content div { margin: 0; }

/* ============================================================
   Program — pregledniji prikaz
   ============================================================ */
.page-program .site-main { max-width: 48rem; }
.page-program .entry-content { text-align: center; }
.page-program .entry-content > div,
.page-program .entry-content > p { margin: 0; }
/* Dani programa — istaknuti naslovi (prva tri podebljana retka) */
.page-program .entry-content > p:nth-of-type(-n+3) strong,
.page-program .entry-content > span strong {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.2rem, 2.6vw, 1.6rem);
	letter-spacing: .02em;
	padding: .6rem 0;
}
.page-program .entry-content strong { color: var(--ink); }
.page-program .entry-content span[style*="color"] { color: var(--ink) !important; }
.page-program .entry-content hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4rem auto; max-width: 8rem; }
.page-program .entry-content img { margin: 1.6rem auto; border: 1px solid var(--line); }
.page-program .entry-content a { color: var(--red); font-weight: 600; }

/* ============================================================
   Naslovnica — uvodni odlomak + traka poveznica
   ============================================================ */
.dropcap-first > p:first-of-type { font-size: 1.14rem; line-height: 1.62; color: var(--ink); }
.home-links { background: var(--bg-soft); border-top: 1px solid var(--line); }
.home-links__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.6rem, 5vw, 3.8rem) 1.4rem; }
.home-links .marquee-grid { padding: 0; max-width: none; }

/* ============================================================
   Responzivnost
   ============================================================ */
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.topbar { gap: 1rem; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--dark); border-bottom: 1px solid var(--dl-line);
		margin-left: 0; display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.4rem 1rem; }
	.site-nav .nav-menu li { width: 100%; }
	.site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--dl-line); }
	.site-nav a:hover { border-bottom-color: var(--dl-line); color: var(--red-bright); }
	.topbar__lang { margin-left: auto; }
}

@media (max-width: 560px) {
	.post-item, .post-item:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
	.post-item__media img { aspect-ratio: 16 / 9; }
	.archive-tools { flex-direction: column; align-items: stretch; }
	.search-form { max-width: none; }
	.is-gallery .gallery, .entry-content .gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
	.pssst-lightbox__nav { font-size: 2.2rem; padding: 0 .4rem; }
	.pssst-lightbox { padding: 1.5rem .5rem; }
	.hero__intro { text-align: left; }
	.hero__kicker { letter-spacing: .16em; }
	.topbar { padding: .7rem 1rem; gap: .8rem; }
	.brand-wordmark { font-size: 1.25rem; }
	.edition { grid-template-columns: 1fr; gap: .8rem; padding: 1.3rem 1.3rem; }
	.edition__num { flex-direction: row; align-items: baseline; gap: .5rem; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .6rem; font-size: 2.2rem; }
	.edition__num span { margin-top: 0; }
	.pdf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 561px) and (max-width: 780px) {
	.pdf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media print {
	body { background: #fff; color: #000; }
	body::after, .site-header, .site-nav, .filmstrip, .pssst-lightbox { display: none; }
	.page-card, .site-footer, .prefooter { background: none; color: #000; border-color: #000; }
	a { color: #000; }
}
