@charset "utf-8";
/*** MATRIX CSS v0.9 — Compact 600 foundation candidate
Baza: SLIDE CSS v2.81
Copyright: Tvolk - web dizajn studio, https://tvolk.hr
Matrix navigation v0.4: profiles classic / hamburger / app with unified semantic nomenclature.
********************************************************
Release notes za 2.6
    - Ugrađeni overlay paneli
    - Font jedinice i dobar dio dizajna prebačen u rem jedinice
*/
:root {
    /* Shared default; site overrides follow this stylesheet. Root scale stays 62.5%. */
    --prime-color: #282b30; --prime-color-rgb: 40, 43, 48;
    --second-color: #62666d; --second-color-rgb: 98, 102, 109;
    --third-color: #6940c6; --third-color-rgb: 105, 64, 198;
    --text-color: #232429; --text2-color: #fafafa;
    --text2-color-dark: #dedee2;
    --check-color: #227344; --stop-color: #b13232;
    --canvas-bg-color: #efeff1; --content-bg-color: #ffffff;
    --link-color: var(--third-color); --link-color-rgb: var(--third-color-rgb);
    --link2-color: #e3d7ff;
    --cookie-background-color: var(--prime-color);
    --brand-font: Verdana, Arial, sans-serif;
    --main-font: Verdana, Arial, sans-serif;
    --button-bg: var(--prime-color); --button-txt: var(--text2-color);
    --navigation-max-width: 600px; --panel-max-width: 600px; --dialog-max-width: 420px;

	/* konstrukcija */
    --top-bar-height: 8vh;
    --page-max-width: 600px; /* Matrix default: mobile-first, max 600px */
	--bottom-bar-height: 8vh;
    --hero-bar-height: calc(var(--bottom-bar-height) / 1.6);
    --bottom-padding: calc(var(--bottom-bar-height) + var(--hero-bar-height) + 2rem);
    --swiper-pagination-bottom: calc(var(--bottom-padding) + -1vh);

	/* boje */
 	--prime-color-light: color-mix(in srgb, var(--prime-color) 85%, white); /* malo svjetlija */
 	--prime-color-dark: color-mix(in srgb, var(--prime-color) 85%, black); /* malo svjetlija */
 	--prime-color-tint: color-mix(in srgb, var(--prime-color) 10%, white); /* puno svjetlija */
 	--second-color-light: color-mix(in srgb, var(--second-color) 85%, white); 
 	--second-color-dark: color-mix(in srgb, var(--second-color) 85%, black); 
 	--second-color-tint: color-mix(in srgb, var(--second-color) 10%, white); 
 	--third-color-light: color-mix(in srgb, var(--third-color) 85%, white); 
 	--third-color-dark: color-mix(in srgb, var(--third-color) 85%, black); 
 	--third-color-tint: color-mix(in srgb, var(--third-color) 10%, white); 
 	--text-color-light: color-mix(in srgb, var(--text-color) 85%, white); 
 	--text-color-dark: color-mix(in srgb, var(--text-color) 85%, black); 
 	--text-color-tint: color-mix(in srgb, var(--text-color) 10%, white); 
 	--check-color-light: color-mix(in srgb, var(--check-color) 85%, white); 
 	--check-color-dark: color-mix(in srgb, var(--check-color) 85%, black); 
 	--check-color-tint: color-mix(in srgb, var(--check-color) 10%, white); 
 	--stop-color-light: color-mix(in srgb, var(--stop-color) 85%, white); 
 	--stop-color-dark: color-mix(in srgb, var(--stop-color) 85%, black); 
 	--stop-color-tint: color-mix(in srgb, var(--stop-color) 10%, white); 

	/* spacing scale */
	--space-1: 0.4rem;  /* 4px */
	--space-2: 0.8rem;  /* 8px */
	--space-3: 1.2rem;  /* 12px */
	--space-4: 2rem;    /* 20px */
	--space-5: 3rem;    /* 30px */

	/* radius scale */
	--radius-1: 0.4rem;  /* 4px */
	--radius-2: 0.8rem;  /* 8px */
	--radius-3: 1.6rem;  /* 16px */

	/* shadows */
	--text-shadow-small: 1px 1px 2px black;
	--text-shadow-big: 2px 2px 4px black;

	/* motion */
	--motion-fast: 150ms ease-in-out;
	--motion-normal: 200ms ease-in-out;
}

* {
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	margin: 0;
	padding: 0;
}
html{
	-ms-text-size-adjust:100%;
	-webkit-text-size-adjust:100%;
	scroll-behavior: smooth;
	font-size: 62.5%;
	/* default browser font = 16px; 62.5% od 16 = 10; => 1rem = 10px */
}
html,body{
	font-family: var(--main-font);
	line-height:1.5;
	margin: 0;
	padding: 0;
}
body { 
	font-size: 1.4rem;
	/* -webkit-animation: bugfix infinite 1s; */ 
	background-color: var(--content-bg-color);
}
@media (min-width: 800px) {
	body {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: top left;
	}
}
/* @-webkit-keyframes bugfix { 
	from {padding:0;} to {padding:0;} 
} */



/***  L I N K S   ***/
a,
a:hover {
	text-decoration: none;
	color: var(--link-color);
}

a[target="_blank"]:not(.cta)::after {
	content: " \2197";
	vertical-align: text-bottom;
	font-weight: bold;
	box-shadow: inset 0 2px 0 0 var(--text-color);
	display: inline-block;
	text-align: center;
	margin-left: 0.3em;
}
p a,
ul li a,
ol li a {
	text-decoration: none;
}
p a:hover,
ul li a:hover,
ol li a:hover {
	text-decoration: underline;
}

a.vise {
	display: block;
	font-size: 0.8em;
	margin: 2rem 5%;
	text-align: right;
}
a.vise::after {
	content: ' \2933'; /* CSS code za html &#10547; simbol valovite strelice u desno */
}
a.vise:hover {
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
	animation: shake 0.3s ease-in-out; /* shake */
}


/***  I M G  ***/
.img-full {
	width: 100%; 
	height: auto;
	margin: 0 auto; 
	display: block;
}
.overlay-panel .img-full {
	border-radius: 1rem;
}
.img-float-right {
	float: right;
	margin-left: 1em; 
	max-width: 50%;
	height: auto;
}
.img-float-left {
	float: left;
	margin-right: 1em;
	max-width: 50%;
	height: auto;
}
.img-center {
	display: block;
	width: 90%; /* samo za mobitele */
	max-width: 48rem;
	height: auto;
	margin: 1em auto;
	border-radius: var(--radius-2);
    border: 0.2rem solid #232323;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), /* Sjenka dolje desno */
                -3px -3px 6px rgba(0, 0, 0, 0.5); /* Sjenka gore lijevo */
}
@media (min-width: 600px) {
  	.img-center {
	  	width: 80%;
  		}
}
figcaption {
	text-align: center;
	margin: 0.8rem 10%;
    flex-wrap: wrap;
	font-size: 0.9em;
	font-style: italic;
	color: color-mix(in srgb, currentColor 70%, transparent);
}

.flex {
	display: flex;
	justify-content: center;
	align-items: center;
    flex-wrap: wrap;
}


/***   U L - L I   ***/
ol, ul {
	font-size: 1em;
	margin: 2em 0.5em 2em 2em;
}
@media (min-width: 600px) {
	ol, ul {
		margin-left: 5rem;
		margin-top: 3rem;
	}
}
ol li, ul li {
	margin-left: 0.6em; /* samo za mobitele */
	padding: 0.2em 0.5em;
	color: var(--text-color);
}
ol li span,
ul li span {
	display: block;
	font-size: 0.9em;
	color: rgb(104, 104, 104);
	margin-left: 1.5em;
}
ul.checklist,
ul.crosslist {
	list-style: none;
}
ul.checklist li,
ul.crosslist li {
	padding-left: 0;
}
ul.checklist li:before,
ul.crosslist li:before {
	font-weight: bold;
	margin: 0 1rem 0 -2rem;
}
ul.checklist li:before {
	content: "✔";
	color: var(--check-color);
	font-size: 1.3em;
}
ul.crosslist li:before {
	content: "❌";
	color: var(--stop-color);
}
ul.hoverlist {
	list-style-type: none; /* Koristi 60x60px insert img icons */
	margin-left: 1rem; 
}
@media (min-width: 600px) {
	ul.hoverlist li {
		padding: 1.4rem 2rem;
		font-size: 0.9em;
	}
}
ul.hoverlist li {
	padding: 1.4rem 0.5em 1.4rem 0; /* samo za mobitele */
	margin: 0;
	text-align: justify;
}
ul.hoverlist li:hover {
	background-color: #ecebeb;
	box-shadow: 3px 3px 3px 3px #777;
}
ul.hoverlist li img.img-float-left {
	margin-top: 0.6rem;
}

ul.hoverlist .btn-icon {
	float: left;
	width: 3.75rem;   /* 60px ako je root 16px */
	height: 3.75rem;
	margin: 0.3rem 0.8rem 0 0.3rem;
	color: currentColor;
	flex-shrink: 0;
}
ul.hoverlist li::after {
	content: "";
	display: block;
	clear: both;
}



.clearfloat {
	clear: both;
	display: block;
	line-height: 0;
}
p {
	font-size: 1em;
	margin: 2em 1em; 
	text-align: justify;
	color: inherit;
}
p.pul {  /* paragraf iznad liste */
	margin-bottom: -1rem;
}
iframe.yt {
	width: 36rem;
	height: 20.3rem;
	margin: 1rem auto;
	display: block;
}
hr {
	margin: 2rem 0;
}


.small {
	font-size: 0.9em;
}
@media (min-width: 600px) {
	.small {
		font-size: 0.8em !important;
	}
}
.big {
	font-size: 1.3em;
}
.biger {
	font-size: 1.8em;
}
.bigest {
	font-size: 2.5em;
}
.uvlaka {
	margin-left: 2rem;
}
.sup {
	font-size: 0.6em;
	vertical-align: text-top;
}
.sup-opis {
	font-size: 0.9em;
	color: #777777;
	border-top: 1px dotted var(--second-color);
	padding-top: 0.6rem;
}
.italic {
	font-style: italic;
}
.bold {
	font-weight: bold;
}
.precrtano {
	text-decoration: line-through;
}
.underline {
	text-decoration: underline;
}
.red {
	color: var(--stop-color);
}
.darkred {
	color: darkred !important;
}
.blue {
	color: blue !important;
}
.green {
	color: var(--check-color);
}
.darkgreen {
	color: darkgreen !important;
}
.yellow {
	color: yellow !important;
}
.orange {
	color: orangered !important;
}
.silver {
	color: silver;
}
.gray {
	color: gray;
}
.neon {
    text-shadow: 
        0 0 2px var(--second-color), 
        0 0 4px var(--second-color), 
        0 0 8px var(--second-color), 
        0 0 16px var(--second-color), 
        0 0 32px var(--second-color);
}
.center {
	text-align: center;
}
.left {
	text-align: left !important;
}
.right {
	text-align: right !important;
}
.sakrij {
	display: none;
}
.sticky {
	position: -webkit-sticky; 
	position: sticky;
	top: 0;
	z-index: 1000;
}
.shadow {
	text-shadow: 2px 2px 2px black;
}
.stroke {
	text-shadow: 1px 1px 1px black;
}
.stroke-prime {
	text-shadow: 1px 1px 1px var(--prime-color);
}
.stroke-second {
	text-shadow: 1px 1px 1px var(--second-color);
}

.no-margin-top {
	margin-top: 0 !important;
}
p.citat {
	display: block;
	width: 84%;
	margin: 2rem auto 3rem auto;
	padding-left: 1em;
	border-left: 1rem solid #838899;
	font-style: italic;
	font-size: 1.2em;
}
p.citat span.citat-autor {
	display: block;
	padding-right: 1em;
	text-align: right;
	border-right: 0.6rem solid #838899 !important;
	font-style: normal;
	font-size: 0.8em !important;
}
p.wide-content-warning {
	display: none;
	color: #F8F8F8 !important;
    font-size: 0.8em !important;
	font-weight: bold;
	text-shadow: 1px 1px 1px black;
	text-align: left;
	background-image: linear-gradient(var(--prime-color), var(--second-color), var(--prime-color));
	padding: 2rem 1rem;
	margin: 1.5rem 0;
	border-top: 0.3rem double black;
	border-bottom: 0.3rem double black;
}
@media only screen and (max-width: 390px) {
	p.wide-content-warning {
		display: block;
	}
}

.logo-tvolk {
	color: goldenrod;
	font-family: serif, 'Times New Roman', Times;
	text-shadow: 1px 1px 1px black;
	font-weight: normal;
}
.logo-slide {
	display: inline-block;
	transform: rotate(-12deg);
	font-family: 'Arial Narrow Bold', sans-serif;
}
.logo-slide b:nth-child(odd) {
  color: goldenrod !important;
}
.logo-slide b:nth-child(even) {
  color: #f7dfaf !important;
}

.accordion .acclick + * {
	display: none;
}
.acclick {
	cursor: pointer;
}



/*** M A T R I X   P A G E   H E I G H T
***********************************************************************************
Mobile-first Matrix shell.
Body je flex-column kako bi opcionalni vizualni footer na kratkim stranicama
sjedio na dnu viewporta. Ne otvara niti zatvara <main> i ne mijenja Swiper HTML.
*/
html,
body {
	min-height: 100%;
}
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}


/*** S K E L E T O N   &   H E A D E R
***********************************************************************************/
main {
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
	position: relative;
	flex: 1 0 auto;
}
@media only screen and (min-width: 60rem) {
	main {
		box-shadow:-25px 0 60px rgba(11, 60, 93, 0.05), 25px 0 60px rgba(11, 60, 93, 0.05);
	}
}

