/*!
 * KGLU dostopnost 1.0.0
 * Orodna vrstica za dostopnost za glu-sg.si. Vsi razredi imajo predpono `kd-`;
 * načini so razredi na <html> (kd-dark, kd-light, kd-gray, kd-spacing,
 * kd-readable, kd-underline, kd-motion, kd-cursor, kd-fs).
 */

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

/* ------------------------------------------------------------------
   Barvni žetoni plošče (sledijo temnemu načinu)
   ------------------------------------------------------------------ */
#kd,
#kd-skip{
	--kd-bg: #fff;
	--kd-fg: #000;
	--kd-muted: #4d4d4d;
	--kd-line: #000;
	--kd-hover: #f0f0f0;
	--kd-accent: #0000ff;      /* modra teme (aktivna stran, Virtualna galerija) */
	--kd-on-bg: #000;          /* izbrano stanje: kot »VSE« v filtrih */
	--kd-on-fg: #fff;
	--kd-focus: #0000ff;
	--kd-ease: cubic-bezier(.16, 1, .3, 1);
	--kd-font: "Helvetica Neue", Helvetica, "tex-gyre", Arial, sans-serif;
}
html.kd-dark #kd,
html.kd-dark #kd-skip{
	--kd-bg: #000;
	--kd-fg: #fff;
	--kd-muted: #d9d9d9;
	--kd-line: #fff;
	--kd-hover: #1f1f1f;
	--kd-accent: #ff0;
	--kd-on-bg: #ff0;
	--kd-on-fg: #000;
	--kd-focus: #ff0;
}
html.kd-readable #kd,
html.kd-readable #kd-skip{
	--kd-font: "Atkinson Hyperlegible", Verdana, sans-serif;
}

/* ------------------------------------------------------------------
   Osnova komponente (izolirana od sloga teme)
   ------------------------------------------------------------------ */
#kd,
#kd *,
#kd *::before,
#kd *::after{
	box-sizing: border-box;
}
#kd{
	font-family: var(--kd-font);
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: normal;
	word-spacing: normal;
	color: var(--kd-fg);
	-webkit-font-smoothing: antialiased;
}
#kd button{
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-shadow: none;
	text-decoration: none;
	vertical-align: middle;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	position: static;
	top: auto;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
#kd button span,
#kd a span{
	color: inherit;
}
html.kd-js #kd .kd-panel:focus{
	outline: none !important;
}
#kd h2,
#kd h3{
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	text-transform: none;
	border: 0;
	background: none;
}
#kd .kd-icon{
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
}
#kd .kd-sr{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ------------------------------------------------------------------
   Preskoči na vsebino
   ------------------------------------------------------------------ */
#kd-skip{
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2147483647;
	padding: 12px 18px;
	font: 700 15px/1.2 var(--kd-font);
	color: var(--kd-on-fg) !important;
	background: var(--kd-on-bg) !important;
	text-decoration: none !important;
	transform: translateY(calc(-100% - 24px));
}
#kd-skip:focus{
	transform: none;
}

/* ------------------------------------------------------------------
   Gumb za odpiranje
   ------------------------------------------------------------------ */
#kd .kd-trigger{
	position: fixed;
	z-index: 2147483646;
	left: 0;
	top: 120px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: var(--kd-on-bg);
	color: var(--kd-on-fg);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transition: background-color .18s var(--kd-ease), color .18s var(--kd-ease);
}
#kd .kd-trigger .kd-icon{
	width: 30px;
	height: 30px;
	stroke-width: 2.1;
}
#kd .kd-trigger:hover,
#kd .kd-trigger[aria-expanded="true"]{
	background: var(--kd-accent);
	color: var(--kd-bg);
}
html.kd-dark #kd .kd-trigger:hover,
html.kd-dark #kd .kd-trigger[aria-expanded="true"]{
	color: #000;
}

/* ------------------------------------------------------------------
   Plošča
   ------------------------------------------------------------------ */
#kd .kd-panel{
	position: fixed;
	z-index: 2147483647;
	left: 48px;
	top: 120px;
	width: 324px;
	max-height: calc(100vh - 140px);
	max-height: calc(100dvh - 140px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--kd-bg);
	color: var(--kd-fg);
	border: 2px solid var(--kd-line);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
	outline: none;
	scrollbar-width: thin;
	scrollbar-color: var(--kd-fg) transparent;
	animation: kd-in .2s var(--kd-ease);
}
#kd .kd-panel[hidden]{
	display: none;
}
@keyframes kd-in {
	from { opacity: 0; transform: translateX(-8px); }
	to   { opacity: 1; transform: none; }
}

#kd .kd-head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 10px 14px 20px;
	border-bottom: 2px solid var(--kd-line);
}
#kd .kd-title{
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -.01em !important;
}
#kd .kd-close{
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
}
#kd .kd-close:hover{
	background: var(--kd-hover);
}

