/* ==========================================================================
   Akademija Finance – tema 2.0
   Prva stran, glava in noga brez Elementorja. Vizualno usklajeno s finance.si.
   ========================================================================== */

/* Pisava Inter (lokalno, variabilna 400–800) --------------------------------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Pisava Barlow (lokalno, 400/500/600/700) – meni in besedilo kot na FMCG ------- */
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/barlow-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Pisavi Archivo in Archivo Narrow (lokalno, variabilni) – naslovi kot na FMCG */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo Narrow";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/archivo-narrow-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo Narrow";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/archivo-narrow-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Oblikovni žetoni ------------------------------------------------------------ */
:root {
	--af-red: #e00000;
	--af-red-d: #b40000;
	--af-ink: #121212;
	--af-text: #2a2623;
	--af-soft: #4d4642;
	--af-muted: #6f6660;
	--af-bg: #f9ece6;     /* nežna podlaga (kartice, gumbi, pasovi) */
	--af-bg-2: #f2dfd5;   /* temnejša podlaga (slike v nalaganju, glave) */
	--af-page: var(--af-bg); /* ozadje strani in glave */
	--af-paper: #ffffff;
	--af-hair: rgba(18, 18, 18, 0.13);
	/* Žetoni, ki ločijo vlogo barve – v svetlem videzu enaki osnovnim, v
	   temnem (spodaj) ne: rdeča za besedilo, obrnjena površina (temni gumbi,
	   značke, začetnice z belim besedilom) in stalno temna za besedilo na
	   površinah, ki ostanejo bele. */
	--af-red-t: var(--af-red);
	--af-inv: var(--af-ink);
	--af-dark: #121212;
	--af-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	/* Pisave po vlogah. Izbira v Nastavitve portala → Splošno (»Pisave«)
	   jih prepiše v vrstici <style> na body; tu so privzete (vse Inter). */
	--af-font-head: var(--af-font);
	--af-font-nav: var(--af-font);
	--af-nav-scale: 1;     /* ožje pisave rabijo večjo velikost v menijih */
	--af-nav-weight: 700;
	--af-nav-ls: 0.06em;
	--af-wrap: 1240px;
	--af-gutter: clamp(16px, 3vw, 24px);
	--af-radius: 3px;
	--af-topbar-h: 84px;
	--af-navbar-h: 48px;
	--af-admin: var(--wp-admin--admin-bar--height, 0px);
}

/* Barvna shema »Bela« (Nastavitve portala → Splošno): belo ozadje strani,
   nežne podlage v toplo sivi (kot FMCG #f4f3f1) namesto roza. */
body.af-scheme-bela {
	--af-bg: #f4f3f1;
	--af-bg-2: #e9e6e2;
	--af-page: #ffffff;
}

/* Temen videz (stikalo v glavi, inc/appearance.php): <html data-theme="dark">.
   Isti žetoni, druge vrednosti – velja za obe barvni shemi. Rdeča ostane
   blagovna (#e00000) kot ozadje; za besedilo na temni podlagi je svetlejša.
   Izjeme, ki jih žetoni ne pokrijejo, so na koncu vsake datoteke CSS. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
	--af-ink: #f5f3f0;
	--af-text: #d8d3ce;
	--af-soft: #bcb5af;
	--af-muted: #968e88;
	--af-bg: #1b1b1b;
	--af-bg-2: #2b2b2b;
	--af-page: #121212;
	--af-paper: #222222;
	--af-hair: rgba(255, 255, 255, 0.14);
	--af-red-t: #ff4a4a;
	--af-inv: #353535;
}
/* Tisk je vedno svetel (ozadja se ne tiskajo, svetlo besedilo bi izginilo). */
@media print {
	html[data-theme="dark"] body {
		--af-ink: #121212;
		--af-text: #2a2623;
		--af-soft: #4d4642;
		--af-muted: #6f6660;
		--af-bg: #f4f3f1;
		--af-bg-2: #e9e6e2;
		--af-page: #ffffff;
		--af-paper: #ffffff;
		--af-hair: rgba(18, 18, 18, 0.13);
		--af-red-t: var(--af-red);
		--af-inv: #121212;
	}
}