header.matrix-site-header { 
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--top-bar-height);
	min-height: 5rem;
	background-color: var(--prime-color);
	
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 700;
}
header.matrix-site-header img#header-img {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
header.matrix-site-header a#home-header-link {
	position: absolute;
	left: 30%;
	top: 0;
    height: var(--top-bar-height);
	min-height: 5rem;
	width: 40%;

}


/********  S W I P E R
**********************************************************************************/
div.swiper {
	z-index: 100;
}
section.swiper-slide {
	background-color: var(--canvas-bg-color);
    padding-bottom: var(--bottom-padding);
}


/***   O V E R L A Y   P A N E L
********************************************************************/

/* root za sve portalizirane panele */
#overlay-backdrop {
	position: fixed;
	top: var(--top-bar-height);
	bottom: 0;
	left: 50%;
	right: auto;
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0;
	transform: translateX(-50%);
	z-index: 1990;
	opacity: 0;
	pointer-events: none;
	background: rgba(0,0,0,0.4);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transition: opacity 0.22s ease;
	box-sizing: border-box;
}
#overlay-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}
#overlay-root {
    position: relative;
    z-index: 2000;
}

/* Potencijalno rizično. Ako se bude klao sa swiperom lockom, ovo treba obrisati.
   Body lock dok je otvoren barem jedan overlay */
body.overlay-open {
    overflow: hidden;
}

/*** BASE – svi paneli imaju isti mehanizam otvaranja/zatvaranja ***/
.overlay-panel {
    --overlay-transform-closed: scale(0.95) translateY(15px);
    --overlay-transform-open: scale(1) translateY(0);

    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--top-bar-height) 0 0;
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    opacity: 0;
	background-color: var(--prime-color-dark);
    pointer-events: none;
    transform: var(--overlay-transform-closed);
    transition: transform 0.25s ease, opacity 0.05s linear;
    z-index: 990;
    box-sizing: border-box;
    box-shadow:
        0 1.2rem 3rem rgba(0, 0, 0, 0.24),
        0 0.25rem 0.8rem rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
	}
.overlay-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: var(--overlay-transform-open);
}
.overlay-panel.overlay-dark-mode {
  color: var(--text2-color);
}

.overlay-panel-inner { /* unutarnji scroll container (postoji li uopće u html-u?) */
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 0;
    min-height: 0;
    box-sizing: border-box;
}
.overlay-panel .panel-title,
.swiper-slide .panel-title {
	all: unset;
	display: block;
	background-color: var(--prime-color-light);
	text-transform: uppercase;
	text-align: center;
	border-radius: 1rem;
	padding: 1.2rem;
	margin: 2rem 3%;
}
.swiper-slide .panel-title {
	margin-left: 3%;
	margin-right: 3%;
}
.swiper-slide.dark-slide .panel-title {
	color: var(--text2-color);
}

/*** PANEL SIZE ***/
.overlay-size-full { /* klasično preko cijelog ekrana */
    --overlay-transform-closed: scale(0.97) translateY(20px);
    --overlay-transform-open: scale(1) translateY(0);
    border-radius: 0;
    box-shadow:
        0 0.8rem 2.2rem rgba(0, 0, 0, 0.18),
        0 0.2rem 0.5rem rgba(0, 0, 0, 0.12),
        inset 0 1rem 1.4rem rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
	}
.overlay-size-card { /* popup iz centra */
	position: fixed;
	inset: auto;
	left: 50%;
	right: auto;
	top: 50%;
	bottom: auto;
	translate: -50% -50%;
	width: 90%;
	max-width: var(--dialog-max-width);
	max-height: 80vh;
	margin: 0;
	padding: 1.5rem;
	border-radius: var(--radius-3);
	box-shadow:
		0 1.8rem 4rem rgba(0, 0, 0, 0.30),
		0 0.6rem 1.4rem rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.10);
	--overlay-transform-closed: scale(0.9);
	--overlay-transform-open: scale(1);
}
.overlay-size-sheet { /* klizni drawer s dna */
	position: fixed;
	inset: auto;
	left: 50%;
	right: auto;
	bottom: 0;
	translate: -50% 0;
	width: 100%;
	max-width: var(--page-max-width);
	height: 70vh;
	max-height: 80vh;
	margin: 0;
	padding: 1.2rem 1rem 1.5rem 1rem;
	border-radius: var(--radius-3) var(--radius-3) 0 0;
	box-shadow:
		0 -0.4rem 0.8rem rgba(0, 0, 0, 0.08),
		0 -1.2rem 2.8rem rgba(0, 0, 0, 0.26),
		0 -0.2rem 0.5rem rgba(0, 0, 0, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	--overlay-transform-closed: translateY(100%);
	--overlay-transform-open: translateY(0);
}

@media (max-width: 599px) {
	.overlay-panel.overlay-size-card {
		width: calc(100% - 2rem);
		max-width: calc(100% - 2rem);
	}
}

/*** PANEL INTRO ***/
.overlay-anim-fade {
    --overlay-transform-closed: scale(0.95) translateY(15px);
    --overlay-transform-open: scale(1) translateY(0);
}
.overlay-anim-slide-right { /* default */
    --overlay-transform-closed: translateX(110%);
    --overlay-transform-open: translateX(0);
}
.overlay-anim-slide-up {
    --overlay-transform-closed: translateY(30%);
    --overlay-transform-open: translateY(0);
}
.overlay-anim-slide-down {
    --overlay-transform-closed: translateY(-30%);
    --overlay-transform-open: translateY(0);
}
.overlay-anim-zoom {
    --overlay-transform-closed: scale(0.85);
    --overlay-transform-open: scale(1);
}

/* PANEL COLORS */
.overlay-color-prime {
    background-color: var(--prime-color);
}
.overlay-color-prime-dark {   /* default */
    background-color: var(--prime-color-dark);
}
.overlay-color-prime-light {
    background-color: var(--prime-color-light);
}
.overlay-color-prime-tint {
    background-color: var(--prime-color-tint);
}
.overlay-color-second {
    background-color: var(--second-color);
}
.overlay-color-second-dark {
    background-color: var(--second-color-dark);
}
.overlay-color-second-light {
    background-color: var(--second-color-light);
}
.overlay-color-second-tint {
    background-color: var(--second-color-tint);
}
.overlay-color-third {
    background-color: var(--third-color);
}
.overlay-color-third-dark {
    background-color: var(--third-color-dark);
}
.overlay-color-third-light {
    background-color: var(--third-color-light);
}
.overlay-color-third-tint {
    background-color: var(--third-color-tint);
}
.overlay-color-green {
    background-color: var(--check-color);
}
.overlay-color-red {
	background-color: var(--stop-color);
}
.overlay-color-silver {
	background-color: silver;
}
.overlay-color-black-transparent {
    background-color: rgba(0, 0, 0, 0.9);
}

/*** CLOSE GUMBI – X (desno) + ARROW (polukrug lijevo)
**************************************************************/
.overlay-panel .overlay-close {
    position: absolute;
    top: 1rem;
    width: 4rem;
    height: 4rem;
    padding: 0;
    margin: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--second-color);
    border: 1px solid var(--prime-color-dark);
    border-radius: 999px;
    box-shadow: 0 0.15rem 0.15rem rgba(0, 0, 0, 0.7), 0 -0.15rem 0.15rem rgba(0, 0, 0, 0.4);
    color: var(--text2-color);
    font-size: 3.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.05s ease, transform 0.4s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

/* Arrow-right gumb – zalijepljen na lijevi rub, polukrug */
.overlay-panel .overlay-close-arrow::before {
    content: "›";
    line-height: 1;
    font-size: 4rem;
    padding-bottom: 0.5rem;
    padding-right: 0.4rem;
}

.overlay-panel .overlay-close-arrow {
    left: 0;
    top: -2.5rem;
    width: 3rem;
    height: 6rem;
    border-left: none;
    border-radius: 0 999px 999px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* Optional arrow placement. Default remains top-left for backwards compatibility. */
.overlay-panel.overlay-close-position-top-left .overlay-close-arrow {
    left: 0;
    right: auto;
    top: -2.5rem;
    bottom: auto;
    border-left: none;
    border-right: 1px solid var(--prime-color-dark);
    border-radius: 0 999px 999px 0;
}
.overlay-panel.overlay-close-position-top-right .overlay-close-arrow {
    left: auto;
    right: 0;
    top: -2.5rem;
    bottom: auto;
    border-left: 1px solid var(--prime-color-dark);
    border-right: none;
    border-radius: 999px 0 0 999px;
}
.overlay-panel.overlay-close-position-bottom-left .overlay-close-arrow {
    left: 0;
    right: auto;
    top: auto;
    bottom: 1rem;
    border-left: none;
    border-right: 1px solid var(--prime-color-dark);
    border-radius: 0 999px 999px 0;
}
.overlay-panel.overlay-close-position-bottom-right .overlay-close-arrow {
    left: auto;
    right: 0;
    top: auto;
    bottom: 1rem;
    border-left: 1px solid var(--prime-color-dark);
    border-right: none;
    border-radius: 999px 0 0 999px;
}

/* Right-side arrow points inward. */
.overlay-panel.overlay-close-position-top-right .overlay-close-arrow::before,
.overlay-panel.overlay-close-position-bottom-right .overlay-close-arrow::before {
    content: "‹";
    padding-right: 0;
    padding-left: 0.4rem;
}

.overlay-panel .overlay-close-arrow:hover {
    background-color: var(--third-color);
    box-shadow: 0 0.2rem 0.2rem rgba(0, 0, 0, 0.6), 0 -0.2rem 0.2rem rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
}

.overlay-panel .overlay-close-arrow:active {
    box-shadow: inset 0 0.15rem 0.15rem rgba(0, 0, 0, 0.7), inset 0 -0.15rem 0.15rem rgba(0, 0, 0, 0.4);
    transform: scale(0.92);
}

/* X gumb – desno, okrugli */
.overlay-panel .overlay-close-x {
    right: 1rem;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

/*
 * × glyph ima optički centar malo drukčiji od box-centra fonta.
 * Zato ga crtamo zasebnim pseudo-elementom umjesto oslanjanja na
 * baseline teksta unutar gumba. Button transform ostaje slobodan
 * za postojeće overlay animacije.
 */
.overlay-panel .overlay-close-x::before {
    content: "×";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    color: inherit;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* Mode – koji gumb se prikazuje */
.overlay-panel.overlay-close-mode-arrow .overlay-close-arrow,
.overlay-panel.overlay-close-mode-x .overlay-close-x {
    display: flex;
}

/* BAZNI anim-states za is-open */
.overlay-panel.is-open.overlay-close-mode-arrow .overlay-close-arrow,
.overlay-panel.is-open.overlay-close-mode-x .overlay-close-x {
    opacity: 1;
    transform: translateX(0);
}

/* FADE – gumb lagano scale-in + fade */
.overlay-panel.overlay-anim-fade .overlay-close {
    transform: scale(0.8);
}

.overlay-panel.overlay-anim-fade.is-open .overlay-close {
    transform: scale(1);
}

/* SLIDE-RIGHT – gumb dolazi s desne strane */
.overlay-panel.overlay-anim-slide-right .overlay-close {
    transform: translateX(40px);
}

.overlay-panel.overlay-anim-slide-right.is-open .overlay-close {
    transform: translateX(0);
}

/* SLIDE-UP – gumb dolazi odozdo */
.overlay-panel.overlay-anim-slide-up .overlay-close {
    transform: translateY(30px);
}

.overlay-panel.overlay-anim-slide-up.is-open .overlay-close {
    transform: translateY(0);
}

/* SLIDE-DOWN – gumb dolazi odozgo */
.overlay-panel.overlay-anim-slide-down .overlay-close {
    transform: translateY(-30px);
}

.overlay-panel.overlay-anim-slide-down.is-open .overlay-close {
    transform: translateY(0);
}

/* ZOOM – lagani zoom */
.overlay-panel.overlay-anim-zoom .overlay-close {
    transform: scale(0.8);
}

.overlay-panel.overlay-anim-zoom.is-open .overlay-close {
    transform: scale(1);
}

/*** COOKIE overlay panel
********************************************************************/

.overlay-color-cookie {
    background-color: var(--cookie-background-color, var(--prime-color));
}

.overlay-panel.overlay-size-cookie {
	position: fixed;
	inset: auto;
	left: 50%;
	right: auto;
	bottom: 0;
	translate: -50% 0;
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0;
	border-radius: 0;
	padding-bottom: 1.5rem;
	overflow-y: visible;
	--overlay-transform-closed: translateY(100%);
	--overlay-transform-open: translateY(0);
}

/* Cookie panel mora ostati jedan kompaktan fixed overlay iznad page sadržaja i footera. */
.overlay-panel.overlay-size-cookie {
    z-index: 2100;
    box-sizing: border-box;
}
.overlay-cookie-panel .overlay-panel-inner {
    flex: 0 1 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 1.5rem;
}
.overlay-cookie-panel #accept-cookies {
    position: relative;
    z-index: 1;
}

.overlay-cookie-panel .overlay-close-x {
    top: -2.2rem;
    right: 0.8rem;
	background-color: silver;
    box-shadow:
        0 0.2rem 0.4rem rgba(0,0,0,0.5),
        0 0 0.4rem rgba(255,255,255,0.15);
	border: 1px solid var(--prime-color);
	transition: background-color 0.2s ease;
}
@media (min-width: 600px) {
	.overlay-cookie-panel .overlay-close-x {
		padding: 0;
	}
}
.overlay-cookie-panel .overlay-close-x:hover {
	background-color: var(--stop-color);
}
.overlay-cookie-panel p {
	font-size: 0.9em;
    color: var(--text2-color);
    text-shadow: var(--text-shadow-small);

}
.overlay-cookie-panel a {
	display: inline;
	color: var(--link2-color);
}


/*** N A V I G A C I J S K A   T R A K A
********************************************************/

/*** Hero ***/
.matrix-app-hero-wrapper {
    position: fixed;
    left: 0;
    bottom: var(--bottom-bar-height); /* točno iznad standardnog nav bara */
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; /* da ne blokira klikove izvan gumba */
    z-index: 500; /* isti layer kao .matrix-app-bar, ispod .matrix-app-button (700) */
}
.matrix-app-hero {
    position: relative;
    width: 100%;
    max-width: 60rem;
    padding: 0 0.3rem 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2vh; /* razmak između lijevog i desnog gumba */
    pointer-events: auto;
}
.matrix-app-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--hero-bar-height);
    padding: 0.5rem 1.5rem;
    color: var(--text2-color);
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.8);;
    border-radius: 1rem;
    box-shadow: 0 0.15rem 0.25rem rgba(0,0,0,0.35), 0 -0.15rem 0.25rem rgba(0,0,0,0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    min-width: 0 !important;
    flex: 1 1 auto;
	transition: 
		box-shadow 0.2s ease,
		color 0.2s ease,
		background 0.2s ease,
		transform 0.1s ease;
	will-change: transform;
}
.matrix-app-hero-button-left {
    justify-content: flex-start;
	background:
		linear-gradient(
			90deg,
			color-mix(in srgb, var(--prime-color) 80%, white),
			color-mix(in srgb, var(--prime-color) 60%, white)
		);
    text-shadow: 0.15rem 0.15rem 0.15rem black;
}
.matrix-app-hero-button-right {
    justify-content: flex-end;
	background:
		linear-gradient(
			90deg,
			color-mix(in srgb, var(--prime-color) 100%, black),
			color-mix(in srgb, var(--prime-color) 60%, black)
		);
	color: var(--text2-color);
}
/* Hover efekt za uređaje s mišem */
@media (hover: hover) and (pointer: fine) {
    .matrix-app-hero-button:hover {
        box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,0.45);
   	    animation: shake 0.3s ease-in-out; /* shake */
    }
	.matrix-app-hero-button-left:hover {
		color: var(--text2-color);
		background:
			linear-gradient(
				90deg,
				color-mix(in srgb, var(--prime-color) 70%, white),
				color-mix(in srgb, var(--prime-color) 50%, white)
			);
	}
	.matrix-app-hero-button-right:hover {
		color: var(--link-color);
		background:
			linear-gradient(
				90deg,
				color-mix(in srgb, var(--prime-color) 90%, white),
				color-mix(in srgb, var(--prime-color) 75%, black)
			);
		}
}
.matrix-app-hero-button:active {
    box-shadow: 0 0.15rem 0.25rem rgba(0,0,0,0.35) inset, 0 -0.15rem 0.25rem rgba(0,0,0,0.35) inset;
	transform: scale(0.97);
}