#kd .kd-group{
	padding: 6px 0 8px;
}
#kd .kd-group + .kd-group{
	border-top: 1px solid var(--kd-line);
}
#kd .kd-gtitle{
	padding: 12px 20px 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	color: var(--kd-muted) !important;
}

/* Velikost besedila */
#kd .kd-size{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 20px 10px;
}
#kd .kd-stepper{
	display: flex;
	align-items: stretch;
	border: 2px solid var(--kd-line);
}
#kd .kd-step{
	display: grid;
	place-items: center;
	width: 40px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	transition: background-color .15s var(--kd-ease);
}
#kd .kd-step:hover:not([aria-disabled="true"]){
	background: var(--kd-on-bg);
	color: var(--kd-on-fg);
}
#kd .kd-step[aria-disabled="true"]{
	cursor: not-allowed;
}
#kd .kd-step[aria-disabled="true"] .kd-icon{
	opacity: .3;
}
#kd .kd-size-val{
	display: grid;
	place-items: center;
	min-width: 62px;
	padding: 0 6px;
	border-left: 2px solid var(--kd-line);
	border-right: 2px solid var(--kd-line);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Vrstica s stikalom */
#kd .kd-opt{
	display: grid;
	grid-template-columns: 20px 1fr 22px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	background: transparent;
	text-align: left;
	transition: background-color .15s var(--kd-ease);
}
#kd .kd-opt:hover{
	background: var(--kd-hover);
}
#kd .kd-opt-label{
	min-width: 0;
}
#kd .kd-box{
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 2px solid var(--kd-line);
	color: transparent;
	transition: background-color .15s var(--kd-ease), color .15s var(--kd-ease);
}
#kd .kd-box .kd-icon{
	width: 16px;
	height: 16px;
	stroke-width: 2.6;
}
#kd .kd-opt[aria-pressed="true"] .kd-box{
	background: var(--kd-on-bg);
	border-color: var(--kd-on-bg);
	color: var(--kd-on-fg);
}
#kd .kd-opt[aria-pressed="true"] .kd-opt-label{
	font-weight: 700;
}
/* Velik kazalec nima smisla na zaslonih na dotik. */
@media (hover: none), (pointer: coarse) {
	#kd .kd-opt-pointer{
		display: none;
	}
}

/* Noga */
#kd .kd-foot{
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 20px 16px;
	border-top: 2px solid var(--kd-line);
}
#kd .kd-reset,
#kd .kd-statement{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--kd-fg) !important;
	font-weight: 700;
	text-decoration: none !important;
}
#kd .kd-reset span,
#kd .kd-statement span{
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	text-decoration-color: transparent;
	transition: text-decoration-color .15s var(--kd-ease);
}
#kd .kd-reset:hover:not([aria-disabled="true"]) span,
#kd .kd-statement:hover span{
	text-decoration-color: currentColor;
}
#kd .kd-statement{
	font-weight: 400;
}
#kd .kd-statement .kd-icon{
	width: 18px;
	height: 18px;
	transition: transform .18s var(--kd-ease);
}
#kd .kd-statement:hover .kd-icon{
	transform: translateX(3px);
}
#kd .kd-reset[aria-disabled="true"]{
	cursor: default;
}
#kd .kd-reset[aria-disabled="true"] > *{
	opacity: .35;
}

/* Fokus znotraj komponente */
html.kd-js #kd :focus-visible,
html.kd-js #kd-skip:focus-visible{
	outline: 3px solid var(--kd-focus) !important;
	outline-offset: -3px !important;
}
html.kd-js #kd .kd-trigger:focus-visible{
	outline-offset: 3px !important;
}

/* Telefon: gumb spodaj levo, plošča kot spodnji list */
@media (max-width: 804px) {
	#kd .kd-trigger{
		top: auto;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 46px;
		height: 46px;
	}
	#kd .kd-panel{
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		width: auto;
		max-height: 86vh;
		max-height: 86dvh;
		border-width: 2px 0 0;
		box-shadow: 0 -12px 32px rgba(0, 0, 0, .22);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		animation-name: kd-up;
	}
	@keyframes kd-up {
		from { opacity: 0; transform: translateY(16px); }
		to   { opacity: 1; transform: none; }
	}
}

@media (prefers-reduced-motion: reduce) {
	#kd .kd-panel{ animation: none; }
	#kd *, #kd-skip{ transition: none !important; }
}

/* ==================================================================
   NAČINI (veljajo za stran, plošča je izvzeta)
   ================================================================== */

/* Fokus za tipkovnico: vedno jasen, pri kliku z miško ga ni. */
html.kd-js body :focus-visible {
	outline: 3px solid #0000ff !important;
	outline-offset: 2px !important;
}
html.kd-js body :focus:not(:focus-visible) {
	outline: none !important;
}
html.kd-dark body :focus-visible {
	outline-color: #ff0 !important;
}