/* Osnova (samo na straneh/komponentah teme) ------------------------------------ */
body.af-theme-page {
	margin: 0;
	background: var(--af-page);
	color: var(--af-text);
	font-family: var(--af-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.af-header,
.af-main,
.af-footer,
.af-newsletter,
.af-drawer,
.af-ad {
	font-family: var(--af-font);
	-webkit-font-smoothing: antialiased;
}

.af-header *,
.af-header *::before,
.af-header *::after,
.af-main *,
.af-main *::before,
.af-main *::after,
.af-footer *,
.af-footer *::before,
.af-footer *::after,
.af-newsletter *,
.af-ad,
.af-ad *,
.af-drawer *,
.af-drawer *::before,
.af-drawer *::after {
	box-sizing: border-box;
}

.af-main img,
.af-header img,
.af-footer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.af-main a,
.af-header a,
.af-footer a,
.af-drawer a,
.af-newsletter a {
	color: inherit;
	text-decoration: none;
}

.af-main :focus-visible,
.af-header :focus-visible,
.af-footer :focus-visible,
.af-drawer :focus-visible,
.af-newsletter :focus-visible {
	outline: 2px solid var(--af-red);
	outline-offset: 2px;
}

.af-main h1,
.af-main h2,
.af-main h3,
.af-footer h3,
.af-newsletter h2 {
	color: var(--af-ink);
	font-family: var(--af-font-head);
	margin: 0;
}
.af-main :is(h4, h5, h6, [class$="__title"], [class*="__title "], [class$="__name"], [class*="__name "], .af-top__link) { font-family: var(--af-font-head); }
/* Inter ima tesen razmik v naslovih; druge pisave ga ne rabijo toliko. */
body.af-head-custom .af-main :is(h1, h2, h3, h4, [class$="__title"], [class*="__title "]) { letter-spacing: -0.01em; }

.af-wrap {
	width: 100%;
	max-width: var(--af-wrap);
	margin-inline: auto;
	padding-inline: var(--af-gutter);
}

.screen-reader-text,
.af-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
/* Povezava »Preskoči na vsebino« – vidna le ob premiku s tipkovnico. */
.skip-link.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	border-radius: 3px;
	background: var(--af-inv);
	color: #fff;
	font: 700 14px var(--af-font);
	text-decoration: none;
}

.af-icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
}

/* Gumbi ------------------------------------------------------------------------ */
.af-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 2px;
	font: 700 14px/1.2 var(--af-font);
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
	white-space: nowrap;
}

.af-btn--lg { padding: 14px 22px; font-size: 15px; }
.af-btn--block { display: flex; width: 100%; }
.af-btn--red { background: var(--af-red); color: #fff !important; }
.af-btn--red:hover { background: var(--af-red-d); }
.af-btn--white { background: #fff; color: var(--af-red) !important; }
.af-btn--white:hover { background: var(--af-inv); color: #fff !important; }
.af-btn--dark { background: var(--af-inv); color: #fff !important; }
.af-btn--dark:hover { background: var(--af-red); }
.af-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.45); }
.af-btn--ghost:hover { background: #fff; color: var(--af-dark) !important; }

.af-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--af-ink);
	cursor: pointer;
	transition: background-color 0.18s, color 0.18s;
}
.af-iconbtn:hover { background: rgba(18, 18, 18, 0.07); color: var(--af-red-t); }
.af-iconbtn .af-icon { width: 22px; height: 22px; }
.af-iconbtn--sm { width: 32px; height: 32px; border: 1px solid var(--af-hair); }

/* Stikalo svetel / temen videz: pokaže se ikona videza, na katerega preklopi. */
.af-theme-switch span { display: grid; }
html[data-theme="dark"] .af-theme-switch__to-dark,
html:not([data-theme="dark"]) .af-theme-switch__to-light { display: none; }
.af-iconbtn--sm .af-icon { width: 16px; height: 16px; }

/* Oglasi ----------------------------------------------------------------------- */
.af-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.af-ad__label {
	font: 600 10px/1 var(--af-font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--af-muted);
}
.af-ad__inner { width: 100%; }

/* Rezerviran prostor za oglas, dokler ga Advanced Ads (cache busting) ne
   vstavi v brskalniku. Brez tega stran ob prihodu oglasa poskoči – najbolj
   pri pasici nad glavo. Razred sprosti af.js: .is-filled ko oglas pride,
   .is-empty ko ga po nekaj sekundah ni. */
.af-ad--reserved .af-ad__inner {
	aspect-ratio: var(--af-ad-w) / var(--af-ad-h);
	max-height: 70vh;
}
.af-ad--reserved.is-filled .af-ad__inner,
.af-ad--reserved.is-empty .af-ad__inner {
	aspect-ratio: auto;
	max-height: none;
}
.af-ad__inner img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.af-ad--leaderboard { width: 100%; max-width: var(--af-wrap); margin-inline: auto; padding: 18px var(--af-gutter); }
/* Pasica nad glavo v polni širini vsebine (oglasi so 1200×250). */
.af-ad--leaderboard .af-ad__inner { max-width: 1200px; }
.af-layout__side .af-ad .af-ad__inner > * + * { margin-top: 16px; }
.af-ad.is-empty { padding: 0 !important; background: none !important; gap: 0; }
.af-ad.is-empty .af-ad__label { display: none; }
.af-ad--card {
	justify-content: center;
	padding: 12px;
	background: var(--af-paper);
	border-radius: var(--af-radius);
}

/* ==========================================================================
   Glava
   ========================================================================== */
.af-header {
	position: sticky;
	top: calc(var(--af-admin) - var(--af-topbar-h));
	z-index: 90;
	background: var(--af-page);
}

.af-topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--af-topbar-h);
}

.af-logo { display: block; flex: none; }
.af-header .af-logo__img { height: 50px; width: auto; }
.af-logo__text { font-weight: 800; font-size: 22px; color: var(--af-ink); }

.af-topbar__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
	min-width: 0;
}

.af-today {
	padding-left: 24px;
	border-left: 1px solid var(--af-hair);
	font-size: 13px;
	font-weight: 500;
	color: var(--af-muted);
	white-space: nowrap;
}

