/*
Theme Name: Hatze
Theme URI: https://example.com/hatze
Author: FEAJUI VISUALS
Description: Tema za Glazbenu školu Josipa Hatzea — mega izbornik, obavijesti s filtrima, koncerti, dokumenti, natječaji, projekti, programi, upisi i dislocirani odjeli. Faza 1: struktura (siva skica). Boje se mijenjaju u Izgled → Prilagodi → Boje.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hatze
*/

/* =========================================================
   1. Tokeni — SVE boje, fontovi i razmaci su ovdje.
      Kad stigne identitet brenda, mijenjamo samo ovaj blok
      (ili boje u Izgled → Prilagodi → Boje).
   ========================================================= */
:root {
	--c-bg: #ffffff;
	--c-surface: #f5f5f3;
	--c-highlight: #efefec;
	--c-text: #1a1a1a;
	--c-muted: #5f5f5c;      /* AA kontrast na bijelom i na --c-surface */
	--c-faint: #8a8a86;      /* samo za ukrasne detalje */
	--c-line: #c8c8c4;
	--c-line-soft: #e6e6e2;
	--c-accent: #1a1a1a;
	--c-accent-contrast: #ffffff;
	--c-focus: #1a5fd0;
	--c-ph-a: #f2f2f0;
	--c-ph-b: #e7e7e3;

	--font-body: "Aller", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: var(--font-body);

	--fs-xs: 0.75rem;   /* 12 */
	--fs-sm: 0.875rem;  /* 14 */
	--fs-md: 1rem;      /* 16 */
	--fs-lg: 1.25rem;   /* 20 */
	--fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--fs-xxl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

	--wrap: 1360px;
	--gutter: clamp(16px, 2.2vw, 24px);
	--gap: 16px;
	--radius: 0px;
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. Osnova
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: var(--fs-md);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	background: var(--c-accent); color: var(--c-accent-contrast);
	padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* Male oznake (eyebrow) */
.eyebrow {
	font-size: var(--fs-xs);
	font-weight: 400;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin: 0 0 12px;
}

/* "SVI KONCERTI →" */
.more {
	display: inline-flex; gap: .4em; align-items: center;
	font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
	color: var(--c-muted); text-decoration: underline;
}
.more:hover { color: var(--c-text); }

/* Gumbi */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: 10px 18px;
	border: 1px solid var(--c-accent);
	background: var(--c-accent); color: var(--c-accent-contrast);
	font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: transparent; color: var(--c-accent); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-text); }
.btn--ghost:hover { background: var(--c-text); color: var(--c-bg); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: var(--fs-xs); }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--c-line); background: var(--c-bg); cursor: pointer;
	text-decoration: none;
}
.icon-btn:hover { border-color: var(--c-text); }

/* Pilule (filtri) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin-right: 4px; }
.chip {
	display: inline-flex; align-items: center;
	min-height: 32px; padding: 4px 14px;
	border: 1px solid var(--c-line-soft); border-radius: 999px;
	background: var(--c-bg); color: var(--c-muted);
	font-size: var(--fs-sm); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--c-text); color: var(--c-text); }
.chip[aria-pressed="true"],
.chip[aria-current="true"] { border-color: var(--c-text); background: var(--c-highlight); color: var(--c-text); }

/* Oznake vrste obavijesti */
.badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 80px; padding: 3px 8px;
	border: 1px solid var(--c-line);
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text);
	white-space: nowrap;
}
.badge--strong { border-color: var(--c-text); background: var(--c-highlight); font-weight: 700; }
.tag {
	display: inline-flex; padding: 2px 10px;
	border: 1px dashed var(--c-line); font-size: var(--fs-xs); color: var(--c-muted);
}