/*** Bottom navigacijske ikone ***/
.matrix-nav-app {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	pointer-events: none;
	z-index: 500;
}

.matrix-app-bar {
	position: relative;
	width: 100%;
	max-width: 600px;
	height: var(--bottom-bar-height);
	background-color: var(--prime-color);
	box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(0.4rem, 2vw, 1rem);
	pointer-events: auto;
	z-index: 600;
	overflow: visible;
}

.matrix-app-bar .matrix-app-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.18rem, 1vw, 0.75rem);
	height: 100%;
	flex: 1 1 0;
	min-width: 0;
}
.matrix-app-bar .matrix-app-group-left {
	padding-right: 4rem;
}
.matrix-app-bar .matrix-app-group-right {
	padding-left: 4rem;
}

a.matrix-app-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(0.1rem, 0.5vw, 0.32rem);
	height: 100%;
	min-width: 0;
	padding: 0.3rem clamp(0.22rem, 0.9vw, 0.7rem);
	flex: 1 1 0;
	text-decoration: none;
	background: transparent;
	border: none;
	border-radius: 0;
	line-height: 1;
	text-align: center;
	transition:
		transform 0.08s ease,
		box-shadow 0.12s ease,
		background-color 0.2s ease;
	will-change: transform;
	-webkit-tap-highlight-color: rgba(255,255,255,0.15);
}
a.matrix-app-link img {
	display: block;
	width: clamp(2rem, 7vw, 3rem);
	height: clamp(2rem, 7vw, 3rem);	
	object-fit: contain;
	flex-shrink: 0;
	filter:
		drop-shadow(0 0.2rem 0.2rem rgba(0,0,0,0.35))
		drop-shadow(0 0 0.2rem rgba(0,0,0,0.25));
	transition:
		transform 0.15s ease,
		filter 0.2s ease,
		drop-shadow 0.2s ease;
	will-change: transform;
}
a.matrix-app-link span {
	display: block;
	color: var(--text2-color);
	font-size: 0.9rem;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: var(--text-shadow-small);
	padding-top: 0.3rem;
}
@media (hover: hover) and (pointer: fine) {
	a.matrix-app-link:hover {
		background-color: color-mix(in srgb, var(--third-color) 90%, white);
		transform: translateY(-0.03rem);
		animation: shake 0.3s ease-in-out;
		box-shadow: 0 0.2rem 0.35rem rgba(0,0,0,0.35);
	}

	a.matrix-app-link:hover img {
		transform: scale(1.08);
		filter: drop-shadow(0 0.35rem 0.45rem rgba(0,0,0,0.35));
	}
}
a.matrix-app-link:active {
	transform: translateY(0.12rem) scale(0.96);
	box-shadow:
		inset 0 0.4rem 0.5rem rgba(0,0,0,0.5),
		inset 0 -0.2rem 0.3rem rgba(255,255,255,0.4);
}

/*** Centralni NAV button ***/
.matrix-app-bar .matrix-app-button {
	position: absolute;
	left: 50%;
	top: calc(-4vh);
	width: 9vh;
	height: 9vh;
	min-width: 5rem;
	min-height: 5rem;
	transform: translateX(-50%);
	display: grid;
	grid-template-columns: repeat(2, auto);
	grid-template-rows: repeat(2, auto);
	justify-content: center;
	align-content: center;
	place-items: center;
	gap: 0.5rem;
	padding: 0.9rem;
	box-sizing: border-box;
	cursor: pointer;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--prime-color) 30%, black);
	background:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--third-color) 96%, white) 0%,
			color-mix(in srgb, var(--third-color) 82%, white) 28%,
			color-mix(in srgb, var(--prime-color) 82%, black) 100%
		);
	box-shadow:
		0 0.55rem 0.9rem rgba(0,0,0,0.42),                /* vanjska sjena */
		0 0.08rem 0.12rem rgba(255,255,255,0.22) inset,   /* tanki top edge */
		0 -0.38rem 0.7rem rgba(255,255,255,0.22) inset,   /* svjetlo dolje */
		0 0.42rem 0.7rem rgba(0,0,0,0.22) inset;         /* sjena gore */
	transition:
		box-shadow var(--motion-normal),
		transform var(--motion-fast),
		background-color var(--motion-fast),
		border-color var(--motion-fast),
		filter var(--motion-fast);
	-webkit-tap-highlight-color: transparent !important;
	z-index: 700;
	will-change: transform;
}
.matrix-app-bar .matrix-app-button::before {
	content: "";
	position: absolute;
	inset: 0.10rem;
	border-radius: 50%;
	background:
		radial-gradient(
			circle at 50% 18%,
			rgba(255,255,255,0.34) 0%,
			rgba(255,255,255,0.16) 22%,
			rgba(255,255,255,0) 52%
		);
	pointer-events: none;
}

@media only screen and (min-width: 600px) {
	.matrix-app-bar .matrix-app-button {
		width: 7vh;
		height: 7vh;
		top: calc(-3.4vh);
	}
}



.matrix-app-bar .matrix-app-button:focus-visible {
	box-shadow:
		0 0.45rem 0.7rem rgba(0,0,0,0.45),
		0 -0.25rem 0.45rem rgba(255,255,255,0.08) inset,
		0 0 0 0.2rem rgba(var(--second-color-rgb), 0.35);
}

@media (hover: hover) and (pointer: fine) {
	.matrix-app-bar .matrix-app-button:hover {
		filter: brightness(1.04);
	}
}
.matrix-app-bar .matrix-app-button:active {
	transform: translateX(-50%) scale(0.94);
	box-shadow:
		0 0.18rem 0.28rem rgba(0,0,0,0.36),
		0 0.35rem 0.5rem rgba(0,0,0,0.55) inset,
		0 -0.16rem 0.22rem rgba(255,255,255,0.14) inset;
	filter: brightness(0.98);
}

.matrix-app-hero-button.active,
.matrix-app-link.active,
.matrix-app-hero-button.is-active,
.matrix-app-link.is-active {
    opacity: 1;
}
.matrix-app-hero-button.is-active {
    transform: scale(1.03);
}
.matrix-app-link.is-active {
    transform: scale(1.05);
}

/* 4 launcher kvadrata */
.matrix-app-bar .matrix-app-button span {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
	min-width: 0.7rem;
	min-height: 0.7rem;
	background-color: var(--text2-color);
	box-shadow:
		0 0.1rem 0.1rem rgba(0,0,0,0.35),
		0 0.1rem 0 rgba(255,255,255,0.08) inset;
	transition:
		transform var(--motion-fast),
		background-color var(--motion-fast),
		box-shadow var(--motion-fast),
		opacity var(--motion-fast);
}
@media only screen and (min-width: 600px) {
	.matrix-app-bar .matrix-app-button span {
		width: 1.3rem;
		height: 1.3rem;
	}
}

.matrix-app-bar .matrix-app-button span:nth-child(1) {
	background-color: color-mix(in srgb, var(--prime-color) 50%, white);
	border-top-left-radius: 0.3rem;
}

.matrix-app-bar .matrix-app-button span:nth-child(2) {
	background-color: color-mix(in srgb, var(--prime-color) 20%, white);
	border-top-right-radius: 0.3rem;
}

.matrix-app-bar .matrix-app-button span:nth-child(3) {
	background-color: color-mix(in srgb, var(--prime-color) 30%, white);
	border-bottom-left-radius: 0.3rem;
}

.matrix-app-bar .matrix-app-button span:nth-child(4) {
	background-color: color-mix(in srgb, var(--prime-color) 40%, white);
	border-bottom-right-radius: 0.3rem;
}

@media (hover: hover) and (pointer: fine) {
	.matrix-app-bar .matrix-app-button:hover span {
		background-color: var(--second-color);
	}

	.matrix-app-bar .matrix-app-button:hover span:nth-child(1) {
		background-color: color-mix(in srgb, var(--second-color) 90%, white);
	}

	.matrix-app-bar .matrix-app-button:hover span:nth-child(2) {
		background-color: color-mix(in srgb, var(--second-color) 60%, white);
	}

	.matrix-app-bar .matrix-app-button:hover span:nth-child(3) {
		background-color: color-mix(in srgb, var(--second-color) 70%, white);
	}

	.matrix-app-bar .matrix-app-button:hover span:nth-child(4) {
		background-color: color-mix(in srgb, var(--second-color) 80%, white);
	}
}

.matrix-app-bar .matrix-app-button:active span {
	transform: scale(0.96);
}






/* =========================================================
   NAV HUB / DARK BRAND APP DASHBOARD
   ========================================================= */

.nav-hub {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
	color: var(--text2-color);
}
@media (min-width: 600px) {
	.nav-hub {
		padding: 1rem 2rem;
	}
}

/*** HERO / TITLE ***/
.nav-hero {
    margin: 0 0 1.6rem;
}
.nav-hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    margin: 0 0 0.7rem 1rem;
    padding: 0.25rem 0.78rem;
    border-radius: 999px;
    font-size: 0.98rem;
    line-height: 1;
    letter-spacing: 0.12em;
    background: rgba(var(--second-color-rgb), 0.12);
    border: 1px solid rgba(var(--second-color-rgb), 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-hero-title {
	margin: 0;
    font-size: 3rem;
	font-weight: normal;
    text-transform: uppercase;
	border-top-color: var(--second-color);
	margin-left: -1rem;
}
.nav-hero-text {
	margin: 1rem 1rem 2rem;
	font-size: 1.1rem;
	color: var(--text2-color-dark);
}
@media (min-width: 600px) {
	.nav-hero-title {
		margin-left: -1rem;
	}
	.nav-hero-text {
		margin-bottom: 3rem;
	}
}

/*** LAUNCHER GRID ***/
.nav-launcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.95rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 600px) {
    .nav-launcher {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.nav-launcher-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    height: 100%;
    border-radius: 1.45rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg,
            rgba(var(--prime-color-rgb), 0.96),
            rgba(var(--third-color-rgb), 0.88));
    border: 1px solid rgba(var(--second-color-rgb), 0.15);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.nav-launcher-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(var(--second-color-rgb), 0.14), transparent 36%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 34%);
    pointer-events: none;
}

.nav-launcher-item:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--second-color-rgb), 0.34);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(var(--second-color-rgb), 0.08) inset,
        0 0 24px rgba(var(--second-color-rgb), 0.1);
    filter: brightness(1.03);
}

.nav-launcher-item:active {
    transform: translateY(0) scale(0.986);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    filter: brightness(0.99);
}

.nav-launcher-icon-box {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 6.2rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(5, 19, 32, 0.44);
    border-bottom: 1px solid rgba(var(--second-color-rgb), 0.16);
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.18),
        0 0 20px rgba(var(--second-color-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.nav-launcher-icon-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 18, 0.1), rgba(5, 10, 18, 0.42)),
        radial-gradient(circle at top right, rgba(var(--second-color-rgb), 0.18), transparent 34%);
    z-index: 2;
    pointer-events: none;
}
/* bedž - ubacuje se u html na span class="nav-launcher-item" kao data-badge="Akcija!" */
.nav-launcher-icon-box[data-badge]::after {
    content: attr(data-badge);
    position: absolute;
    top: 0.62rem;
    right: 0.62rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    max-width: calc(100% - 1.24rem);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--second-color);
    background: rgba(5, 16, 28, 0.78);
    border: 1px solid rgba(var(--second-color-rgb), 0.22);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav-launcher-item:hover .nav-launcher-icon-box {
    transform: scale(1.03);
    border-bottom-color: rgba(var(--second-color-rgb), 0.28);
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.2),
        0 0 26px rgba(var(--second-color-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-launcher-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    filter:
        brightness(1.04)
        contrast(1.03)
        drop-shadow(0 0 10px rgba(var(--second-color-rgb), 0.14));
	position: relative;
	z-index: 1;
}
.nav-launcher-item:hover .nav-launcher-icon {
	opacity: 1;
	filter: none;
}
.nav-launcher-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
	margin: 1rem;
}