/* Večji razmik besedila (WCAG 1.4.12) */
html.kd-spacing body *:where(:not(.kd, .kd *, .kd-skip, #wpadminbar, #wpadminbar *)) {
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
	line-height: 1.5 !important;
}
html.kd-spacing body p:not(.kd *) {
	margin-bottom: 2em !important;
}

/* Berljiva pisava (ikonske pisave ostanejo) */
html.kd-readable body,
html.kd-readable body *:not(.kd *):not([class^="icon-"]):not([class*=" icon-"]):not(.dashicons):not([class*="genericon"]):not([class*="fa-"]) {
	font-family: "Atkinson Hyperlegible", Verdana, sans-serif !important;
}

/* Podčrtane povezave */
html.kd-underline body a:not(.kd *):not(.kd-skip),
html.kd-underline body a:not(.kd *):not(.kd-skip) * {
	text-decoration: underline !important;
	text-decoration-thickness: from-font;
	text-underline-offset: .18em;
}

/* Sivine: filter na korenu ne pokvari lepljive glave (position: fixed). */
html.kd-gray {
	filter: grayscale(1);
}

/* Temno ozadje, visok kontrast. Slike in videi ostanejo, kot so. */
html.kd-dark,
html.kd-dark body,
html.kd-dark body *:where(:not(.kd, .kd *, .kd-skip, img, video, iframe, svg, svg *, #logo-net .nn, #wpadminbar, #wpadminbar *)) {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.kd-dark body a:not(.kd *):not(.kd-skip),
html.kd-dark body a:not(.kd *):not(.kd-skip) *:not(img):not(svg) {
	color: #ff0 !important;
}
html.kd-dark body input:not(.kd *),
html.kd-dark body textarea:not(.kd *),
html.kd-dark body select:not(.kd *),
html.kd-dark body button:not(.kd *) {
	border: 1px solid #fff !important;
}
/* Logotip: črne celice postanejo bele, napis se obrne. */
html.kd-dark #logo-net .nn:is(.tl, .tr, .br, .bl, .fl) {
	background-color: #fff !important;
}
html.kd-dark .site-branding img[src$=".svg"] {
	filter: invert(1);
}
/* Izbrani filtri (»VSE«, »sedanjost« …) ostanejo prepoznavni. */
html.kd-dark body ul[class$="-filter"] a.active li:not(#kd),
html.kd-dark body ul[class$="-filter"] li.active:not(#kd),
html.kd-dark body ul[class$="-filter"] a.active li *:not(#kd) {
	background-color: #ff0 !important;
	color: #000 !important;
}

/* Svetlo ozadje, visok kontrast */
html.kd-light,
html.kd-light body,
html.kd-light body *:where(:not(.kd, .kd *, .kd-skip, img, video, iframe, svg, svg *, #logo-net .nn, #wpadminbar, #wpadminbar *)) {
	background-color: #fff !important;
	color: #000 !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.kd-light body a:not(.kd *):not(.kd-skip),
html.kd-light body a:not(.kd *):not(.kd-skip) *:not(img):not(svg) {
	color: #0000cc !important;
}
html.kd-light body ul[class$="-filter"] a.active li:not(#kd),
html.kd-light body ul[class$="-filter"] li.active:not(#kd),
html.kd-light body ul[class$="-filter"] a.active li *:not(#kd) {
	background-color: #000 !important;
	color: #fff !important;
}

/* Ustavi animacije */
html.kd-motion *:not(.kd *),
html.kd-motion *:not(.kd *)::before,
html.kd-motion *:not(.kd *)::after {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	animation-delay: 0s !important;
	transition-duration: .001ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

/* Velik kazalec (SVG, 40 px, črn z belim robom: viden na vsaki podlagi) */
html.kd-cursor,
html.kd-cursor body,
html.kd-cursor body * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 3l26 13.5-11.2 3.4-5.1 11.1z' fill='%23000' stroke='%23fff' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.kd-cursor body :is(a, button, [role="button"], label, select, summary, [onclick], input[type="submit"], input[type="checkbox"], input[type="radio"]),
html.kd-cursor body :is(a, button, [role="button"], label, summary, [onclick]) * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M14 4.5a3 3 0 0 1 6 0V16l1-.1a3 3 0 0 1 5 1.2l.2.4a3 3 0 0 1 4.4 1.5 3 3 0 0 1 4.4 2.3V28c0 5-4 9-9 9h-3.5a9 9 0 0 1-7-3.4L8 25.8a3 3 0 0 1 4.3-4.1L14 23.3z' fill='%23000' stroke='%23fff' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") 16 3, pointer !important;
}
html.kd-cursor body :is(input[type="text"], input[type="search"], input[type="email"], input:not([type]), textarea) {
	cursor: text !important;
}