/* Placeholder (pruge) */
.ph {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: repeating-linear-gradient(135deg, var(--c-ph-a), var(--c-ph-a) 12px, var(--c-ph-b) 12px, var(--c-ph-b) 24px);
	border: 1px solid var(--c-line);
	color: var(--c-faint);
	min-height: 120px;
}
.ph__label { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.media { overflow: hidden; background: var(--c-surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Sive linije umjesto teksta (samo dok nema sadržaja) */
.bars { display: grid; gap: 8px; margin: 4px 0 14px; }
.bars i { display: block; height: 8px; background: var(--c-line-soft); }

/* Okviri */
.box { border: 1px solid var(--c-text); padding: 20px; }
.box--dashed { border: 1px dashed var(--c-line); }
.box + .box { margin-top: 16px; }

/* =========================================================
   3. Zaglavlje i mega izbornik
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__bar {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--header-h);
}
.brand { flex: none; }
.brand img, .custom-logo { max-height: 52px; width: auto; }
.brand__placeholder {
	display: flex; align-items: center; justify-content: center;
	min-width: 110px; height: 40px; padding: 0 14px;
	border: 1px solid var(--c-faint);
	background: repeating-linear-gradient(135deg, #eee, #eee 6px, #e2e2e2 6px, #e2e2e2 12px);
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--c-text);
	white-space: nowrap;
}

.nav { flex: 1; min-width: 0; }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.nav__btn {
	padding: 8px 11px;
	border: 1px dashed var(--c-line);
	background: transparent;
	font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted);
	cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.nav__btn:hover,
.nav__btn.is-open { border-style: solid; border-color: var(--c-text); color: var(--c-text); }
.nav__btn.is-current { border-style: solid; border-color: var(--c-text); background: var(--c-highlight); color: var(--c-text); }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search {
	position: relative; display: flex; align-items: center;
	width: 180px; border: 1px solid var(--c-line);
}
.header-search .icon { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--c-faint); }
.header-search input {
	width: 100%; min-height: 38px; padding: 6px 10px 6px 32px;
	border: 0; background: transparent; font: inherit; font-size: var(--fs-sm);
}
.header-search input:focus { outline: none; }
.header-search:focus-within { border-color: var(--c-text); box-shadow: 0 0 0 1px var(--c-text); }
.icon-btn--search,
.icon-btn--menu { display: none; }
.icon-btn--menu .icon-close { display: none; }
.icon-btn--menu[aria-expanded="true"] .icon-open { display: none; }
.icon-btn--menu[aria-expanded="true"] .icon-close { display: inline; }

/* Mega panel */
.mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--c-bg);
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .18);
	max-height: calc(100vh - var(--header-h) - 20px);
	overflow-y: auto;
}
.mega.is-in { animation: mega-in .22s var(--ease) both; }
@keyframes mega-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.mega__top {
	display: flex; justify-content: space-between; align-items: center;
	padding: 20px 0 14px; border-bottom: 1px solid var(--c-line-soft);
}
.mega__top .eyebrow { margin: 0; }
.mega__close {
	display: inline-flex; align-items: center; gap: 6px;
	border: 0; background: none; cursor: pointer;
	font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
}
.mega__close .icon { width: 16px; height: 16px; }
.mega__body { display: grid; grid-template-columns: 1fr 220px; gap: 28px; padding: 20px 0 28px; }
.mega__cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px 18px; }
.mega__head {
	display: block; padding-bottom: 6px; margin-bottom: 8px;
	border-bottom: 1px solid var(--c-line-soft);
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--c-muted);
}
.mega__col ul { list-style: none; }
.mega__col li a {
	display: block; padding: 4px 0;
	font-size: var(--fs-sm); line-height: 1.45; color: var(--c-muted); text-decoration: none;
}
.mega__col li a:hover { color: var(--c-text); text-decoration: underline; }
.mega__col.is-active .mega__head { border-bottom-color: var(--c-text); color: var(--c-text); }
.mega__col.is-active li a { color: var(--c-text); }
.mega__shortcut {
	align-self: start;
	border: 1px solid var(--c-text); padding: 16px;
}
.mega__shortcut-text { font-size: var(--fs-md); margin-bottom: 14px; }

/* Mobilna ladica */
.drawer {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
	background: var(--c-bg);
	overflow-y: auto;
	border-top: 1px solid var(--c-line);
}
.drawer__inner { padding: 16px var(--gutter) 40px; }
.drawer .search-form { margin-bottom: 16px; }
.drawer__section { border-bottom: 1px solid var(--c-line); }
.drawer__section summary,
.drawer__link {
	display: flex; justify-content: space-between; align-items: center;
	min-height: 54px; padding: 0 2px;
	font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase;
	cursor: pointer; list-style: none; text-decoration: none;
}
.drawer__link { border-bottom: 1px solid var(--c-line); }
.drawer__section summary::-webkit-details-marker { display: none; }
.drawer__section[open] summary .icon { transform: rotate(180deg); }
.drawer__section summary .icon { transition: transform .2s var(--ease); }
.drawer__section ul { list-style: none; padding: 0 0 12px; }
.drawer__section li a { display: block; padding: 10px 2px; text-decoration: none; color: var(--c-muted); }
.drawer__section li:first-child a { color: var(--c-text); }