.nav-launcher-text strong {
    display: block;
    font-size: 1.32rem;
    line-height: 1.14;
    font-weight: 800;
    color: var(--text2-color);
}

.nav-launcher-text small {
    display: block;
    margin-top: 0.42rem;
    font-size: 1.08rem;
    line-height: 1.46;
    color: rgba(249, 249, 249, 0.78);
}

/* =========================================================
   CLUSTERS
   ========================================================= */

.nav-cluster {
    margin-top: 2.05rem;
}

.nav-cluster-head {
    margin-bottom: 0.95rem;
    padding: 0 0.1rem;
}

.nav-cluster-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.28rem 0 0.18rem;
    font-size: 1.42rem;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: var(--text2-color);
    text-shadow: 0 0 18px rgba(var(--second-color-rgb), 0.08);
}

.nav-cluster-title::before {
    content: "";
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 45%),
        linear-gradient(135deg,
            rgba(var(--second-color-rgb), 0.95),
            rgba(var(--third-color-rgb), 0.72));
    box-shadow:
        0 0 0 1px rgba(var(--second-color-rgb), 0.16),
        0 0 14px rgba(var(--second-color-rgb), 0.16);
    flex: 0 0 auto;
}

.nav-cluster-text {
    margin: 0.46rem 0 0;
    font-size: 1.14rem;
    line-height: 1.52;
    color: rgba(249, 249, 249, 0.6);
}

/* =========================================================
   STACK LINKS
   ========================================================= */

.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.nav-stack-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    min-height: 4.65rem;
    padding: 0.98rem 1rem;
    border-radius: 1.08rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        linear-gradient(135deg,
            rgba(7, 27, 43, 0.96),
            rgba(var(--prime-color-rgb), 0.72));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.nav-stack-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--second-color-rgb), 0.08), transparent 36%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.nav-stack-link:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--second-color-rgb), 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        linear-gradient(135deg,
            rgba(8, 31, 50, 0.98),
            rgba(var(--third-color-rgb), 0.75));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(var(--second-color-rgb), 0.05) inset,
        0 0 18px rgba(var(--second-color-rgb), 0.08);
    filter: brightness(1.02);
}

.nav-stack-link:hover::before {
    opacity: 1;
}

.nav-stack-link:active {
    transform: translateY(0) scale(0.992);
    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
    filter: brightness(0.99);
}

.nav-stack-main {
    display: flex;
    align-items: center;
    gap: 0.98rem;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-stack-icon-box {
    display: grid;
    place-items: center;
    flex: 0 0 3.2rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.95rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(6, 20, 35, 0.42);
    border: 1px solid rgba(var(--second-color-rgb), 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 6px 14px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-stack-link:hover .nav-stack-icon-box {
    transform: scale(1.03);
    border-color: rgba(var(--second-color-rgb), 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.18),
        0 0 18px rgba(var(--second-color-rgb), 0.08);
}

.nav-stack-icon {
    display: block;
    width: 1.72rem;
    height: 1.72rem;
    object-fit: contain;
    opacity: 0.97;
    filter:
        brightness(1.08)
        drop-shadow(0 0 8px rgba(var(--second-color-rgb), 0.16));
}

.nav-stack-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-stack-copy strong {
    display: block;
    font-size: 1.22rem;
    line-height: 1.18;
    font-weight: 780;
    color: var(--text2-color);
}

.nav-stack-copy small {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.03rem;
    line-height: 1.42;
    color: rgba(249, 249, 249, 0.58);
}

.nav-stack-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 1.48rem;
    line-height: 1;
    color: rgba(var(--second-color-rgb), 0.7);
    transform: translateX(0);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.nav-stack-link:hover .nav-stack-arrow {
    transform: translateX(3px);
    color: rgba(var(--second-color-rgb), 0.98);
}

/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

.nav-launcher-item:focus-visible,
.nav-stack-link:focus-visible,
.overlay-close:focus-visible {
    outline: 2px solid rgba(var(--second-color-rgb), 0.9);
    outline-offset: 2px;
}






/*** I M P R E S U M ***/
nav #nav-banner {
	margin: 0 auto -9rem 5%;
}
nav div#impresum {
	width: 92%;
	margin: 3rem auto 1rem auto;
	border: 1px solid rgba(255, 255, 255, 0.7);
}
nav div#impresum p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8em;
	text-shadow: 1px 1px 1px black;
	text-align: center;
	margin: 1em;
	padding: 0;
}
nav div#impresum p:first-child {
	display: block;
	margin: 0.2rem 0.2rem 2rem 0.2rem;
	padding: 0.8rem;
	background-color: rgba(255, 255, 255, 0.7);
	color: rgba(255, 255, 255, 0.2);
	font-size: 1em;
	font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Arial Black," sans-serif";
}
nav div#impresum p:first-child span {
	font-family: Arial, "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, " sans-serif";
	font-style: italic;
	font-size: 0.9em;
}
nav div#impresum p span.logo-sufix {
	font-size: 0.8em;
}
nav div#impresum p.prava-pridrzana {
	font-size: 0.7em;
	text-align: justify;
}
nav div#impresum a#impresum-link-politike {
	font-size: 0.7em;
	text-align: center;
	display: block;
	margin: 1rem;
	color: var(--link2-color);
}
nav div#impresum a#impresum-link-politike:hover {
	text-decoration: underline;
}




/*** H1 / H2 / H3 / H4 / H5
**************************
H1 / H2 ****/
.slide-title {
    position: relative;
    display: block;
    text-align: center;
    font-size: 1.8em;
    font-family: Arial, Gotham, "Helvetica Neue", Helvetica," sans-serif";
    margin: 0 0 3rem 0;
    padding: 2rem 0 3rem 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    z-index: 10;
    text-shadow: var(--text-shadow-big);
    background-color: var(--third-color);
    color: var(--text2-color);
}
.slide-title span {
	display: block;
	font-size: 0.6em;
	font-weight: normal;
	text-transform: uppercase;
	text-shadow: 1px 1px 3px black;
}
.slide-title::before, 
.slide-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem; /* Visina sjene */
  pointer-events: none; /* Da sjene ne utječu na interakcije */
}
.slide-title::before {
  top: 0;
  box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.75) inset;
}
.slide-title::after {
  bottom: 0;
  box-shadow: 0 -15px 10px -10px rgba(0, 0, 0, 0.75) inset;
}

/*** H3 ***/
.second-title { 
	display: block !important;
	background-color: var(--third-color);
	color: var(--text2-color);
	font-size: 1.2em;
	line-height: 3rem;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial," sans-serif";
	text-shadow: var(--text-shadow-small);
	text-transform: uppercase;
	margin: 3rem 0 0 0;
	padding: 1rem 2rem;
	border-bottom: 1px dotted var(--text-color);
	border-top: 0.6rem solid var(--text-color);
}
.second-title::before {
	content: '\2756  '; /* CSS unicode za html diamond simbol */
	color: var(--text2-color);
	font-size: 1.2em;
}
.second-title img {
	vertical-align: middle;
	margin-right: 1rem;
}
.second-title.acclick::after {
	content: '  \25BE'; /* css unicode za html ▾ simbol */
}

/*** H4 ***/
.third-title { 
	font-size: 1.1em;
	margin: 2em 0.5em -1em;
	color: var(--third-color);
}

 
/***   TITLE-P  i  PUNCHLINE   ***/
.slide-subtitle {
	display: block;
	margin: -0.9em 0 0.9em 0;
	padding: 0.8em 0.7em 0.5em; /* samo  mobiteli */
	font-size: 1.2em;
	font-weight: bold;
	text-align: justify;
	font-family: Arial," sans-serif";
}
/* Desktop: */
@media(min-width:600px) {
  .slide-subtitle {    
	padding: 1em 1em 0.4em 1em; 
  }  
}
div.punchline {
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial," sans-serif";
	color: var(--prime-color);
	font-size: 1.1em;
	font-weight: bold;
	text-align: center;
	margin: 2rem 2rem 3rem;
}

/***   D A R K - S L I D E
*****************************************************/
section.dark-slide.swiper-slide {
	background-color: var(--prime-color-dark);
	box-shadow: inset 0 -50px 0 white;
}
section.dark-slide.single-slide.swiper-slide {
	box-shadow: none;
}
section.dark-slide.swiper-slide .slide-title {
	color: var(--prime-color);
}
section.dark-slide.swiper-slide .slide-subtitle,
section.dark-slide.swiper-slide .punchline {
	color: var(--prime-color-tint);
}
section.dark-slide.swiper-slide p,
section.dark-slide.swiper-slide ul li,
section.dark-slide.swiper-slide ol li {
	color: var(--text2-color);
}
section.dark-slide.swiper-slide a {
	color: var(--link2-color);
}
section.dark-slide.swiper-slide a[target="_blank"]::after {
	box-shadow: inset 0 2px 0 0 var(--text2-color);
}
section.dark-slide.swiper-slide table.tablica {
	background-color: var(--third-color); 
	border-top: none;
}
section.dark-slide.swiper-slide table.tablica td span {
	color: silver;
}



/*** I S T A K N U T I   D I V
***************************************************************************/
div.iDiv {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 2rem;
	padding: 1rem;
	box-sizing: border-box;
	background-color: var(--prime-color);
	border-top: 0.5rem solid var(--third-color);
}
.overlay-panel .iDiv {
	border-radius: 1.2rem;
}
div.iDiv { color: var(--text2-color); }
div.iDiv a {
	color: var(--link2-color);
}
div.iDiv a[target="_blank"]::after {
	color: var(--link2-color) !important;
}
div.iDiv a:hover {
	text-shadow: 1px 1px 1px black !important;
}
body div.iDiv .second-title,
body div.iDiv .second-title :where(strong, b, i, em, span) {
	color: var(--second-color);
}
div.iDiv .small {
	color: silver !important;
}
.iDiv .small i {
	color: inherit;
}
/* istaknuti div unutar iDiv */
div.iDiv div.istaknuti-iDiv {
	background-color: rgba(255, 255, 255, 0.2);
	border: 1px solid black;
	border-radius: var(--radius-2);
	padding: 1rem;
	margin: 2rem;
	text-shadow: var(--text-shadow-big);
}
form.iDiv-tipForm {
	margin-top: -3rem;
	padding-top: 3rem;
}

@media(min-width:600px) { /* ljepša margina za desktop */
	div.iDiv.uvuceno p {
		margin-left: 8%;
	}
	div.iDiv-tipKontakt p:first-child {
		font-size: 1.4em;
	}
}



/***   T E A S E R S
************************************************************/
div.teaser-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 2rem;
}
a.teaser {
    flex: 0 0 44%;
	border: 1px solid var(--prime-color);
    margin: 2rem 2% 0 2%;
	transition: transform var(--motion-normal);
}
a.teaser:hover {
	animation: shake 0.3s ease-in-out; /* shake */
	background-color: var(--second-color);
	border: 1px solid var(--second-color);
}
a.teaser span.teaser-naslov {
	display: block;
	font-weight: bold;
	text-align: center;
	text-shadow: var(--text-shadow-small);
	color: var(--second-color);
}
a.teaser:hover span.teaser-naslov {
	color: var(--prime-color);
	text-shadow: none;
}
a.teaser span.teaser-tekst {
	display: block;
	font-size: 0.8em;
	font-weight: normal;
	text-align: justify;
	padding: 0.7em 0.7em;
	color: var(--text2-color);
}
a.teaser:hover span.teaser-tekst {
	text-shadow: var(--text-shadow-small);
}

a.teaser img {
	width: 100%;
	height: auto;
	object-fit: cover;
	margin-bottom: 1rem;
	text-shadow: 1px 1px 2px black;
}



/***  T O G G L E   S H O W   -   H I D E  
************************************************************/
.toggle-link {
	cursor: pointer;
}
.toggle-link::after {
	content: '  🔻';
}
.toggleable-div {
	display: none;
}


/*** S H A K E  
************************************************************/
	/* transition: transform ...; shake */
	/* animation: shake 0.3s ease-in-out; shake */
.shake {
	transition: transform var(--motion-normal);	
}
.shake:hover {
	animation: shake 0.3s ease-in-out;
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-1px); }
  40% { transform: translateX(1px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}





/*** TAG CLOUD
***********************************************************************************/

/* TAG CLOUD */
    .tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
      max-width: 70rem;
      margin: auto;
      padding: 2rem 2rem;
    }
    .tag {
      font-family: 'Arial', sans-serif;
      cursor: default;
      opacity: 0;
      animation: fadeIn 1s ease forwards;
      transition: transform 0.5s ease, color 0.5s ease, text-shadow 0.5s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    .tag:nth-child(1) { animation-delay: 0.1s; }
    .tag:nth-child(2) { animation-delay: 0.2s; }
    .tag:nth-child(3) { animation-delay: 0.3s; }
    .tag:nth-child(4) { animation-delay: 0.4s; }
    .tag:nth-child(5) { animation-delay: 0.5s; }
    .tag:nth-child(6) { animation-delay: 0.6s; }
    .tag:nth-child(7) { animation-delay: 0.7s; }
    .tag:nth-child(8) { animation-delay: 0.8s; }
    .tag:nth-child(9) { animation-delay: 0.9s; }

    .tag:hover {
      transform: scale(1.15);
      color: var(--prime-color);
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
  .tag-s {
    font-size: 1rem;
    font-weight: 400;
	color: #777;
}
  .tag-m {
    font-size: 1.2rem;
    font-weight: 500;
	color: #333;
}
  .tag-l {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--third-color);
}
  .tag-xl {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--second-color);
}
  .tag-xxl {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--prime-color);
}
section.dark-slide .tag-s {
	color: #777;
}
section.dark-slide .tag-m {
	color: silver;
}
section.dark-slide .tag-l {
	color: white;
}
section.dark-slide .tag-xl {
	color: var(--third-color);
}
section.dark-slide .tag-xxl {
	color: var(--second-color);
}
section.dark-slide .tag:hover {
	color: var(--stop-color);
}