.af-topnav { margin-left: auto; }
.af-topnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-topnav__list a {
	font-family: var(--af-font-nav);
	font-size: calc(12px * var(--af-nav-scale));
	font-weight: var(--af-nav-weight);
	letter-spacing: calc(var(--af-nav-ls) - 0.01em);
	text-transform: uppercase;
	color: var(--af-ink);
	transition: color 0.15s;
}
.af-topnav__list a:hover,
.af-topnav__list .current-menu-item > a { color: var(--af-red-t); }

.af-topbar__actions { display: flex; align-items: center; gap: 4px; }
.af-menu-toggle { display: none; flex: none; margin-left: -8px; color: #fff; }
.af-menu-toggle:hover { background: rgba(0, 0, 0, 0.15); color: #fff; }

.af-navbar {
	background: var(--af-red);
	color: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s;
}
.af-header.is-stuck .af-navbar { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45); }

.af-navbar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--af-navbar-h);
}

.af-navbar__mark {
	display: flex;
	align-items: center;
	flex: none;
	max-width: 0;
	height: 32px;
	overflow: hidden;
	opacity: 0;
	background: #fff;
	border-radius: 2px;
	transition: max-width 0.25s, opacity 0.25s, padding 0.25s, margin 0.25s;
}
.af-header .af-navbar__mark img { height: 24px; width: auto; max-width: none; }
.af-header.is-stuck .af-navbar__mark { max-width: 120px; opacity: 1; padding: 0 8px; margin-right: 8px; }

.af-mainnav { min-width: 0; flex: 1; }
.af-mainnav__list {
	display: flex;
	margin: 0 0 0 -12px;
	padding: 0;
	list-style: none;
}
.af-mainnav__list a {
	display: block;
	padding: 0 12px;
	line-height: var(--af-navbar-h);
	font-family: var(--af-font-nav);
	font-size: calc(13px * var(--af-nav-scale));
	font-weight: var(--af-nav-weight);
	letter-spacing: var(--af-nav-ls);
	text-transform: uppercase;
	color: #fff !important;
	white-space: nowrap;
	transition: background-color 0.15s;
}
.af-drawer__list a { font-family: var(--af-font-nav); }
.af-mainnav__list a:hover { background: rgba(0, 0, 0, 0.14); }
.af-mainnav__list .current-menu-item > a { background: rgba(0, 0, 0, 0.2); }

.af-navbar__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	margin-left: auto;
	padding: 8px 14px;
	border-radius: 2px;
	background: #fff;
	color: var(--af-red) !important;
	font-family: var(--af-font-nav);
	font-size: calc(13px * var(--af-nav-scale));
	font-weight: 800;
	letter-spacing: 0.02em;
	transition: background-color 0.15s, color 0.15s;
}
.af-navbar__cta:hover { background: var(--af-inv); color: #fff !important; }
.af-navbar :focus-visible { outline-color: #fff; }

/* Iskanje */
.af-search {
	position: absolute;
	inset: 100% 0 auto;
	background: var(--af-paper);
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
	padding-block: 18px;
}
.af-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--af-ink);
	padding-bottom: 8px;
}
.af-search__form .af-icon { width: 24px; height: 24px; color: var(--af-muted); }
.af-search__form input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: 500 20px/1.3 var(--af-font);
	color: var(--af-ink);
	padding: 8px 0;
	outline: none;
	box-shadow: none;
}

/* Iskanje med tipkanjem (spustni seznam pod poljem) ---------------------- */
.af-search__inner { position: relative; }
.af-live {
	margin-top: 10px;
	max-height: min(62vh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.af-live__group + .af-live__group { margin-top: 4px; border-top: 1px solid var(--af-hair); padding-top: 10px; }
.af-live__label {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--af-red-t);
}
.af-live__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	margin-inline: -10px;
	border-radius: var(--af-radius);
	color: var(--af-ink) !important;
	text-decoration: none;
}
.af-live__item.is-active,
.af-live__item:hover { background: var(--af-bg); }
.af-live__thumb {
	width: 48px;
	height: 48px;
	border-radius: 2px;
	overflow: hidden;
	background: var(--af-bg-2);
	flex: none;
}
.af-live__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.af-live__text { min-width: 0; display: block; }
.af-live__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.af-live__meta {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--af-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.af-live__all {
	display: block;
	margin-top: 10px;
	padding: 11px 10px;
	margin-inline: -10px;
	border-top: 1px solid var(--af-hair);
	border-radius: var(--af-radius);
	font-size: 14px;
	font-weight: 700;
	color: var(--af-red-t) !important;
	text-decoration: none;
}
.af-live__all.is-active,
.af-live__all:hover { background: var(--af-bg); }
.af-live__msg { margin: 10px 0 2px; font-size: 14.5px; color: var(--af-soft); }

.af-live--drawer { margin-top: 6px; max-height: 46vh; }
.af-live--drawer .af-live__item { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.af-live--drawer .af-live__thumb { width: 40px; height: 40px; }
.af-live--drawer .af-live__title { font-size: 14px; }

/* Mobilni predal */
.af-drawer { position: fixed; inset: 0; z-index: 1000; }
.af-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.af-drawer__panel {
	position: absolute;
	inset: 0 0 0 auto;
	width: min(380px, 88vw);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 22px 32px;
	background: var(--af-paper);
	overflow-y: auto;
	animation: af-slide 0.22s ease-out;
}
@keyframes af-slide { from { transform: translateX(24px); opacity: 0; } }
.af-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.af-drawer__title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.af-drawer__search { display: flex; border: 1px solid var(--af-hair); border-radius: 2px; }
.af-drawer__search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: 500 16px var(--af-font); background: transparent; }
.af-drawer__list { margin: 0; padding: 0; list-style: none; }
.af-drawer__list a {
	display: block;
	padding: 13px 0;
	border-bottom: 1px solid var(--af-hair);
	font-size: 17px;
	font-weight: 600;
	color: var(--af-ink);
}
.af-drawer__list a:hover { color: var(--af-red-t); }
body.af-lock { overflow: hidden; }

/* ==========================================================================
   Trak prihajajočih dogodkov
   ========================================================================== */
.af-strip { position: relative; }
.af-strip__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 78px;
}
.af-strip__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	padding-right: 16px;
	border-right: 2px solid var(--af-red);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--af-red-t) !important;
}
.af-pulse {
	position: relative;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--af-red);
}
.af-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--af-red);
	animation: af-pulse 1.8s ease-out infinite;
}
@keyframes af-pulse { to { transform: scale(2.8); opacity: 0; } }