/* Navigacijski put */
.crumbs { border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-xs); color: var(--c-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--c-faint); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }

/* =========================================================
   4. Raspored stranica
   ========================================================= */
.page-head { padding: 32px 0 20px; }
.page-head h1 { font-size: var(--fs-xl); margin: 0; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lead { max-width: 62ch; color: var(--c-muted); font-size: var(--fs-sm); margin: 12px 0 0; }

.section { padding: 28px 0 40px; }
.section--surface { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section + .section { border-top: 1px solid var(--c-line); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font-size: var(--fs-xl); margin: 0; }

.layout { display: grid; gap: 32px; padding-bottom: 48px; }
.layout > *, .home-split > * { min-width: 0; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 360px; }
.layout--subnav { grid-template-columns: 210px minmax(0, 1fr); }
.layout--subnav-aside { grid-template-columns: 210px minmax(0, 1fr) minmax(260px, 420px); }

.subnav ul { list-style: none; }
.subnav a {
	display: block; padding: 8px 12px;
	border-left: 2px solid var(--c-line-soft);
	font-size: var(--fs-sm); color: var(--c-muted); text-decoration: none;
}
.subnav a:hover { color: var(--c-text); border-left-color: var(--c-line); }
.subnav a[aria-current="page"] { border-left-color: var(--c-text); background: var(--c-highlight); color: var(--c-text); }
.subnav { padding-top: 32px; }

/* Tekst iz uređivača */
.entry { max-width: 72ch; }
.entry > * + * { margin-top: 1em; }
.entry > * { margin-bottom: 0; }
.entry h2 { font-size: var(--fs-lg); margin-top: 1.6em; }
.entry h3 { font-size: var(--fs-md); font-weight: 700; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .3em; }
.entry img { height: auto; }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry th, .entry td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--c-line-soft); }
.entry th { font-weight: 400; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); border-bottom-color: var(--c-text); }
.entry .wp-block-table { margin-left: 0; margin-right: 0; }
.entry .wp-block-table table { border: 0; }
.entry .wp-block-table td, .entry .wp-block-table th { border-left: 0; border-right: 0; border-top: 0; }
.entry .wp-block-details { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.entry .wp-block-details summary { cursor: pointer; font-weight: 700; }
.entry .wp-block-details > *:not(summary) { margin-top: 10px; color: var(--c-muted); }
.entry .wp-block-file { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.entry .wp-block-button__link { border-radius: 0; background: var(--c-accent); color: var(--c-accent-contrast); }
.entry .wp-block-columns { gap: 32px; }
.entry--wide { max-width: none; }

/* Koraci (Upisi) — lista s klasom hatze-steps */
.entry ol.hatze-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.entry ol.hatze-steps > li {
	counter-increment: step;
	position: relative;
	border: 1px solid var(--c-line); padding: 16px 16px 16px 64px; margin: 0;
	min-height: 66px;
}
.entry ol.hatze-steps > li::before {
	content: counter(step);
	position: absolute; left: 16px; top: 16px;
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border: 1px solid var(--c-text); font-size: var(--fs-xs);
}
.entry ol.hatze-steps > li strong { display: block; margin-bottom: 2px; }
.entry ol.hatze-steps > li br { display: none; }
.entry ol.hatze-steps > li { color: var(--c-muted); font-size: var(--fs-sm); }
.entry ol.hatze-steps > li strong { color: var(--c-text); font-size: var(--fs-md); }

/* =========================================================
   5. Naslovnica
   ========================================================= */
.hero { position: relative; border-bottom: 1px solid var(--c-line); }
.hero__media, .hero .ph { aspect-ratio: 16 / 6.2; min-height: 280px; width: 100%; border: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__title {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 0 32px;
	background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
	color: #fff;
}
.hero__title h1 { font-size: var(--fs-xxl); margin: 0; max-width: 18ch; }
.hero .ph__sub { font-size: var(--fs-xs); color: var(--c-faint); }

.upisi-strip { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 22px 0; }
.upisi-strip__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.upis-card {
	display: block; height: 100%;
	background: var(--c-bg); border: 1px solid var(--c-line);
	padding: 18px 16px 16px; text-decoration: none;
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.upis-card:hover { border-color: var(--c-text); transform: translateY(-2px); }
.upis-card .eyebrow { margin-bottom: 6px; }
.upis-card strong { display: block; font-size: var(--fs-lg); line-height: 1.25; font-weight: 700; }
.upis-card .bars { margin: 12px 0 0; }

.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 40px; }

/* =========================================================
   6. Koncerti
   ========================================================= */
.concerts { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.concert-card {
	position: relative; display: flex; flex-direction: column; justify-content: space-between;
	aspect-ratio: 4 / 5; padding: 14px;
	border: 1px solid var(--c-line); text-decoration: none; overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--c-ph-a), var(--c-ph-a) 12px, var(--c-ph-b) 12px, var(--c-ph-b) 24px);
	transition: border-color .2s var(--ease);
}
.concert-card:hover { border-color: var(--c-text); }
.concert-card__img { position: absolute; inset: 0; }
.concert-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.concert-card:hover .concert-card__img img { transform: scale(1.04); }
.concert-card.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 45%, rgba(0,0,0,.55)); }
.concert-card > :not(.concert-card__img) { position: relative; z-index: 1; }
.concert-card.has-img { color: #fff; }
.concert-card__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; margin: 0; }
.concert-card__place { font-size: var(--fs-xs); margin-top: 4px; opacity: .85; }
.concert-card__date { align-self: flex-end; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1; }