/*** POLITIKE
***********************************************************************************/
section.politike p:not(.title-p) {
	font-size: 0.8em;
	margin: 1em 2em;
}
section.politike ul li,
section.politike ol li {
	font-size: 0.8em;
}
section.politike p.clanak {
	font-weight: bold;
	text-align: center;
}
section.politike p.clanak span {
	display: block;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 1em;
}

/*** K O Š A R I C A
**********************************************/
.toggle-link.toggle-upute {
	text-align: right; 
	margin: 0 1rem 3rem 0; 
	padding: 0;
}
canvas#barcode {
	display: block; 
	width: 90%; 
	margin: 2.8rem auto 1.5rem auto; 
	background-color: var(--prime-color);
}
@media (min-width: 600px) {
	canvas#barcode {
		width: 70%;
	}
}
p.za-platiti {
	text-align: center; 
	font-weight: bold; 
	font-size: 1.6em; 
	font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif; 
	margin: 0 0 2rem 0
}
p.kosarica-buttons button {
	display: inline-block;
	margin-top: 0;
}
#errorMessage,
#downloadMessage,
#successMessage {
	display: none;
	color: var(--third-color); 
	text-align: center;
}
#successMessage {
	color: lightgreen;
}


/* T A B L E S
**************************************************************************************************/
table.tablica {
	margin: 3rem auto;
	background-color: var(--canvas-bg-color);
	width: 100%;
	border-top: 1rem solid var(--prime-color);
}
table.tablica th {
	padding: 1rem;
	border: 1px dotted black;
	background-color: var(--prime-color);
	color: var(--text2-color);
	font-size: 0.9em !important;
	text-align: center;
}
table.tablica th span,
table.tablica td span { 
	font-size: 0.8em;
	color: silver;
	font-weight: normal;
	display: block;
}
table.tablica th.row-header { /* nadnaslov tablice */
	background-color: var(--second-color);
	color: white;
	text-shadow: var(--text-shadow-small);
	text-align: center;
	font-size: 1.2em !important;
}
table.tablica th.alt-th { /* alternativna boja */
	background-color: var(--second-color);
	color: white;
	text-shadow: var(--text-shadow-small);
}

table.tablica td {
	padding: 1rem;
	color: var(--text-color);
	border: 1px dotted var(--prime-color);
	font-size: 0.8em;
	text-align: center;
}
table.tablica td span {
	color: #777777;
}
table.tablica td.highlighted-td,
table.tablica tr.highlighted-td td {
	background-color: rgba(var(--second-color-rgb), 0.2) !important;
}
table.tablica tr:hover {
	background-color: #ccc !important;
}

/* ROW COLORS */
table.tablica tr.row-color-prime td {
	background-color: var(--prime-color) !important;
	color: var(--text2-color);
}
table.tablica tr.row-color-second td {
	background-color: var(--second-color) !important;
	color: var(--text2-color);
	text-shadow: 1px 1px 1px black;
}
table.tablica tr.row-color-third td {
	background-color: var(--third-color) !important;
	color: var(--text2-color);
	text-shadow: 1px 1px 1px black;
}
table.tablica tr.row-color-gray td {
	background-color: #c7c7c7 !important;
	color: var(--text-color);
}
table.tablica tr.row-color-red td {
	background-color: red !important;
	color: var(--text2-color);
	text-shadow: 1px 1px 1px black;
}
table.tablica tr.row-color-green td {
	background-color: green !important;
	color: var(--text2-color);
	text-shadow: 1px 1px 1px black;
}


table.tablica td.medjured-td {
	font-size: 0.2em !important;
	padding: 0 !important;
}

table.tablica img.table-logo-img {
	border-radius: var(--radius-2);
	max-width: 100%;
	height: auto;
}
table.tablica td.footer-td p {
	margin: 1rem;
	font-size: 0.9em;
}

p.table-footer {
	margin-top: -2rem;
	padding-top: 0;
	text-align: center;
	font-size: 0.9em;
	color: #777 !important;
}

/*  Tablica STANDARD */
table.tablica-standard tr > td:first-child,
table.tablica-standard tr > th:first-child {
	text-align: left;
	font-weight: bold;
	font-size: 0.9em;
}
table.tablica-standard tr > td:first-child span,
table.tablica-standard tr > th:first-child span {
	font-weight: normal;
}

/* Tablica SMALL */
table.tablica-small {
	width: 80%; /* samo mobiteli */
	margin-right: auto;
	margin-left: auto;
}
/*** P C ***/
@media only screen and (min-width: 460px) {
	table.tablica-small {
		width: 60%;
	}
}


/* Tablica NIJE-ALI */
table.nije-ali-tablica tr th {
	background-color: var(--third-color);
}
table.nije-ali-tablica tr:nth-child(2) td {
	font-weight: bold;
	font-size: 1.2em;
}
table.nije-ali-tablica tr td {
	background-color: var(--prime-color);
	color:  white;
	width: 50%;
}
table.nije-ali-tablica tr td:first-child {
	background-color: var(--second-color);
}
table.nije-ali-tablica tr:hover td {
	background-color: #ccc !important;
	color: var(--prime-color);
}
table.nije-ali-tablica tr:hover td:first-child {
	color: var(--second-color) !important;
}

/* Tablica LIKOVI */
table.likovi-table {
	width: 80%;
  	margin: 1rem auto;
}
table.likovi-table td {
  text-align: center;
}
table.likovi-table tr:first-child td {
  padding: 1rem 1rem 0.2rem 1rem;
}
table.likovi-table tr:nth-child(2) td {
  padding: 0 0.5rem;
}


/* F O R M S
**************************************************************************************************/
.form-ui {
	width: 100%; /* samo za mobitele */
	margin: 2rem auto;
  	--float-label-bg: white;
}
.form-ui div.form-header {
	padding: 1em;
	font-weight: bold;
	text-align: center;
	background-color: var(--third-color);
	color: var(--text-color);
	border-top: 0.8rem solid black;
}
.form-ui div.form-header:first-child {
	margin-top: 1.5em;
}


.form-ui .error-box {
	display: none;
	margin: 2rem;
	padding: 1rem;
	border: 2px solid var(--stop-color);
	background-color: var(--content-bg-color);
	color: var(--stop-color);
	text-align: center;
}

/* ALERT */
.alert-box {
    display: none;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 2rem 5%;
    padding: 1.2rem 1.4rem;
    border-radius: 1rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.4;
    box-shadow:
        0 0.4rem 0.8rem rgba(0,0,0,0.35),
        inset 0 0.08rem 0.12rem rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
}
.alert-box.active {
    display: flex;
    animation: alertFade 0.2s ease, alertGlow 0.9s ease;
}
@keyframes alertFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes alertGlow {
    0% {
        box-shadow:
            0 0 0 rgba(239, 68, 68, 0),
            0 0.4rem 0.8rem rgba(0,0,0,0.35),
            inset 0 0.08rem 0.12rem rgba(255,255,255,0.1);
    }
    35% {
        box-shadow:
            0 0 1rem rgba(239, 68, 68, 0.45),
            0 0.4rem 0.8rem rgba(0,0,0,0.35),
            inset 0 0.08rem 0.12rem rgba(255,255,255,0.1);
    }
    100% {
        box-shadow:
            0 0 0.6rem rgba(239, 68, 68, 0.22),
            0 0.4rem 0.8rem rgba(0,0,0,0.35),
            inset 0 0.08rem 0.12rem rgba(255,255,255,0.1);
    }
}
.alert-error {
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--stop-color) 85%, black),
        color-mix(in srgb, var(--stop-color-dark) 90%, black)
    );
    border: 0.1rem solid color-mix(in srgb, var(--stop-color-light) 60%, white);
    color: #fee2e2;
}
.alert-icon {
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}
.alert-text {
    flex: 1;
}
.alert-error { /* subtle glow */
    box-shadow:
        0 0.4rem 0.8rem rgba(0,0,0,0.4),
        0 0 0.6rem rgba(239, 68, 68, 0.25),
        inset 0 0.08rem 0.12rem rgba(255,255,255,0.1);
}


.form-ui p,
.form-ui ul li,
.form-ui ol li {
	font-size: 0.9em;
}
.form-ui p {
	margin: 1em 2em 1.5em;
}
.form-ui a {
	text-decoration: none;
}
.form-ui a:hover {
	text-decoration: underline;
}
div.form-validation-div {
	color: var(--stop-color);
	font-weight: bold;
	margin: 3rem;
}
div.form-validation-div li {
	color: var(--stop-color);
	font-weight: normal;
}

/*** Grid struktura ***/
.form-grid {
  display: grid; /* za mobitele - jedan stupac */
}
@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* za deskotp - 2 stupca */
  }
  .form-nogrid {
    grid-column: 1 / -1; /* klasa za desktop - 1 stupac */
  }
}


.form-ui input,
.form-ui textarea,
.form-ui select {
	width: 100%;
	margin: 0.4em auto;
	display: block;
	color: var(--prime-color-light);
	font-size: 1.2em;
	font-weight: bold;
	font-family: 'Courier New', Courier, monospace;
	letter-spacing: 0.05em;
	padding: 0.2em 0.5em;
	border-radius: var(--radius-2);
}

/*** Input ***/
.form-ui input::placeholder {
	color: rgba(0, 0, 0, 0.5);
	transition: opacity 1s ease;
}
.form-ui input:focus::placeholder {
	opacity: 0;
}
.form-ui input:optional,
.form-ui textarea:optional {
	border-color: gray;
}
.form-ui input:required:valid,
.form-ui textarea:required:valid {
	border-color: var(--check-color);
}
.form-ui input:required:invalid:not(:focus):not(:placeholder-shown),
.form-ui textarea:required:invalid:not(:focus):not(:placeholder-shown) {
	border-color: var(--stop-color);
	border-width: 4px;
	scroll-margin-top: 120px;
}
.form-ui input.has-error,
.form-ui textarea.has-error,
.form-ui select.has-error {
	border-color: var(--stop-color);
	border-width: 4px;
	scroll-margin-top: 120px;
}

/*** Checkbox ***/
.form-ui div.form-checkbox-div {
	width: 80%;
	margin: 1em auto;
}
.form-ui input[type="checkbox"] {
	width: 1em;
	height: 1em;
	margin: 0;
	display: inline-block;
}
.form-ui input[type="checkbox"]:checked {
	background-color: var(--stop-color) !important;
}
.form-ui input[type="checkbox"],
.form-ui input[type="checkbox"] + label {
	margin-right: 1rem;
}
.form-ui input[type="checkbox"]:required:invalid + label {
	color: var(--stop-color-tint);
}
.form-ui input[type="checkbox"]:required:valid + label {
	color: var(--check-color-tint);
}

/*** Label ***/
.form-ui label {
	display: block;
	width: 80%;
	margin: 1.6em auto 0 auto !important;
	padding: 0;
	font-size: 0.9em;
	font-weight: bold;
	color: rgba(var(--prime-color-rgb), 0.8) !important;
}
.form-ui label.float-field {
	position: relative;
}
.form-ui label.float-field input {
	padding-top: 1.2em;
	padding-bottom: 0.6em;
}
.form-ui label.float-field .form-upozorenje-polja,
.form-ui label.float-field .field-error {
	display: block;
	margin: 0 0.6rem 1rem;
	font-size: 0.9em;
	text-align: right;
	font-weight: normal;
	font-style: italic;
	color: gray;
}
.form-ui label.float-field .field-error {
	color: var(--stop-color);
	text-transform: uppercase;
	font-style: normal;
	text-shadow: var(--text-shadow-small);
}
section.dark-slide .form-ui label.float-field .form-upozorenje-polja,
.overlay-dark-mode label.float-field .form-upozorenje-polja {
	color: var(--text2-color);
}
section.dark-slide .form-ui label.float-field .field-error,
.overlay-dark-mode label.float-field .field-error {
	color: var(--stop-color-light) !important;
}

.form-ui label.float-field .float-label {
	position: absolute;
	left: 0.6em;
	top: 1.55em;
	transform: translateY(-50%);
	pointer-events: none;
	font-weight: bold;
	opacity: 0.7;
	background: var(--float-label-bg, transparent);
	padding: 0.1em 0.6em;
	border-radius: var(--radius-2);
	transition: top 160ms ease, font-size 160ms ease, opacity 160ms ease;
}
.form-ui label.float-field input:focus ~ .float-label,
.form-ui label.float-field input:not(:placeholder-shown) ~ .float-label {
	top: 0em;
	left: 1em;
	font-size: 0.9em;
	font-weight: normal;
	padding: 0.2rem 0.6rem;
	opacity: 1;
	border: 0.1rem dotted var(--text2-color);
	background-color: var(--prime-color-dark);
	color: var(--text2-color);
}
.form-ui label.float-field input::placeholder {
	opacity: 0;
}

/*** Ostalo ***/
.form-ui select option:checked,
.form-ui select:focus option:first-child {
	color: #D0D0D0 !important;
}
.form-ui fieldset {
	width: 92%;
	margin: 3rem auto;
	padding: 2rem 0;
}
.form-ui fieldset legend {
	margin: 0 1rem;
	padding: 0 1rem;
	border: 1px solid var(--text2-color);
	font-size: 0.9em;
}
.form-ui div.print-form-input p {
	margin-left: 20%;
}
.form-ui div.print-form-input p span {
	color: yellow;
}