.af-strip__viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.af-strip__viewport::-webkit-scrollbar { display: none; }
/* Drsenje: snap bi vsak premik po pikslih potegnil nazaj na dogodek. */
.af-strip--flow .af-strip__viewport { scroll-snap-type: none; }
.af-strip__list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.af-strip__item {
	flex: 0 0 272px;
	scroll-snap-align: start;
}
.af-strip__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 8px 12px 8px 8px;
	border-radius: 6px;
	transition: background-color 0.2s;
}
.af-strip__item a:hover,
.af-strip__item a:focus-visible { background: var(--af-bg); }
.af-strip__date {
	display: grid;
	place-content: center;
	flex: none;
	width: 50px;
	height: 54px;
	border: 1px solid var(--af-hair);
	border-top: 3px solid var(--af-red);
	border-radius: 4px;
	background: var(--af-paper);
	text-align: center;
	line-height: 1;
	transition: border-color 0.2s, transform 0.2s;
}
.af-strip__date strong { font-size: 21px; font-weight: 800; color: var(--af-ink); letter-spacing: -0.02em; }
.af-strip__date span { margin-top: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--af-red-t); }
.af-strip__item a:hover .af-strip__date { transform: translateY(-2px); border-color: var(--af-red); }
.af-strip__body { display: grid; gap: 5px; min-width: 0; }
.af-strip__when { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--af-muted); }
.af-strip__when > span:not(.af-soldout) { display: inline-flex; align-items: center; gap: 4px; }
.af-strip__when .af-icon { width: 13px; height: 13px; }
.af-strip__when:empty { display: none; }
.af-strip__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	color: var(--af-ink);
	transition: color 0.15s;
}
.af-strip__item a:hover .af-strip__title { color: var(--af-red-t); }
.af-strip__nav { display: flex; gap: 6px; flex: none; }
.af-strip__toggle .af-strip__i-play,
.af-strip__toggle[aria-pressed="true"] .af-strip__i-pause { display: none; }
.af-strip__toggle[aria-pressed="true"] .af-strip__i-play { display: block; }

/* Časovni trak do naslednjega premika. */
.af-strip__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--af-hair);
	overflow: hidden;
}
.af-strip__progress span {
	display: block;
	height: 100%;
	background: var(--af-red);
	transform: scaleX(0);
	transform-origin: left;
}
.af-strip.is-running .af-strip__progress span { animation: af-strip-progress var(--af-strip-delay, 5s) linear forwards; }
.af-strip.is-paused .af-strip__progress span { animation-play-state: paused; }
.af-strip.is-stopped .af-strip__progress { opacity: 0; }
@keyframes af-strip-progress { to { transform: scaleX(1); } }

.af-soldout {
	display: inline-block;
	padding: 3px 6px;
	border: 1px solid var(--af-red);
	border-radius: 2px;
	color: var(--af-red-t);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}
.af-soldout--lg { background: #fff; color: var(--af-red); padding: 6px 9px; font-size: 11px; }

/* ==========================================================================
   Kartice
   ========================================================================== */
.af-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.af-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--af-radius);
	background: var(--af-bg-2);
}
.af-card__media img,
.af-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.af-thumb-placeholder { background: linear-gradient(135deg, #f0d6c9, #e6c1b1); }
.af-card:hover .af-card__media img { transform: scale(1.035); }
.af-card__media { transition: box-shadow 0.25s ease, transform 0.25s ease; }
@media (hover: hover) {
	.af-card:not(.af-card--compact):not(.af-card--text):hover .af-card__media { transform: translateY(-3px); box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.5); }
}
.af-card--event .af-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 4px;
	background: var(--af-red);
}

.af-card__badge { position: absolute; top: 10px; left: 10px; }

.af-badge {
	display: inline-block;
	padding: 5px 7px 4px;
	border-radius: 2px;
	background: var(--b, var(--af-inv));
	color: var(--f, #fff);
	font-size: 10.5px;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}
.af-badge--light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }

.af-datechip {
	position: absolute;
	left: 10px;
	bottom: 12px;
	display: grid;
	justify-items: center;
	min-width: 48px;
	padding: 6px 6px 5px;
	border-radius: 2px;
	background: #fff;
	color: var(--af-dark);
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.af-datechip__d { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.af-datechip__m { margin-top: 3px; font-size: 10.5px; font-weight: 750; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--af-red); }
.af-datechip--lg { left: 16px; bottom: 16px; min-width: 70px; padding: 10px 8px 8px; }
.af-datechip--lg .af-datechip__d { font-size: 32px; }
.af-datechip--lg .af-datechip__m { font-size: 12px; }

.af-card__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.af-card__title {
	font-size: 17px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -0.012em;
	color: var(--af-ink);
	text-wrap: pretty;
}
.af-card__title a {
	background-image: linear-gradient(var(--af-red), var(--af-red));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size 0.3s, color 0.15s;
}
.af-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.af-card:hover .af-card__title a { background-size: 100% 2px; }

.af-card__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--af-soft); }

.af-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--af-muted);
}
.af-meta { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.af-meta .af-icon { width: 14px; height: 14px; }
.af-meta--date { color: var(--af-red-t); font-weight: 700; }
.af-meta--loc { overflow: hidden; }

.af-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--af-ink);
}
.af-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: var(--k, var(--af-red));
}

/* Različica: glavna (lead) */
.af-card--lead { gap: 16px; }
.af-card--lead .af-card__media { aspect-ratio: 16 / 9; }
.af-card--lead .af-card__title { font-size: clamp(26px, 2.7vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; }
.af-card--lead .af-card__title a { background-size: 0 3px; }
.af-card--lead:hover .af-card__title a { background-size: 100% 3px; }
.af-card--lead .af-card__excerpt { font-size: 17px; max-width: 62ch; }

/* Različica: kompaktna (sličica levo) */
.af-card--compact {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}
.af-card--compact .af-card__media { aspect-ratio: 1; }
.af-card--compact .af-card__title { font-size: 15px; line-height: 1.3; }
.af-card--compact .af-card__body { gap: 5px; }

/* Različica: široka (vodilna v rubriki) */
.af-card--wide {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--af-hair);
}
.af-card--wide .af-card__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.af-card--wide .af-card__body { gap: 12px; }

/* Mreže */
.af-grid { display: grid; gap: 34px 24px; grid-template-columns: repeat(var(--af-cols, 3), minmax(0, 1fr)); }
.af-grid--3 { --af-cols: 3; }
.af-grid--4 { --af-cols: 4; }
.af-posts + .af-posts { margin-top: 0; }
.af-list { display: grid; gap: 0 28px; grid-template-columns: repeat(var(--afs-cols, 1), minmax(0, 1fr)); }
.af-list .af-card { padding-block: 16px; border-top: 1px solid var(--af-hair); }

/* ==========================================================================
   Udarni del (hero)
   ========================================================================== */
.af-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.af-hero__side { display: flex; flex-direction: column; gap: 22px; }
.af-hero__side .af-ad { padding: 12px; background: var(--af-paper); border-radius: var(--af-radius); }
.af-hero__list { display: flex; flex-direction: column; }
.af-hero__list .af-card { padding-block: 16px; border-top: 1px solid var(--af-hair); }
.af-hero__list .af-card:first-child { border-top: 0; padding-top: 0; }
.af-hero__row { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--af-hair); }

/* ==========================================================================
   Top vsebine
   ========================================================================== */
.af-top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding-block: 18px 22px;
	border-top: 3px solid var(--af-ink);
	border-bottom: 1px solid var(--af-hair);
}
.af-main .af-top__label {
	padding: 7px 11px 6px;
	background: var(--af-red);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
}
.af-top__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-top__item { display: flex; gap: 12px; }
.af-top__num {
	flex: none;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--af-red);
	font-variant-numeric: tabular-nums;
}
.af-top__link {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 5px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.32;
	color: var(--af-ink);
}
.af-top__link:hover { color: var(--af-red-t); }

/* ==========================================================================
   Izpostavljen dogodek
   ========================================================================== */
.af-spot { color: #fff; text-align: left; }
.af-spot__bg {
	position: absolute;
	inset: -60px;
	z-index: -2;
	background: center / cover no-repeat;
	filter: blur(30px) saturate(1.3);
	opacity: 0.4;
}
.af-spot::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1200px 400px at 100% 0%, rgba(224, 0, 0, 0.28), transparent 60%),
		linear-gradient(90deg, rgba(17, 17, 17, 0.97) 30%, rgba(17, 17, 17, 0.72));
}
.af-spot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 56px;
	align-items: center;
}
.af-spot__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.af-spot__flag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
}
.af-spot__flag::before { content: ""; width: 22px; height: 3px; background: var(--af-red); }
.af-main .af-spot__title {
	margin-bottom: 16px;
	font-size: clamp(28px, 3.5vw, 48px);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: balance;
}
.af-spot__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--af-red); }
.af-spot__intro { max-width: 60ch; margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.af-spot__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}
.af-spot__facts li { display: inline-flex; align-items: center; gap: 9px; }
.af-spot__facts .af-icon { color: #ff4a4a; width: 18px; height: 18px; }

.af-countdown { display: flex; gap: 10px; margin-bottom: 30px; }
.af-countdown > div {
	min-width: 76px;
	padding: 12px 10px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--af-radius);
	background: rgba(255, 255, 255, 0.06);
	text-align: center;
}
.af-countdown strong { display: block; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.af-countdown span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

.af-spot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.af-addcal { position: relative; }
.af-addcal > summary { list-style: none; }
.af-addcal > summary::-webkit-details-marker { display: none; }
.af-addcal__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 5;
	min-width: 230px;
	padding: 6px;
	border-radius: var(--af-radius);
	background: var(--af-paper);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}