.concerts-archive[data-view-target="list"] .concerts { grid-template-columns: 1fr; gap: 0; }
.concerts-archive[data-view-target="list"] .concert-card {
	aspect-ratio: auto; flex-direction: row; align-items: center; gap: 16px;
	background: none; border: 0; border-bottom: 1px solid var(--c-line-soft); padding: 14px 0; color: var(--c-text);
}
.concerts-archive[data-view-target="list"] .concert-card__img,
.concerts-archive[data-view-target="list"] .concert-card::after { display: none; }
.concerts-archive[data-view-target="list"] .concert-card__date { order: -1; align-self: center; min-width: 90px; font-size: var(--fs-lg); }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
	padding: 8px 14px; border: 1px dashed var(--c-line); background: none; cursor: pointer;
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted);
}
.view-toggle button[aria-pressed="true"] { border-style: solid; border-color: var(--c-text); background: var(--c-highlight); color: var(--c-text); }

.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-sm); }
.info-list li:last-child { border-bottom: 0; }
.info-list span:first-child { color: var(--c-muted); }
.poster { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.poster img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   7. Obavijesti
   ========================================================= */
.notices-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.notices-head .eyebrow { margin: 0; }
.notice-list { list-style: none; border-top: 1px solid var(--c-line-soft); }
.notice-row { border-bottom: 1px solid var(--c-line-soft); }
.notice-row a {
	display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
	padding: 14px 0; text-decoration: none;
}
.notice-row a:hover .notice-row__title { text-decoration: underline; }
.notice-row__title { font-size: var(--fs-md); line-height: 1.35; }
.notice-row__date { font-size: var(--fs-sm); color: var(--c-muted); white-space: nowrap; text-align: right; min-width: 52px; }
.notice-row__groups { display: flex; gap: 4px; }
.notices-filters { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); margin-bottom: 8px; }
.count { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 16px; }
.empty { padding: 24px 0; color: var(--c-muted); }

.shortcuts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shortcuts a {
	display: inline-flex; min-height: 34px; align-items: center;
	padding: 4px 14px; border: 1px solid var(--c-line); border-radius: 999px;
	font-size: var(--fs-sm); text-decoration: none;
}
.shortcuts a:hover { border-color: var(--c-text); background: var(--c-highlight); }

.notice-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: var(--fs-sm); color: var(--c-muted); }

/* =========================================================
   8. Dokumenti (akordeon)
   ========================================================= */
.accordion { border-top: 1px solid var(--c-line); }
.accordion details { border-bottom: 1px solid var(--c-line); }
.accordion summary {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 16px 4px; cursor: pointer; list-style: none;
	font-size: var(--fs-md); font-weight: 700;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 400; color: var(--c-muted); font-size: var(--fs-lg); line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion summary small { font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); margin-left: auto; }