/*** B U T T O N S 
**************************************************************/
button,
input[type="button"],
input[type="submit"],
a.button {
	/* background-color: var(--button-bg); */
	box-shadow: 
		0 0.3rem 0.4rem rgba(0,0,0,0.35),   /* sjena ispod gumba */
		inset 0 0.12rem 0.15rem rgba(255,255,255,0.35), /* gornji highlight */
		inset 0 -0.15rem 0.2rem rgba(0,0,0,0.25); /* donja unutarnja sjena */
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--button-bg) 92%, white),
		var(--button-bg)
		);
	border-radius: 1.2rem;
	transition:
		transform 0.08s ease,
		box-shadow 0.15s ease,
		background 0.2s ease;
	margin: 2rem 0.8rem;
  	padding: 1.2rem 1.8rem;
	color: var(--button-txt);
	font-weight: bold;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	line-height: 1.4em;
	letter-spacing: 0.05em;
	text-shadow: var(--text-shadow-small);
	text-align: center;
    white-space: nowrap;
  	cursor: pointer;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent !important; /* makne plavi blink na mobitelu */
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.button:hover {
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--button-bg) 88%, white),
		color-mix(in srgb, var(--button-bg) 98%, white)
	);	
	color: color-mix(in srgb, var(--button-txt) 85%, white);
	transform: translateY(-0.05rem);
}
button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.button:active {
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--button-bg) 95%, black),
		color-mix(in srgb, var(--button-bg) 85%, black)
	);	
	box-shadow:
		inset 0 0.25rem 0.4rem rgba(0,0,0,0.45),
		inset 0 -0.1rem 0.2rem rgba(255,255,255,0.15);
	transform: translateY(0.1rem);
	color: color-mix(in srgb, var(--button-txt) 95%, black);
}


a.button.cta {
	margin: 1rem;
}

/* Button bar */
.button-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	align-items: stretch;
	margin: 3rem 0;
	padding: 2.5rem 5%;
	background-color: var(--prime-color);
	border-top: 0.1rem dotted white;
	border-bottom: 0.1rem dotted white;
}
.button-bar > button,
.button-bar > a.button,
.button-bar > input[type="button"],
.button-bar > input[type="submit"] {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5.8rem;
	margin: 0 !important;
	padding: 1rem 1rem;
	white-space: normal;
	text-align: center;
}

/* SVG icon buttons - Tiles button bar */
.button-bar.button-tiles > button,
.button-bar.button-tiles > a.button,
.button-bar.button-tiles > input[type="button"],
.button-bar.button-tiles > input[type="submit"] {
	display: flex;
	flex: 1 1 7rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	text-align: center;
	min-height: 100%;
	max-width: 8rem;
}
.button-bar.button-tiles > button .btn-icon {
    width: 1.55em;
    height: 1.55em;
    flex: 0 0 1.55em;
    display: block;
}
.button-bar.button-tiles > button .btn-label {
	font-size: 0.7em;
	font-weight: normal;
	letter-spacing: 0.08em;
	line-height: 1.4;
	padding-top: 0.1rem;
	white-space: normal;
}

/* button boje */
.button-prime {
	--button-bg: var(--prime-color);
	--button-txt: var(--text2-color);
}
.button-second {
	--button-bg: var(--second-color);
	--button-txt: var(--text2-color);
}
.button-third {
	--button-bg: var(--third-color);
	--button-txt: var(--text2-color);
}
.button-green {
	--button-bg: var(--check-color);
	--button-txt: var(--text2-color);
}
.button-red {
	--button-bg: var(--stop-color);
	--button-txt: var(--text2-color);
}
.button-silver {
	--button-bg: silver;
	--button-txt: var(--text-color);
	text-shadow: none;
}
.button-black {
	--button-bg: var(--text-color-dark);
	--button-txt: var(--text2-color);
}
.button-white {
	--button-bg: var(--text2-color-dark);
	--button-txt: var(--text-color);
	text-shadow: none;
}
.button-disabled {
    --button-bg: #64748b !important;
    --button-txt: rgba(255,255,255,0.92);
    opacity: 0.88;
    filter: saturate(0.75);
}
.button-ready {
    border: 1px solid var(--check-color);
}

/* ostalo */
p.button-bar-action {
	margin-top: -1.5rem; 
	text-align: center;
	color:var(--prime-color-tint); 
	letter-spacing:0.1em;
	word-spacing: 1.2em;
}
.button-small {
	font-size: 0.8em;
	padding: 0.8rem 1.4rem;
}
.button-big {
	font-size: 1.2em !important;
	padding: 1.4rem 2rem;
}
a.button-link {
	display: block;
	margin: 2rem auto;
	width: 30%;
	text-align: center;
}
a.button-link::after {
	content: '  ▶';
}


/*  P O D A C I
*******************************************************************************/
div.podaci p {
	margin-bottom: 0;
	margin-top: 1.8rem;
	padding-left: 5%;
}
div.podaci .pod-naziv {
	color: var(--prime-color-tint);
	font-size: 0.8em;
	display: block;
}
div.podaci .pod-vrijednost {
	display: block;
	font-size: 1.1em;
	font-weight: bold;
	letter-spacing: 0.05em;
}


/*  C O P Y   B U T T O N S
*******************************************************************************/
/* Wrapper koji JS dodaje */
.copy-field {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    vertical-align: middle;
}
/* Tekst koji se kopira */
.copy-field-target {
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
}
/* Copy button */
.copy-btn {
	margin: 0 0 0 2rem;
	padding: 0.6rem;
    position: relative;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background-color: var(--prime-color);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: 
        transform 0.15s ease,
        background 0.15s ease,
        opacity 0.15s ease;
}
/* Ikona */
.copy-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: var(--text2-color);
    pointer-events: none;
}
.copy-btn:hover {
    background-color: var(--prime-color-light);
}
.overlay-dark-mode .copy-btn,
.dark-slide .copy-btn {
	background-color: var(--third-color) !important;
}
.overlay-dark-mode .copy-btn:hover,
.dark-slide .copy-btn:hover {
	background-color: var(--third-color-light) !important;
}
.copy-btn:active {
    transform: scale(0.92);
}
.copy-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
/* Copied state */
.copy-btn.is-copied {
    background-color: var(--check-color);
}
.copy-btn.is-copied svg {
    opacity: 0;
	fill: white;
}
.copy-btn.is-copied::after {
    content: "✓";
    position: absolute;
    font-size: 0.85rem;
    font-weight: 700;
}
/* Tooltip kopirano */
.copy-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(6px);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--prime-color-light);
    color: #fff;
    font-size: 1.2rem !important;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 
        opacity 0.18s ease,
        transform 0.18s ease;
    z-index: 50;
}
.copy-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
	color: var(--check-color);
}




/* F O O T E R
**************************************************************************************************/
.matrix-footer p {
	font-size: 0.7em;
	color: lightgray;
	text-align: center;
	font-family: serif, 'Times New Roman', Times;
}
.matrix-footer p a {
	border-bottom: 1px solid goldenrod;
}
.matrix-footer p a:hover {
	color: #f7dfaf;
	text-decoration: none;
	border-bottom: 1px solid #f7dfaf;
}

/* P R I N T A NJ E
**************************************************************************************************/
.print-only {
	display: none;
  }
@media print {
	.no-print {
		display: none !important;
	}
	.print-only,
	section.swiper-slide {
		display: block !important;
	}
}


/* S W I P E R
****************************************************************************************************
 * Swiper 8.4.4
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2022 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: October 12, 2022
 ***********************************/

.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}:root{--swiper-navigation-size:44px}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}

.swiper-pagination {
	position: absolute;
	text-align: center;
	transition: 300ms opacity;
	transform: translate3d(0, 0, 0);
	z-index: 10;
	display: flex;
	justify-content: center;
	white-space: nowrap;
	overflow-x: scroll;
	scrollbar-width: none; /* Skriva scrollbar na Firefox-u */
  }
  .swiper-pagination::-webkit-scrollbar {
	display: none; /* Skriva scrollbar na Webkit browserima */
  }
  .swiper-pagination.swiper-pagination-hidden {
	opacity: 0;
  }
  .swiper-pagination-disabled > .swiper-pagination,
  .swiper-pagination.swiper-pagination-disabled {
	display: none !important;
  }
  /* Common Styles */
  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal {
	bottom: var(--swiper-pagination-bottom, 15px);
	top: var(--swiper-pagination-top, auto);
	left: 0;
	margin-top: 2rem;
	width: 100%;
 }
  /* Bullets */
  .swiper-pagination-bullet {
	width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 12px));
	height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 12px));
	display: inline-block;
	border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
	background: var(--swiper-pagination-bullet-inactive-color, #000);
	opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
}
  .swiper-pagination-clickable .swiper-pagination-bullet {
	cursor: pointer;
}
  .swiper-pagination-bullet:only-child {
	display: none !important;
  }
  .swiper-pagination-bullet-active {
	opacity: var(--swiper-pagination-bullet-opacity, 1);
	/* background: var(--swiper-pagination-color, var(--swiper-theme-color)); */
	background: var(--second-color);
	z-index: 900 !important;
  }
  .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
  .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
	margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 8px);
}






/*** M A T R I X   S I T E   H E A D E R
***********************************************************************************/
header.matrix-site-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	max-width: var(--page-max-width);
	height: var(--top-bar-height);
	min-height: 5rem;
	margin: 0 auto;
	background-color: var(--prime-color);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
header.matrix-site-header img#header-img {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
header.matrix-site-header .matrix-site-header-brand {
	color: var(--text2-color);
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-shadow: var(--text-shadow-small);
}
header.matrix-site-header a#home-header-link {
	position: absolute;
	left: 30%;
	top: 0;
	height: 100%;
	width: 40%;
	z-index: 2;
}


/*** M A T R I X   H E A D E R   N A V
***********************************************************************************
Canonical profiles:
- classic: inline header links from 600px when .is-inline-eligible; otherwise hamburger fallback
- hamburger: always hamburger trigger + panel
- app: separate application navigation outside header
*/
header.matrix-site-header.matrix-site-header-local-variant {
	padding-left: 1rem;
	padding-right: 1rem;
	gap: 1rem;
}
header.matrix-site-header .matrix-site-header-local {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 0 1 auto;
}
header.matrix-site-header .matrix-nav-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	height: 100%;
	margin-left: auto;
	background: transparent;
}