.af-addcal__menu a { display: block; padding: 10px 12px; border-radius: 2px; font-size: 14px; font-weight: 600; color: var(--af-ink) !important; }
.af-addcal__menu a:hover { background: var(--af-bg); color: var(--af-red-t) !important; }

.af-spot__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--af-radius);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.af-spot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.af-spot__media:hover img { transform: scale(1.03); }

/* ==========================================================================
   Postavitev z stranskim stolpcem + rubrike
   ========================================================================== */
.af-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 48px;
	align-items: start;
	margin-top: 52px;
}
.af-layout__side { display: flex; flex-direction: column; gap: 28px; }
.af-layout__main > .af-ad { margin-top: 44px; }

.af-section + .af-section { margin-top: 56px; }

.af-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-top: 12px;
	border-top: 3px solid var(--af-ink);
}
.af-main .af-sec-head__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}
.af-sec-head__title::before { content: ""; width: 10px; height: 10px; background: var(--af-red); }
.af-sec-head__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--af-ink);
	white-space: nowrap;
	transition: color 0.15s, gap 0.15s;
}
.af-sec-head__more:hover { color: var(--af-red-t); gap: 9px; }
.af-sec-head__more .af-icon { width: 16px; height: 16px; }

/* Koledar v stranskem stolpcu */
.af-cal {
	padding: 20px 20px 22px;
	border-top: 4px solid var(--af-red);
	background: var(--af-paper);
}
.af-main .af-cal__title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.af-cal__title .af-icon { color: var(--af-red-t); }
.af-main .af-cal__month {
	margin: 20px 0 2px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--af-hair);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--af-red-t);
}
.af-cal__list { margin: 0; padding: 0; list-style: none; }
.af-cal__item + .af-cal__item { border-top: 1px dashed var(--af-hair); }
.af-cal__link {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 14px;
	padding-block: 13px;
}
.af-cal__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 58px;
	border-radius: var(--af-radius);
	background: var(--af-bg);
	transition: background-color 0.15s, color 0.15s;
}
.af-cal__day { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.af-cal__day--range { font-size: 14px; }
.af-cal__mon { margin-top: 4px; font-size: 10.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--af-red-t); }
.af-cal__link:hover .af-cal__date { background: var(--af-red); color: #fff; }
.af-cal__link:hover .af-cal__mon { color: #fff; }
.af-cal__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.af-cal__name { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--af-ink); transition: color 0.15s; }
.af-cal__link:hover .af-cal__name { color: var(--af-red-t); }
.af-cal__where { font-size: 12.5px; color: var(--af-muted); }
.af-cal__empty { color: var(--af-muted); }
.af-cal > .af-btn { margin-top: 16px; }

/* Dogodki po vrstah */
.af-types__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-type {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 20px 18px 46px;
	border-top: 4px solid var(--t);
	border-radius: 0 0 var(--af-radius) var(--af-radius);
	background: var(--af-paper);
	transition: transform 0.2s, box-shadow 0.2s;
}
.af-type:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.45); }
.af-type__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--af-ink); }
.af-type__count { font-size: 13px; font-weight: 700; color: var(--t); }
.af-type__next {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--af-muted);
}
.af-type__arrow { position: absolute; right: 16px; bottom: 14px; color: var(--t); transition: transform 0.2s; }
.af-type:hover .af-type__arrow { transform: translateX(4px); }

/* Dogodki po vrstah – dizajnerske ploščice (fotografija / barvne) */
.af-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	min-height: 260px;
	padding: 18px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--t);
	color: #fff !important;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.af-tile:hover,
.af-tile:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 28px 48px -26px color-mix(in srgb, var(--t) 70%, #000);
}
.af-tile:focus-visible { outline: 3px solid var(--af-ink); outline-offset: 3px; }

/* Fotografija: sivinska, obarvana z barvo vrste, spodaj temnejša za berljivost. */
.af-tile__media { position: absolute; inset: 0; z-index: -1; background: var(--t); }
.af-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.1);
	transform: scale(1.02);
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
}
/* Barva vrste čez sliko (ne multiply – pri črni bi slika izginila) in temnejši spodnji del. */
.af-tile__media::before,
.af-tile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	transition: opacity 0.5s;
}
.af-tile__media::before { background: var(--t); opacity: 0.68; }
.af-tile__media::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 32%, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}
.af-tile:hover .af-tile__media::before { opacity: 0.5; }
.af-tile:hover .af-tile__media img { transform: scale(1.09); filter: grayscale(0.35) contrast(1.05); }