.doc-list { list-style: none; padding: 0 4px 14px; }
.doc-list li { border-top: 1px solid var(--c-line-soft); }
.doc-list a, .doc-list .doc-row {
	display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center;
	padding: 10px 0; text-decoration: none; font-size: var(--fs-sm);
}
.doc-list a:hover .doc-title { text-decoration: underline; }
.doc-list .icon { color: var(--c-muted); }
.doc-meta { font-size: var(--fs-xs); color: var(--c-muted); white-space: nowrap; }
.doc-desc { display: block; color: var(--c-muted); font-size: var(--fs-xs); }

/* =========================================================
   9. Natječaji (tablica)
   ========================================================= */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 400; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding: 10px 8px 10px 0; border-bottom: 1px solid var(--c-text); }
.table td { padding: 16px 8px 16px 0; border-bottom: 1px solid var(--c-line-soft); vertical-align: middle; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.status {
	display: inline-flex; justify-content: center; min-width: 96px; padding: 3px 10px;
	border: 1px solid var(--c-line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.status--otvoren { border-color: var(--c-text); background: var(--c-highlight); font-weight: 700; }
.status--rezultati { border-style: dashed; border-color: var(--c-text); }

/* =========================================================
   10. Kartice (programi, projekti, odjeli)
   ========================================================= */
.cards { list-style: none; display: grid; gap: 16px; }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--c-line); padding: 18px; text-decoration: none; background: var(--c-bg);
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.card:hover { border-color: var(--c-text); transform: translateY(-2px); }
.card h2, .card h3 { font-size: var(--fs-md); font-weight: 700; margin: 0 0 8px; }
.card p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 12px; }
.card__meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--c-line-soft); font-size: var(--fs-xs); color: var(--c-muted); }
.card .ph, .card .media { height: 48px; min-height: 48px; width: 60%; margin-bottom: 14px; }
.card .media img { object-fit: contain; object-position: left center; }
.card__place { font-size: var(--fs-xs); letter-spacing: .12em; color: var(--c-muted); margin-bottom: 8px; }

.project-list { list-style: none; display: grid; gap: 16px; }
.project {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center;
	border: 1px solid var(--c-line); padding: 14px; text-decoration: none;
	transition: border-color .2s var(--ease);
}
a.project:hover { border-color: var(--c-text); }
.project .ph, .project .media { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
.project h3 { font-size: var(--fs-md); font-weight: 700; margin: 0 0 6px; }
.project p { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--c-muted); }
.project__meta { font-size: var(--fs-xs); color: var(--c-muted); }
.partners { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.partners li { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px; border: 1px solid var(--c-line-soft); background: var(--c-surface); font-size: var(--fs-xs); text-align: center; color: var(--c-muted); }

.subjects { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.subjects li { padding: 10px 12px; border: 1px dashed var(--c-line); background: var(--c-surface); font-size: var(--fs-sm); }

/* Kartice (tabs) — Upisi */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--c-line); margin-bottom: 28px; }
.tabs__list [role="tab"] {
	padding: 12px 18px; margin-bottom: -1px;
	border: 1px solid transparent; background: none; cursor: pointer;
	font-size: var(--fs-sm); color: var(--c-muted);
}
.tabs__list [role="tab"][aria-selected="true"] { border-color: var(--c-line); border-bottom-color: var(--c-bg); background: var(--c-bg); color: var(--c-text); }
.tabs__list [role="tab"]:hover { color: var(--c-text); }
.no-js .tabs__list { display: none; }

/* Pretraga */
.search-big { display: flex; max-width: 640px; border: 1px solid var(--c-text); }
.search-big input { flex: 1; min-height: 48px; padding: 8px 14px; border: 0; font: inherit; font-size: var(--fs-md); background: transparent; }
.search-big input:focus { outline: none; }
.search-big:focus-within { box-shadow: 0 0 0 1px var(--c-text); }
.search-big button { border: 0; border-left: 1px solid var(--c-line); background: none; padding: 0 16px; cursor: pointer; }
.search-form { display: flex; border: 1px solid var(--c-line); }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 44px; padding: 8px 12px; border: 0; font: inherit; }
.search-form .search-submit { border: 0; border-left: 1px solid var(--c-line); background: var(--c-surface); padding: 0 14px; cursor: pointer; font: inherit; font-size: var(--fs-sm); }
.result-group { margin-top: 28px; }
.result-group h2 { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding-bottom: 8px; border-bottom: 1px solid var(--c-line); margin: 0; }
.result-list { list-style: none; }
.result-list li { border-bottom: 1px solid var(--c-line-soft); }
.result-list a { display: block; padding: 12px 0; text-decoration: none; }
.result-list strong { display: block; font-weight: 700; }
.result-list span { font-size: var(--fs-sm); color: var(--c-muted); }
.result-list a:hover strong { text-decoration: underline; }
.suggest { list-style: none; }
.suggest li { border-bottom: 1px solid var(--c-line-soft); }
.suggest a { display: block; padding: 10px 0; text-decoration: none; font-size: var(--fs-sm); }
.suggest a:hover { text-decoration: underline; }