/* CLASSIC */
header.matrix-site-header .matrix-classic-links {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.55rem, 1.6vw, 1rem);
	min-width: 0;
	white-space: nowrap;
}
header.matrix-site-header .matrix-classic-links > a {
	display: inline-flex;
	align-items: center;
	min-height: 3.2rem;
	padding: 0.35rem 0.15rem;
	color: var(--text2-color);
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
header.matrix-site-header .matrix-classic-links > a:hover,
header.matrix-site-header .matrix-classic-links > a.active,
header.matrix-site-header .matrix-classic-links > a.is-active,
header.matrix-site-header .matrix-classic-links > a[aria-current="page"] {
	color: var(--link2-color);
}

/* HAMBURGER TRIGGER: hamburger profil + classic fallback. */
header.matrix-site-header .matrix-hamburger-button {
	--matrix-hamburger-size: clamp(5.4rem, 7.5vh, 6.4rem);
	position: absolute;
	right: 2vh;
	left: auto;
	/* 25% visine gumba izlazi ispod headera. */
	top: calc(100% - (var(--matrix-hamburger-size) * 0.75));
	width: var(--matrix-hamburger-size);
	height: var(--matrix-hamburger-size);
	margin: 0;
	padding: 0;
	color: var(--text2-color);
	background-color: var(--prime-color);
	border: 1px solid var(--second-color);
	border-radius: 50%;
	cursor: pointer;
	box-shadow:
		0 0.5rem 0.5rem rgba(var(--second-color-rgb), 0.70),
		0 -0.5rem 0.5rem rgba(var(--second-color-rgb), 0.40);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: box-shadow 0.3s ease-in-out;
	-webkit-tap-highlight-color: transparent;
}
header.matrix-site-header .matrix-hamburger-button:hover,
header.matrix-site-header .matrix-hamburger-button:active {
	transform: none;
}
@media (hover: hover) and (pointer: fine) {
	header.matrix-site-header .matrix-hamburger-button:hover {
		box-shadow:
			0 0.8rem 0.8rem rgba(var(--second-color-rgb), 0.70),
			0 -0.8rem 0.8rem rgba(var(--second-color-rgb), 0.40);
	}
}
header.matrix-site-header .matrix-hamburger-button:focus-visible {
	outline: 2px solid var(--second-color);
	outline-offset: 2px;
}
header.matrix-site-header .matrix-hamburger-button span {
	display: block;
	width: 50%;
	height: 0.4rem;
	background-color: var(--second-color);
	border-radius: 0.2rem;
	transition: background-color var(--motion-normal);
}
@media (hover: hover) and (pointer: fine) {
	header.matrix-site-header .matrix-hamburger-button:hover span {
		background-color: var(--second-color-dark);
	}
}

@media only screen and (min-width: 600px) {
	header.matrix-site-header .matrix-nav-classic.is-inline-eligible .matrix-classic-links {
		display: flex;
	}
	header.matrix-site-header .matrix-nav-classic.is-inline-eligible .matrix-hamburger-button {
		display: none !important;
	}
}

/*** M A T R I X   F O O T E R
***********************************************************************************/
.matrix-footer-wrapper {
	width: 100%;
	max-width: var(--page-max-width);
	min-height: 3rem;
	margin-top: auto;
	margin-left: auto;
	margin-right: auto;
	flex: 0 0 auto;
}
.matrix-footer {
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: 0.35rem 1rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	background-color: var(--prime-color);
}
.matrix-footer-left,
.matrix-footer-right {
	margin: 0;
	padding: 0;
}
.matrix-footer-left {
    flex: 0 1 auto;
    text-align: left;
}
.matrix-footer-utility {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    font-size: 0.78em;
    white-space: nowrap;
}
.matrix-footer-utility a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.matrix-footer-right {
	flex: 1 1 auto;
	text-align: right;
	white-space: nowrap;
	font-size: 0.72em;
}
.matrix-footer-left p,
.matrix-footer-right p,
.matrix-footer-right span {
	margin: 0;
	padding: 0;
}
.matrix-footer-left p {
	text-align: left;
}
.matrix-footer-right p {
	text-align: right;
}
.matrix-footer-app {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 720px) {
    .matrix-footer,
    .matrix-footer.matrix-footer-app {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .matrix-footer-left,
    .matrix-footer-utility,
    .matrix-footer-right {
        flex: 1 1 100%;
        text-align: center;
        white-space: normal;
    }
}

/*** A P P   B O T T O M   C O N T E N T   S A F E T Y
***********************************************************************************/
/*
 * Fiksna bottom navigacija ne smije prekriti kraj sadržaja.
 *
 * Spacer postoji SAMO kada je app profil uključen.
 * Hero nav dodaje vlastitu visinu samo kada je heroNav=true.
 * Koristimo ::after umjesto padding-bottom na mainu kako lokalni
 * wrapperi i vlastiti padding sadržaja ne bi utjecali na izračun.
 */
body.matrix-navigation-app main::after {
	content: "";
	display: block;
	width: 100%;
	height: calc(var(--bottom-bar-height) + 2rem);
	pointer-events: none;
}

body.matrix-navigation-app.matrix-hero-nav main::after {
	height: var(--bottom-padding);
}

/*** C O O K I E   B A C K G R O U N D   T U N I N G
***********************************************************************************/
.overlay-color-cookie {
	background-color: var(--cookie-background-color, var(--prime-color));
}


/*** M A T R I X   H A M B U R G E R   P A N E L
***********************************************************************************
Shared Overlay panel: hamburger profile + classic fallback.
*/
body.matrix-hamburger-open #overlay-root {
	z-index: 600;
}
body.matrix-hamburger-open #overlay-backdrop {
	z-index: 590;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.matrix-hamburger-panel {
	inset: var(--top-bar-height) 0 0;
	width: 100%;
	max-width: var(--page-max-width);
	height: calc(100vh - var(--top-bar-height));
	max-height: none;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background-color: rgba(var(--prime-color-rgb), 0.92) !important;
	box-shadow:
		0 1.2rem 2.8rem rgba(0, 0, 0, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.matrix-hamburger-panel .overlay-panel-inner {
	width: 100%;
	height: 100%;
	padding: 0 0 3rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.matrix-hamburger-panel .overlay-close-arrow {
	z-index: 20;
}
.matrix-hamburger-hero {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	min-height: 5.4rem;
	padding: 0.7rem 1rem 0.7rem 4rem;
	background-color: rgba(0, 0, 0, 0.34);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.matrix-hamburger-hero-link {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	max-width: 45%;
	min-height: 3.2rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--second-color);
	border-radius: var(--radius-1);
	color: var(--text2-color);
	font-size: 0.78em;
	text-decoration: none;
}
.matrix-hamburger-secondary {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.8rem;
	padding: 0.7rem 1rem 1rem 4rem;
	background-color: rgba(0, 0, 0, 0.34);
}
.matrix-hamburger-secondary-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.2rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--text2-color);
	border-radius: var(--radius-1);
	color: var(--text2-color);
	font-size: 0.78em;
}
.matrix-hamburger-links {
	width: 100%;
}
.matrix-hamburger-links > a.matrix-nav-link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: 100%;
	min-height: 4rem;
	padding: 0.65rem 1.5rem;
	border: 0;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.48);
	color: var(--text2-color);
	background: rgba(0, 0, 0, 0.10);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: var(--text-shadow-small);
	text-decoration: none;
	transition:
		background-color var(--motion-normal),
		color var(--motion-normal),
		padding-left var(--motion-fast);
}
.matrix-hamburger-links > a.matrix-nav-link:first-child {
	border-top: 1px dotted rgba(255, 255, 255, 0.48);
}
.matrix-hamburger-links > a.matrix-nav-link span { min-width: 0; }
.matrix-hamburger-links > a.matrix-nav-link i {
	flex: 0 0 auto;
	color: currentColor;
	font-size: 0.82em;
	font-style: normal;
}
.matrix-hamburger-links > a.matrix-nav-link:hover,
.matrix-hamburger-links > a.matrix-nav-link.active,
.matrix-hamburger-links > a.matrix-nav-link.active,
.matrix-hamburger-links > a.matrix-nav-link.is-active,
.matrix-hamburger-links > a.matrix-nav-link[aria-current="page"] {
	color: var(--text2-color);
	background-color: var(--second-color);
	padding-left: 1.7rem;
}
.matrix-nav-banner {
	width: 90%;
	margin: 3rem auto 1rem;
	text-align: center;
}
.matrix-nav-banner img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.matrix-nav-impresum {
	width: 92%;
	margin: 3rem auto 1rem;
	padding-bottom: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.70);
	background: rgba(0, 0, 0, 0.10);
}
.matrix-nav-impresum p {
	margin: 1rem;
	padding: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8em;
	text-align: center;
	text-shadow: var(--text-shadow-small);
}
.matrix-nav-impresum .matrix-nav-impresum-title {
	display: block;
	margin: 0.2rem 0.2rem 2rem;
	padding: 0.8rem;
	background-color: rgba(255, 255, 255, 0.70);
	color: rgba(var(--prime-color-rgb), 0.82);
	font-size: 1em;
}
.matrix-nav-impresum .matrix-nav-rights {
	font-size: 0.72em;
	line-height: 1.45;
	text-align: justify;
}
.matrix-nav-impresum .logo-sufix { font-size: 0.82em; }
.matrix-nav-policies {
	display: block;
	margin: 1rem;
	color: var(--link2-color);
	font-size: 0.72em;
	text-align: center;
}
.matrix-nav-policies:hover { text-decoration: underline; }