.af-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.af-tile__count { display: grid; gap: 4px; line-height: 1; }
.af-tile__count strong { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.af-tile__count span {
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.92;
}
.af-tile__pill {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
	background: rgba(255, 255, 255, 0.12);
}
.af-tile__bottom { display: grid; gap: 8px; }
.af-tile__name { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.af-tile__next {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.4;
	opacity: 0.92;
}
.af-tile__next time {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #fff;
	color: var(--t);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.af-tile__next--empty { opacity: 0.75; }
.af-tile__go {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.af-tile__go .af-icon { width: 16px; height: 16px; }
.af-tile:hover .af-tile__go { background: #fff; color: var(--t); transform: translateX(3px); }

/* Fotografije: višje, pokončne ploščice. */
.af-types--photo .af-tile { min-height: 0; aspect-ratio: 3 / 4; }

/* Barvne ploščice: velika številka v ozadju, rahel sij v kotu. */
.af-types--color .af-tile {
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
		linear-gradient(160deg, var(--t), color-mix(in srgb, var(--t) 72%, #000));
}
.af-types--color .af-tile::before {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -40px;
	z-index: -1;
	width: 160px;
	height: 160px;
	border: 26px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.af-types--color .af-tile:hover::before { transform: scale(1.25); }
.af-types--color .af-tile__count strong { font-size: 56px; }

@media (max-width: 600px) {
	.af-tile { padding: 14px; min-height: 220px; }
	.af-tile__name { font-size: 18px; }
	.af-tile__count strong { font-size: 34px; }
	.af-types--color .af-tile__count strong { font-size: 42px; }
	.af-tile__count span { font-size: 9.5px; }
	.af-tile__next { -webkit-line-clamp: 2; font-size: 12px; }
	.af-tile__go { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.af-tile, .af-tile__media img, .af-tile::before { transition: none !important; }
}

/* ==========================================================================
   E-novice + noga
   ========================================================================== */
.af-newsletter { background: var(--af-red); color: #fff; padding-block: 40px; }
.af-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; }
.af-newsletter .af-newsletter__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.af-newsletter__text { max-width: 60ch; margin: 6px 0 0; font-size: 16px; opacity: 0.92; }
.af-newsletter :focus-visible { outline-color: #fff; }

.af-footer { background: #141414; color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; }
.af-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-block: 56px 48px;
}
.af-footer__logo { display: inline-block; padding: 10px 12px; border-radius: var(--af-radius); background: #fff; }
.af-footer .af-footer__logo img { height: 40px; width: auto; }
.af-footer__about { max-width: 36ch; margin: 18px 0 20px; }
.af-social { display: flex; gap: 10px; }
.af-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.15s, border-color 0.15s;
}
.af-social a:hover { background: var(--af-red); border-color: var(--af-red); }
.af-social .af-icon { width: 17px; height: 17px; }
.af-footer .af-footer__h { margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.af-footer__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.af-footer__list a { display: inline-block; text-transform: lowercase; transition: color 0.15s; }
.af-footer__list a::first-letter { text-transform: uppercase; }
.af-footer__list a:hover { color: #fff; }
.af-footer__list--contact a { display: inline-flex; align-items: center; gap: 8px; text-transform: none; }
.af-footer__list--contact .af-icon { width: 16px; height: 16px; color: var(--af-red-t); }
.af-footer__address { margin: 0 0 12px; font-style: normal; }
.af-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12.5px; }
.af-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.af-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.af-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Odzivnost
   ========================================================================== */
@media (max-width: 1180px) {
	.af-today { display: none; }
	.af-types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.af-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}

@media (max-width: 960px) {
	:root { --af-topbar-h: 64px; --af-navbar-h: 46px; }
	.af-header .af-logo__img { height: 38px; }
	.af-topnav { display: none; }
	.af-menu-toggle { display: inline-grid; }

	.af-mainnav { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.af-mainnav::-webkit-scrollbar { display: none; }
	.af-mainnav__list a { padding: 0 11px; font-size: calc(12.5px * var(--af-nav-scale)); }
	.af-navbar__cta span { display: none; }
	.af-navbar__cta { padding: 8px 10px; }

	.af-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-list { grid-template-columns: minmax(0, 1fr); }
	.af-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.af-top .af-top__label { justify-self: start; }
	.af-top__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.af-spot__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 44px; }
	.af-spot__media { order: -1; aspect-ratio: 16 / 9; }

	.af-layout { grid-template-columns: minmax(0, 1fr); }
	.af-layout__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

	.af-card--wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.af-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-newsletter__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) {
	.af-strip__nav [data-af-scroll] { display: none; }
	.af-strip__label { padding-right: 12px; font-size: 11px; }
	.af-strip__item { flex-basis: 236px; }
	.af-strip__date { width: 44px; height: 48px; }
	.af-strip__date strong { font-size: 18px; }
}

@media (max-width: 600px) {
	.af-grid { grid-template-columns: minmax(0, 1fr); }
	.af-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-grid--4 { gap: 24px 14px; }
	.af-grid--4 .af-card__title { font-size: 15px; }
	.af-grid--4 .af-card__meta { font-size: 11.5px; }
	.af-grid--4 .af-card__badge { display: none; }
	.af-top__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.af-countdown > div { min-width: 0; flex: 1; padding-inline: 4px; }
	.af-countdown strong { font-size: 24px; }
	.af-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.af-type { padding: 16px 14px 40px; }
	.af-type__name { font-size: 16px; }
	.af-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.af-spot__actions .af-btn,
	.af-spot__actions .af-addcal { width: 100%; }
	.af-spot__actions .af-addcal > summary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.af-main *,
	.af-header *,
	.af-footer * {
		transition: none !important;
		animation: none !important;
	}
}

/* Pas prihajajočih dogodkov pod menijem na podstraneh (enako kot sekcija na prvi strani). */
.af-stripbar {
	position: relative;
	z-index: 2;
	background: var(--af-paper);
	padding-block: 10px;
	font-family: var(--af-font);
	-webkit-font-smoothing: antialiased;
	color: var(--af-text);
}
.af-stripbar *,
.af-stripbar *::before,
.af-stripbar *::after { box-sizing: border-box; }
.af-stripbar a { color: inherit; text-decoration: none; }
@media (max-width: 767px) {
	.af-stripbar { padding-block: 8px; }
}

/* Elementor »Custom CSS« nastavi html,body{height:100%;overflow-x:hidden}, s čimer
   se drsenje preseli na <body> (okno se ne drsi). Z novo glavo drsi okno;
   vodoravni preliv še vedno odrežemo (clip ne ustvari drsnega vsebnika). */
html:has(> body.af-chrome),
body.af-chrome {
	height: auto !important;
	overflow-x: clip !important;
	overflow-y: visible !important;
}

/* Zaščita pred »reset« slogi Hello Elementor (button:focus/:hover → roza #c36)
   na podstraneh, ki še tečejo na Elementorju. */
.af-iconbtn.af-iconbtn { border: 0; border-radius: 50%; padding: 0; font-size: inherit; background-color: transparent; color: var(--af-ink); }
.af-iconbtn.af-iconbtn:focus { background-color: transparent; color: var(--af-ink); }
.af-iconbtn.af-iconbtn:hover,
.af-iconbtn.af-iconbtn:focus-visible { background-color: rgba(18, 18, 18, 0.07); color: var(--af-red-t); }
.af-iconbtn--sm.af-iconbtn--sm { border: 1px solid var(--af-hair); }
.af-menu-toggle.af-menu-toggle,
.af-menu-toggle.af-menu-toggle:focus { color: #fff; }
.af-menu-toggle.af-menu-toggle:hover,
.af-menu-toggle.af-menu-toggle:focus-visible { background-color: rgba(0, 0, 0, 0.15); color: #fff; }
.af-btn--red.af-btn--red,
.af-btn--red.af-btn--red:focus { background-color: var(--af-red); border-color: transparent; }
.af-btn--red.af-btn--red:hover { background-color: var(--af-red-d); }
.af-btn--dark.af-btn--dark:focus { background-color: var(--af-inv); }
.af-btn--dark.af-btn--dark:hover { background-color: var(--af-red); }
.af-btn--white.af-btn--white:focus { background-color: #fff; }
.af-btn--white.af-btn--white:hover { background-color: var(--af-inv); }
.af-search__form input[type=search],
.af-drawer__search input[type=search] { width: auto; flex: 1; border-radius: 0; }
/* Prijavljeni uredniki: glava predala ne sme biti pod skrbniško vrstico. */
.admin-bar .af-drawer__panel { padding-top: calc(18px + var(--af-admin)); }

/* Gumbi in povezave v glavi dogodka/strani (izven .af-main) brez privzetega podčrtaja brskalnika. */
.af-btn,
.afs-btn,
.afs-hero a,
.afs-nav a { text-decoration: none; }

/* Povezava »Vse …« brez naslova rubrike – desno nad mrežo. */
.af-sec-head--link { justify-content: flex-end; border-top: 0; padding-top: 0; }

/* ==========================================================================
   Temen videz – izjeme (žetoni so na vrhu datoteke)
   ========================================================================== */
/* Logotip je risan za belo podlago (črni napis): dobi belo ploščico kot v nogi. */
html[data-theme="dark"] .af-header .af-logo__img { padding: 5px 7px; border-radius: var(--af-radius); background: #fff; box-sizing: content-box; }
html[data-theme="dark"] .af-iconbtn:hover,
html[data-theme="dark"] .af-iconbtn.af-iconbtn:hover,
html[data-theme="dark"] .af-iconbtn.af-iconbtn:focus-visible { background-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .af-menu-toggle.af-menu-toggle:hover,
html[data-theme="dark"] .af-menu-toggle.af-menu-toggle:focus-visible { background-color: rgba(0, 0, 0, 0.15); }
html[data-theme="dark"] .af-search { box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8), 0 1px 0 var(--af-hair); }
html[data-theme="dark"] .af-drawer__search input { color: var(--af-ink); }
html[data-theme="dark"] .af-stripbar { background: var(--af-bg); }
html[data-theme="dark"] .af-thumb-placeholder { background: linear-gradient(135deg, #2e2a28, #3a3330); }
html[data-theme="dark"] .af-badge--light { box-shadow: none; }
/* Črna oznaka vrste (npr. Novica, Partnerski dogodki) se na temni podlagi izgubi. */
html[data-theme="dark"] .af-kicker::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
/* Barve vrst dogodkov so izbrane za belo podlago – na temni jih posvetlimo. */
html[data-theme="dark"] .af-type__count,
html[data-theme="dark"] .af-type__arrow { color: color-mix(in srgb, var(--t) 55%, #fff); }
html[data-theme="dark"] .af-footer { background: #0c0c0c; }