/* Paginacija */
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--c-line); text-decoration: none; font-size: var(--fs-sm); padding: 0 10px; }
.pagination .current { border-color: var(--c-text); background: var(--c-highlight); }

/* =========================================================
   11. Podnožje i "Česta pitanja"
   ========================================================= */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.site-footer h2.eyebrow { color: var(--c-text); font-weight: 700; }
.footer-contact { display: grid; gap: 4px; font-size: var(--fs-sm); margin-bottom: 14px; }
.footer-contact a { text-decoration: none; }
.links { list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); }
.links a { color: var(--c-muted); }
.links a:hover { color: var(--c-text); }
.social { list-style: none; display: flex; gap: 8px; }
.social a, .social__ph { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); }
.social__ph { color: var(--c-faint); }
.social a:hover { border-color: var(--c-text); }
.site-footer__bottom { border-top: 1px solid var(--c-line); padding-top: 14px; padding-bottom: 20px; font-size: var(--fs-xs); color: var(--c-muted); }
.site-footer__bottom p { margin: 0; }

.faq-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 8px 18px;
	border: 1px solid var(--c-text); border-radius: 999px;
	background: var(--c-bg); cursor: pointer;
	font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
	box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .25);
	transition: transform .2s var(--ease);
}
.faq-fab:hover { transform: translateY(-2px); }
.faq-fab span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.faq-dialog {
	width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px);
	padding: 0; border: 1px solid var(--c-text); background: var(--c-bg); color: var(--c-text);
}
.faq-dialog::backdrop { background: rgba(20, 20, 20, .35); }
.faq-dialog[open] { display: flex; flex-direction: column; animation: mega-in .2s var(--ease) both; }
.faq-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.faq-dialog__head h2 { font-size: var(--fs-lg); margin: 0; }
.faq-dialog__body { padding: 8px 20px 16px; overflow-y: auto; }
.faq-dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--c-line); }

/* =========================================================
   12. Animacije (poštuju "smanji pokrete")
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   13. Responzivno
   ========================================================= */
@media (max-width: 1240px) {
	.header-search { width: 140px; }
	.nav__btn { padding: 7px 8px; font-size: 11px; }
	.concerts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
	:root { --header-h: 68px; }
	.nav, .header-search, .mega { display: none !important; }
	.icon-btn--search, .icon-btn--menu { display: inline-flex; }
	.icon-btn--menu { border-color: var(--c-text); }
	.home-split, .layout--sidebar { grid-template-columns: 1fr; }
	.layout--subnav, .layout--subnav-aside { grid-template-columns: 1fr; gap: 8px; }
	.subnav { padding-top: 16px; }
	.subnav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.subnav a { border-left: 0; border: 1px solid var(--c-line-soft); white-space: nowrap; }
	.subnav a[aria-current="page"] { border-color: var(--c-text); }
	.upisi-strip__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.upisi-strip__list li { flex: 0 0 min(240px, 70vw); scroll-snap-align: start; }
	.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.concerts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cards--5, .cards--4 { grid-template-columns: 1fr; }
	.notice-row a { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge date" "title title"; gap: 8px 12px; }
	.notice-row .badge { grid-area: badge; justify-self: start; }
	.notice-row__title { grid-area: title; }
	.notice-row__date { grid-area: date; }
	.notice-row__groups { display: none; }
	.hero__media, .hero .ph { aspect-ratio: 4 / 3; min-height: 0; }
	.project { grid-template-columns: 84px minmax(0, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.table thead { display: none; }
	.table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line-soft); }
	.table td { border: 0; padding: 0; }
	.table td:nth-child(2) { grid-column: 1 / -1; order: -1; font-weight: 700; }
	.table td[data-label]::before { content: attr(data-label) " "; color: var(--c-muted); font-size: var(--fs-xs); }
	.faq-fab { right: 12px; bottom: 12px; padding: 8px 14px; }
	.brand__placeholder { min-width: 0; font-size: 10px; }
}

/* WordPress poravnanja */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 6px; }