/* COMPACT FOUNDATION — shared content, independent of project selectors. */
body { background: var(--canvas-bg-color); color: var(--text-color); }
main { background: var(--content-bg-color); }
h1, h2, h3, h4, h5, h6 { font-family: var(--brand-font); overflow-wrap: anywhere; }
:where(main, .overlay-panel) p { text-align: start; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: .3rem solid var(--third-color); outline-offset: .3rem;
    box-shadow: 0 0 0 .15rem var(--content-bg-color);
}
.overlay-panel { visibility: hidden; transition: transform .25s ease, opacity .05s linear, visibility 0s linear .25s; max-width: var(--panel-max-width); }
.overlay-panel.is-open { visibility: visible; transition-delay: 0s; }
.overlay-panel.overlay-size-card { max-width: var(--dialog-max-width); }
.matrix-content { padding: 2rem 0; overflow-wrap: anywhere; }
.matrix-content > :first-child { margin-top: 0; }
.matrix-content h1 { font-size: 3.2rem; line-height: 1.2; }
.matrix-content h2 { font-size: 2.3rem; line-height: 1.3; }
.matrix-content h3 { font-size: 1.8rem; }
.matrix-content p { margin: 1.2rem var(--content-gutter); }
.matrix-content ul, .matrix-content ol { margin: 1.2rem var(--content-gutter); }
.matrix-content ul, .matrix-content ol { padding-inline-start: 2rem; }
.matrix-content .iDiv { margin: 1.6rem 0; }
.matrix-content .iDiv p { margin-inline: 0; }
.matrix-content .slide-title, .matrix-content .second-title { margin-inline: 0; }
.matrix-actions { padding-inline: var(--content-gutter); display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.6rem; }
.matrix-actions > :is(button, a.button) { margin: 0; }
:where(button, a.button, input[type="submit"], input[type="button"]) { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
:where(button, input):disabled, .button-disabled { opacity: .55; cursor: not-allowed; }
:where(button, input):disabled:hover { transform: none; }
.matrix-form { display: grid; gap: 1.2rem; margin: 1.6rem var(--content-gutter); }
.matrix-form label { display: grid; gap: .5rem; font-weight: bold; }
.matrix-form :is(input, textarea, select) { min-width: 0; width: 100%; padding: 1rem; border: 1px solid var(--second-color); border-radius: .5rem; background: var(--content-bg-color); color: var(--text-color); font: inherit; }
.matrix-form small { font-weight: normal; }
.matrix-table-wrap { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.matrix-table :is(th, td) { padding: 1rem; text-align: start; border-bottom: 1px solid var(--second-color-tint); }
.matrix-table th { background: var(--prime-color); color: var(--text2-color); }
.matrix-status-ok { color: var(--check-color); font-weight: bold; }
.matrix-media { display: block; max-width: 100%; height: auto; margin: 1.6rem auto; }
.matrix-footer { flex-wrap: wrap; padding: 1.2rem; color: var(--text2-color); }
.matrix-footer :is(.matrix-footer-left, .matrix-footer-right, .matrix-footer-utility) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.matrix-footer :is(p, .matrix-footer-right, .matrix-footer-utility) { font-family: var(--main-font); font-size: 1.2rem; color: var(--text2-color); }
.matrix-footer-utility { flex-wrap: wrap; }
.matrix-footer a { color: var(--link2-color); }
.matrix-nav-link.active { color: var(--link2-color); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .tag { opacity: 1; transform: none; }
}
@media print {
    .overlay-panel, #overlay-backdrop, .matrix-site-header, .matrix-footer-wrapper { display: none !important; }
    main { max-width: none; box-shadow: none; }
    .print-only { display: block !important; }
}

.overlay-panel.is-closing { visibility: visible; pointer-events: none; }

.matrix-app-bar { max-width: var(--navigation-max-width); }
.overlay-color-cookie { color: var(--text2-color); }
.overlay-color-cookie a { color: var(--link2-color); }

body.matrix-no-header { --top-bar-height: 0px; }

.overlay-panel-inner { overscroll-behavior: contain; touch-action: pan-y; }


/* COMPACT POLISH — content API and provisional neutral palette A. */
:root {
    --content-gutter: 1.6rem;
    --title-background: var(--prime-color);
    --title-foreground: var(--text2-color);
    --section-background: var(--prime-color-tint);
    --section-foreground: var(--text-color);
    --matrix-signature-bg: #08120c;
    --matrix-signature-text: #e7eee9;
    --matrix-signature-link: #7cf5a2;
    --matrix-signature-line: #26382c;
}
.matrix-page-leader { width: 100%; margin: 0; }
.matrix-page-leader > img { display: block; width: 100%; height: auto; }
.page-title {
    display: block; width: 100%; margin: 0 0 1.6rem; padding: 1.8rem var(--content-gutter);
    background: var(--title-background); color: var(--title-foreground);
    border-bottom: .4rem solid var(--third-color); font-weight: 800; line-height: 1.2;
    text-align: center; text-shadow: none;
}
.matrix-content .page-title { font-size: 3.2rem; }
.page-title > span { display: block; font-size: .64em; font-weight: 500; margin-top: .5rem; }
.matrix-content .page-lead { font-size: 1.2em; font-weight: 700; line-height: 1.55; }
.section-title {
    display: block; margin: 0 0 1.6rem; padding: 1.2rem var(--content-gutter);
    background: var(--section-background); color: var(--section-foreground);
    border-block: 1px solid var(--second-color-tint); border-left: .4rem solid var(--third-color);
    text-align: start; text-shadow: none; font-weight: 700;
}
.matrix-content > :is(h2,h3):not(.section-title):not(.page-title) { margin-inline: var(--content-gutter); }
.matrix-content:has(> .page-title) { padding-top: 0; }
.img-center { width: auto; max-width: min(480px, calc(100% - 3.2rem)); border: 0; box-shadow: none; border-radius: var(--radius-2); }
.matrix-content .img-full { width: 100%; max-width: 100%; margin-inline: 0; }
.overlay-panel .matrix-content > .panel-title { margin-inline: var(--content-gutter); }
div.iDiv { padding: 1.6rem var(--content-gutter); }
div.iDiv :is(h1,h2,h3) { color: inherit; }
/* Own measurable nav track: no zero-width containing block for max-width:100%. */
header.matrix-site-header .matrix-nav-header { flex: 0 0 7.2rem; width: 7.2rem; min-width: 7.2rem; margin-left: 0; position: absolute; right: 0; top: 0; }
header.matrix-site-header .matrix-hamburger-button { width: 5.4rem; min-width: 5.4rem; max-width: none; height: 5.4rem; min-height: 5.4rem; right: .9rem; top: 100%; translate: 0 -66.666667%; box-shadow: none; border-color: var(--second-color); background: var(--prime-color); }
header.matrix-site-header .matrix-hamburger-button span { width: 2.4rem; height: .3rem; flex: 0 0 .3rem; background: var(--text2-color); }
header.matrix-site-header .matrix-site-header-brand { position: absolute; left: 7.2rem; right: 7.2rem; margin: 0; text-align: center; overflow-wrap: anywhere; font-size: 1.4rem; line-height: 1.3; letter-spacing: .03em; text-shadow: none; }
header.matrix-site-header { min-height: 7.2rem; height: auto; padding-block: 1rem; }
header.matrix-site-header .matrix-site-header-local { width: calc(100% - 14.4rem); margin-inline: auto; justify-content: center; }
header.matrix-site-header a#home-header-link { left: 7.2rem; right: 7.2rem; width: auto; }
/* Signature has its own brand palette, independent of site primary/accent. */
.matrix-footer-wrapper { background: var(--matrix-signature-bg); }
.matrix-footer, .matrix-footer.matrix-footer-app {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: .3rem .6rem; padding: .5rem .7rem;
    background: var(--matrix-signature-bg); color: var(--matrix-signature-text);
    border-top: 1px solid var(--matrix-signature-line); text-align: start;
    font-family: var(--main-font); font-size: 1.05rem; line-height: 1.35;
}
.matrix-footer :is(.matrix-footer-left,.matrix-footer-utility,.matrix-footer-right) {
    flex: 0 1 auto; min-width: 0; margin: 0; padding: 0;
    font: inherit; color: inherit; white-space: normal; overflow-wrap: anywhere;
}
.matrix-footer .matrix-footer-left { max-width: 100%; text-align: start; }
.matrix-footer .matrix-footer-right { margin-left: 0; text-align: end; }
.matrix-footer :is(p,span) { margin: 0; padding: 0; font: inherit; color: inherit; text-align: inherit; }
.matrix-footer .matrix-footer-utility { display: flex; gap: .25rem; flex-wrap: nowrap; }
.matrix-footer a, .matrix-footer a:visited { color: var(--matrix-signature-link); border: 0; text-shadow: none; }
.matrix-footer a[target="_blank"]::after { content: none; }
.matrix-footer a:hover { color: var(--matrix-signature-text); text-decoration: underline; }
.matrix-footer a:focus-visible { outline-color: var(--matrix-signature-link); }

/* Header geometry and overlay offset share the same actual height. */
:root { --top-bar-height: 7.2rem; }
header.matrix-site-header { height: var(--top-bar-height); }
body.matrix-no-header { --top-bar-height: 0px; }

/* Compact Final: persistent trigger is the ONLY interactive background leaf.
   Its path is raised only while its own modal is topmost. Nested/cookie dialogs
   remove this exemption. Root remains at 2000; no old hamburger-root lowering. */
.matrix-overlay-trigger-branch { pointer-events: none !important; }
body > .matrix-overlay-trigger-branch { z-index: 2001 !important; }
.matrix-overlay-active-trigger { pointer-events: auto !important; }

/* Final signature: equal side tracks keep the signature geometrically centered.
   Min-width:0 and wrapping allow long identity/utility values to remain in flow. */
.matrix-footer, .matrix-footer.matrix-footer-app {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr);
    column-gap: .6rem; row-gap: .3rem; align-items: center;
    font-size: .95rem; font-weight: 400; line-height: 1.35;
    border-top: 1px solid var(--matrix-signature-link);
    box-shadow: 0 -2px 5px -3px var(--matrix-signature-link);
}
.matrix-footer :is(.matrix-footer-left,.matrix-footer-signature,.matrix-footer-utility) {
    min-width: 0; max-width: 100%; margin: 0; padding: 0; font: inherit;
    color: inherit; overflow-wrap: anywhere;
}
.matrix-footer .matrix-footer-left { justify-self: stretch; text-align: start; }
.matrix-footer .matrix-footer-signature { justify-self: center; text-align: center; }
.matrix-footer .matrix-footer-utility { justify-self: end; justify-content: flex-end; flex-wrap: wrap; }
.matrix-footer :is(p,span,b,strong) { font-size: inherit; font-weight: inherit; }
.matrix-footer .matrix-footer-tvolk b { font-weight: 700; }
.matrix-footer a, .matrix-footer a:visited { color: var(--matrix-signature-text); font: inherit; text-decoration: underline; }
.matrix-footer .matrix-footer-tvolk, .matrix-footer .matrix-footer-tvolk:visited { color: var(--matrix-signature-link); white-space: nowrap; }
.matrix-footer a:hover, .matrix-footer a:focus-visible { color: #fff; text-shadow: none; }
.matrix-footer .matrix-footer-tvolk:hover, .matrix-footer .matrix-footer-tvolk:focus-visible { color: var(--matrix-signature-link); text-shadow: 0 0 3px rgb(124 245 162 / .2); }
/* Persistent toggle remains legible while hovered/focused over its modal. */
header.matrix-site-header .matrix-hamburger-button:is(:hover,:focus-visible) span { background-color: var(--text2-color); }
header.matrix-site-header .matrix-hamburger-button:focus-visible { outline-color: var(--text2-color); }

/* Project layout selection; shell caps stay in CSS px even at larger root fonts. */
body.matrix-layout-compact { --page-max-width: 600px; }
body.matrix-layout-wide { --page-max-width: 1200px; --navigation-max-width: 1200px; }
body.matrix-layout-wide .overlay-panel.overlay-size-full { max-width: var(--page-max-width); }
body.matrix-layout-wide .matrix-hamburger-panel { max-width: var(--page-max-width); }
header.matrix-site-header > picture { display: block; width: 100%; height: 100%; }
header.matrix-site-header img#header-img { width: 100%; max-width: none; height: 100%; object-fit: cover; }
.matrix-page-leader picture { display: block; }
.matrix-page-leader img { display: block; width: 100%; height: auto; }
body.matrix-layout-wide .matrix-app-hero, body.matrix-layout-wide .nav-hub { max-width: var(--page-max-width); }
/* Secondary brand colour is a surface, third remains the accent. */
.section-title { background: var(--second-color); color: var(--section-text-color, var(--text2-color)); }
header.matrix-site-header .matrix-hamburger-button { box-shadow: 0 1px 3px rgb(0 0 0 / .22); }
header.matrix-site-header .matrix-hamburger-button:focus-visible { box-shadow: 0 1px 5px rgb(0 0 0 / .28); }
@media (hover:hover) and (pointer:fine) {
    header.matrix-site-header .matrix-hamburger-button:hover { box-shadow: 0 1px 5px rgb(0 0 0 / .28); }
}
/* Footer is a self-contained brand layer, including nested project/logo markup. */
body .matrix-footer, body .matrix-footer * { font-size: .95rem !important; font-weight: 400 !important; }
body .matrix-footer .matrix-footer-tvolk b { font-weight: 700 !important; }
.matrix-footer, .matrix-footer.matrix-footer-app {
    grid-template-columns: minmax(8rem,1fr) minmax(0,3fr) minmax(8rem,1fr);
    border-top: 0; border-bottom: 1px solid var(--matrix-signature-link);
    box-shadow: inset 0 -3px 6px -4px var(--matrix-signature-link);
}
.matrix-footer .matrix-footer-signature { width: 100%; }
.matrix-footer .matrix-footer-utility { flex-wrap: nowrap; white-space: nowrap; }
.matrix-footer .matrix-footer-by { white-space: nowrap; }
@media (max-width:299px) {
    .matrix-footer, .matrix-footer.matrix-footer-app { grid-template-columns: 1fr; }
    .matrix-footer .matrix-footer-utility, .matrix-footer .matrix-footer-left { justify-self: center; text-align: center; }
}
/* Navigation link cue: project-overridable accent bars on the primary surface. */
header.matrix-site-header .matrix-hamburger-button span,
header.matrix-site-header .matrix-hamburger-button:is(:hover,:focus-visible) span {
    background-color: var(--third-color);
    box-shadow: 0 0 3px color-mix(in srgb, var(--third-color) 45%, transparent);
}

/* 3.19: identity owns only its content box; it never covers navigation links. */
header.matrix-site-header a#home-header-link {
    position: relative; inset: auto; z-index: auto; width: calc(100% - 14.4rem);
    height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text2-color); text-decoration: none;
}
header.matrix-site-header a#home-header-link::after { content: none; }
header.matrix-site-header .matrix-site-header-brand {
    position: static; margin: 0; width: 100%; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
header.matrix-site-header a#home-header-link > picture { display: block; width: 100%; height: 100%; }
body.matrix-layout-wide header.matrix-site-header .matrix-site-header-brand { font-size: 2rem; }
@media (min-width: 600px) {
    header.matrix-header-navigation-classic:has(.is-inline-eligible) { justify-content: space-between; gap: 2rem; padding: 1rem 1.6rem; }
    header.matrix-header-navigation-classic:has(.is-inline-eligible) a#home-header-link,
    header.matrix-header-navigation-classic:has(.is-inline-eligible) .matrix-site-header-local {
        flex: 1 1 0; width: auto; margin: 0; min-width: 0; justify-content: flex-start;
    }
    header.matrix-header-navigation-classic:has(.is-inline-eligible) .matrix-site-header-brand { text-align: left; }
    header.matrix-site-header .matrix-nav-classic.is-inline-eligible {
        position: relative; inset: auto; flex: 0 0 auto; width: auto; min-width: 0; margin: 0; height: 100%;
    }
    header.matrix-site-header .matrix-nav-classic.is-inline-eligible .matrix-classic-links { gap: 1rem; }
}
body.matrix-layout-wide .section-title { border-left-width: .6rem; }
body.matrix-layout-wide .matrix-content .iDiv { border-top-width: .6rem; }
.matrix-footer, .matrix-footer.matrix-footer-app {
    box-shadow: inset 0 -10px 18px -6px color-mix(in srgb, var(--matrix-signature-link) 60%, transparent);
}
/* Canvas layer is independent of fully opaque content. PHP enables it only
   for a validated Compact image, using the same media query as its preload. */
body { isolation: isolate; }
body.matrix-has-canvas::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-position: top left; background-size: contain; background-repeat: no-repeat;
    opacity: var(--canvas-image-opacity, .5);
}

/* Signature Polish: centered hero links in the hamburger panel only.
   Symmetric existing trigger-width insets keep long labels clear of the persistent button. */
.matrix-hamburger-hero {
    justify-content: center; flex-wrap: wrap; gap: .6rem 1rem;
    margin-inline: auto; max-width: calc(100% - 12rem); padding: .7rem 1rem;
}
.matrix-hamburger-hero-link { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
/* Independent Matrix signature palette; restrained top inset glow. */
.matrix-footer, .matrix-footer.matrix-footer-app {
    position: relative; isolation: isolate; overflow: hidden;
    border-top: 0; border-bottom: 0; padding-top: 1.5rem;
    box-shadow: inset 0 7px 12px -8px rgb(124 245 162 / .32);
}
.matrix-footer .matrix-footer-signature { color: #b8d9c3; }
.matrix-footer .matrix-footer-utility, .matrix-footer .matrix-footer-utility a,
.matrix-footer .matrix-footer-utility a:visited { color: #9ed5b0; }
.matrix-footer > :not(.matrix-footer-rain) { position: relative; z-index: 1; }
.matrix-footer > canvas.matrix-footer-rain {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    pointer-events: none; opacity: .16;
}
@media (prefers-reduced-motion: reduce) { .matrix-footer > canvas.matrix-footer-rain { display: none; } }

/* Ambient Footer: intrinsic height and balanced block spacing, independent of local brand. */
.matrix-footer, .matrix-footer.matrix-footer-app {
    height: auto; min-height: 0; padding-block: 1.5rem; line-height: 1.45;
}
.matrix-footer > canvas.matrix-footer-rain { opacity: .13; }

/* Shared Tvolk footer: signature left, utility right; local brand is no longer rendered. */
.matrix-footer, .matrix-footer.matrix-footer-app {grid-template-columns:minmax(0,1fr) auto;}
.matrix-footer .matrix-footer-signature {grid-column:1;text-align:left;justify-self:start;}
.matrix-footer .matrix-footer-utility {grid-column:2;justify-self:end;}
@media(max-width:599px){.matrix-footer,.matrix-footer.matrix-footer-app{grid-template-columns:minmax(0,1fr);gap:.75rem;}.matrix-footer .matrix-footer-utility{grid-column:1;justify-self:start;}}

/* Canonical Tvolk footer visual contract 0.1. Bundled verbatim in Matrix/public CSS.
   Explicit px typography avoids different host rem scales. Intrinsic flex wrapping. */
body .matrix-footer, body .matrix-footer.matrix-footer-app {
 --matrix-signature-bg:#08120c;--matrix-signature-text:#b0d0bb;--matrix-signature-link:#70dd92;
 position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;
 width:100%;height:auto;min-height:0;box-sizing:border-box;margin:0;padding:15px 10px;gap:8px 12px;
 background:var(--matrix-signature-bg);color:var(--matrix-signature-text);border:0;box-shadow:inset 0 7px 12px -8px rgb(124 245 162 / .32);
 font-family:Verdana,Arial,sans-serif;line-height:1.45;text-align:left;letter-spacing:normal;
}
body .matrix-footer, body .matrix-footer * {font-size:9.5px!important;font-weight:400!important;line-height:1.45;font-family:Verdana,Arial,sans-serif;letter-spacing:normal;}
body .matrix-footer .matrix-footer-signature {flex:0 1 auto;width:auto;min-width:0;max-width:100%;margin:0;padding:0;text-align:left;color:var(--matrix-signature-text);overflow-wrap:anywhere;}
body .matrix-footer .matrix-footer-utility {display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:3px;margin:0 0 0 auto;padding:0;color:#98cdaa;white-space:nowrap;}
body .matrix-footer :is(span,p,b,strong) {margin:0;padding:0;color:inherit;font:inherit;text-align:inherit;}
body .matrix-footer a,body .matrix-footer a:visited {color:inherit;text-decoration:underline;border:0;text-shadow:none;font:inherit;}
body .matrix-footer .matrix-footer-tvolk,body .matrix-footer .matrix-footer-tvolk:visited {color:var(--matrix-signature-link);white-space:nowrap;}
body .matrix-footer .matrix-footer-tvolk b {font-weight:700!important;}
body .matrix-footer .matrix-footer-by {white-space:nowrap;}
body .matrix-footer a[target="_blank"]::after {content:none;}
body .matrix-footer a:hover {color:#fff;text-shadow:none;}
body .matrix-footer a:focus-visible {outline:2px solid var(--matrix-signature-link);outline-offset:3px;}
body .matrix-footer > :not(.matrix-footer-rain) {position:relative;z-index:1;}
body .matrix-footer > canvas.matrix-footer-rain {position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.13;}
@media(prefers-reduced-motion:reduce){body .matrix-footer > canvas.matrix-footer-rain{display:none;}}
