/* Kraski pust - index_v4.php: new buttons, news and photos on top of style2.css */

/* Confetti: rhombi as small SVG images, mixed with round dots drawn with gradients */
:root {
	--kp4-rhombus-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(20 12 12)' d='M12 1l7 11-7 11-7-11z' fill='%23e63946'/%3E%3C/svg%3E");
	--kp4-rhombus-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(-30 12 12)' d='M12 1l7 11-7 11-7-11z' fill='%23ffcd47'/%3E%3C/svg%3E");
	--kp4-rhombus-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(-50 12 12)' d='M12 1l7 11-7 11-7-11z' fill='%23ffffff'/%3E%3C/svg%3E");
	--kp4-rhombus-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(35 12 12)' d='M12 1l7 11-7 11-7-11z' fill='%234fb3e8'/%3E%3C/svg%3E");
	--kp4-rhombus-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(60 12 12)' d='M12 1l7 11-7 11-7-11z' fill='%23e738c1'/%3E%3C/svg%3E");
	--kp4-rhombi-pale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560'%3E%3Cg%3E%3Cpath transform='translate(80 120) rotate(25)' d='M0-12l8 12-8 12-8-12z' fill='%23e63946' fill-opacity='.32'/%3E%3Cpath transform='translate(300 60) rotate(-35)' d='M0-12l8 12-8 12-8-12z' fill='%23ffcd47' fill-opacity='.6'/%3E%3Cpath transform='translate(470 250) rotate(60)' d='M0-10l7 10-7 10-7-10z' fill='%23297dc7' fill-opacity='.3'/%3E%3Cpath transform='translate(180 380) rotate(-15)' d='M0-12l8 12-8 12-8-12z' fill='%2382c729' fill-opacity='.42'/%3E%3Cpath transform='translate(400 480) rotate(40)' d='M0-10l7 10-7 10-7-10z' fill='%237025b6' fill-opacity='.24'/%3E%3Cpath transform='translate(40 500) rotate(75)' d='M0-9l6 9-6 9-6-9z' fill='%23e738c1' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Page background proposals (body class set by ?bg= in index_v4.php); kp4-bg-0 keeps the grey texture */

/* 1: very light blue with a few pale confetti */
body.kp4-bg-1 {
	background:
		var(--kp4-rhombi-pale),
		radial-gradient(circle at 78% 9%, rgba(255, 205, 71, .55) 0 9px, transparent 10px),
		radial-gradient(circle at 46% 38%, rgba(41, 125, 199, .28) 0 6px, transparent 7px),
		radial-gradient(circle at 22% 66%, rgba(112, 37, 182, .22) 0 9px, transparent 10px),
		radial-gradient(circle at 62% 82%, rgba(231, 56, 193, .26) 0 6px, transparent 7px),
		#eef5fa;
	/* A different tile size for each layer, so the confetti never line up in a grid */
	background-size: 560px 560px, 470px 470px, 290px 290px, 430px 430px, 350px 350px, auto;
	background-attachment: fixed;
}

/* 2: sky, light blue at the top fading to sand, with the same pale confetti as 1 */
body.kp4-bg-2 {
	background:
		var(--kp4-rhombi-pale),
		radial-gradient(circle at 78% 9%, rgba(255, 205, 71, .75) 0 9px, transparent 10px),
		radial-gradient(circle at 46% 38%, rgba(255, 255, 255, .75) 0 6px, transparent 7px),
		radial-gradient(circle at 22% 66%, rgba(112, 37, 182, .22) 0 9px, transparent 10px),
		radial-gradient(circle at 62% 82%, rgba(231, 56, 193, .28) 0 6px, transparent 7px),
		linear-gradient(180deg, #7fbfe3 0, #d3e9f5 50%, #f3dfb4 100%);
	background-size: 560px 560px, 470px 470px, 290px 290px, 430px 430px, 350px 350px, auto;
	background-attachment: fixed;
	background-color: #d3e9f5;
}

/* 3: the blue texture of the header all around the page */
body.kp4-bg-3 {
	background: #136088;
}

.kp4-demo-note {
	margin: 0;
	padding: 6px 15px;
	background: #ffcd47;
	color: #3a2a00;
	font: 600 13px 'Montserrat', sans-serif;
	text-align: center;
}


/* Banner: live text in place of BannerKP.gif, edition and year come from includes/kp_home.php */

.kp4-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 18px);
	margin: 0;
	text-align: left;
}

.kp4-banner-badge {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5em;
	height: 2.5em;
	background: #ffcd47;
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
	color: #0d4868;
	font: 400 clamp(22px, 2.7vw, 36px)/1 'Paytone One', sans-serif;
	transform: rotate(-8deg);
}

.kp4-banner-name {
	color: #ffffff;
	font: 400 clamp(28px, 4vw, 52px)/1.05 'Paytone One', sans-serif;
	text-shadow: 0 4px 0 rgba(0, 0, 0, .22);
	text-wrap: balance;
}
.kp4-banner-name strong { color: #ffcd47; font-weight: 400; }
/* The two names ("Kraški pust", "Pustna povorka") take turns in the same place: one slides out upwards
   while the other comes in from below. Who prefers no motion sees only the first. */
.kp4-banner-name { display: grid; }
.kp4-banner-name > span { grid-area: 1 / 1; align-self: center; animation: kp4-banner-first 10s ease-in-out infinite; }
.kp4-banner-name > span + span { opacity: 0; animation-name: kp4-banner-second; }
/* The first name, the one of the carnival, is the important one: red with a white edge, and bigger */
.kp4-banner-name > span:first-child { color: #e3261b; font-size: 1.22em; -webkit-text-stroke: .09em #ffffff; paint-order: stroke fill; }
.kp4-banner-name > span:first-child strong { -webkit-text-stroke: 0; }
@keyframes kp4-banner-first {
	0%, 45% { opacity: 1; transform: none; }
	50% { opacity: 0; transform: translateY(-.45em); }
	50.1%, 95% { opacity: 0; transform: translateY(.45em); }
	100% { opacity: 1; transform: none; }
}
@keyframes kp4-banner-second {
	0%, 45% { opacity: 0; transform: translateY(.45em); }
	50%, 95% { opacity: 1; transform: none; }
	100% { opacity: 0; transform: translateY(-.45em); }
}
@media (prefers-reduced-motion: reduce) {
	.kp4-banner-name > span { animation: none; }
}
/* Tablets held upright: the banner has the whole width of the header (style2.css, up to 1024px) and the
   sizes above, made for a third of a computer screen, look small there */
@media only screen and (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
	.kp4-banner-badge { font-size: clamp(28px, 4vw, 44px); }
	.kp4-banner-name { font-size: clamp(40px, 6vw, 64px); }
}

.social-icons .kp4-login { color: #ffffff; }
.social-icons .kp4-login:hover { color: #ffcd47; }


/* New site menu (includes/kp_menu.php) */

.kp4-nav { position: relative; z-index: 1100; margin-top: 4px; font-family: 'Montserrat', sans-serif; text-align: left; }

.kp4-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }

.kp4-nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: none;
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	font: 700 16px/1.2 'Montserrat', sans-serif;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.kp4-nav-link:hover,
.kp4-nav-link:focus,
[data-nav-item].is-open > .kp4-nav-link { background: rgba(255, 255, 255, .18); color: #ffffff; text-decoration: none; }
.kp4-nav-link.is-edition,
.kp4-nav-link.is-edition:hover,
.kp4-nav-link.is-edition:focus,
[data-nav-item].is-open > .kp4-nav-link.is-edition { background: #ffcd47; color: #3a2a00; }
.kp4-nav-link > .icon { opacity: .85; }
.kp4-nav-caret { display: inline-flex; transition: transform .2s; }
[data-nav-item].is-open > .kp4-nav-link .kp4-nav-caret { transform: rotate(180deg); }
.kp4-nav-link:focus-visible,
.kp4-nav-toggle:focus-visible { outline: 3px solid #ffcd47; outline-offset: 2px; }

.kp4-nav-panel {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	max-height: 70vh;
	overflow: auto;
	padding: 20px 24px 22px;
	background: #ffffff;
	border-top: 5px solid #ffcd47;
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(13, 72, 104, .35);
	color: #2f2f2f;
}
[data-nav-item].is-open > .kp4-nav-panel { display: block; }

.kp4-nav-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; margin: 0 0 6px; padding: 0; list-style: none; }
.kp4-nav-links a .icon { color: #7fb0cb; }
.kp4-nav-links a:hover .icon,
.kp4-nav-links a:focus .icon { color: #bd1e01; }
.kp4-nav-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	color: #196891;
	font: 600 15px/1.3 'Montserrat', sans-serif;
	text-decoration: none;
}
.kp4-nav-links a:hover,
.kp4-nav-links a:focus { background: #eaf3f9; color: #bd1e01; }

.kp4-nav-years,
.kp4-nav-tablist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.kp4-nav-years > span,
.kp4-nav-tablist > span { margin-right: 6px; color: #6b6b6b; font: 700 12px 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.kp4-nav-years a,
.kp4-nav-tablist button {
	padding: 6px 14px;
	background: #ffffff;
	border: 1px solid #b9cddb;
	border-radius: 999px;
	color: #196891;
	font: 700 14px 'Montserrat', sans-serif;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	cursor: pointer;
}
.kp4-nav-years a:hover,
.kp4-nav-tablist button:hover { border-color: #196891; background: #eaf3f9; }
.kp4-nav-tablist button[aria-selected="true"] { background: #196891; border-color: #196891; color: #ffffff; }

.kp4-nav-tabs { margin-top: 6px; }
/* A line between the different blocks of a panel: year pills, links, tabs (photos, videos) */
.kp4-nav-links + .kp4-nav-tabs,
.kp4-nav-years + .kp4-nav-tabs,
.kp4-nav-years + .kp4-nav-links,
.kp4-nav-links + .kp4-nav-years { margin-top: 14px; padding-top: 16px; border-top: 2px solid #e3edf3; }
.kp4-nav-tabpanel { padding-top: 2px; }
/* A row of years is followed by a line, like the years of the rankings */
.kp4-nav-tablist.is-years { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid #e3edf3; }
.kp4-nav-tabpanel .kp4-nav-tabs { padding: 12px 14px 4px; background: #f3f8fb; border-radius: 12px; }

.kp4-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 16px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 12px;
	color: #ffffff;
	font: 700 16px 'Montserrat', sans-serif;
	cursor: pointer;
}
.kp4-nav-bars,
.kp4-nav-bars::before,
.kp4-nav-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.kp4-nav-bars { position: relative; }
.kp4-nav-bars::before,
.kp4-nav-bars::after { content: ""; position: absolute; left: 0; }
.kp4-nav-bars::before { top: -6px; }
.kp4-nav-bars::after { top: 6px; }

@media only screen and (max-width: 899px) {
	.kp4-nav-toggle { display: flex; }
	.kp4-nav-list { display: none; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px; background: #ffffff; border-radius: 14px; box-shadow: 0 18px 44px rgba(13, 72, 104, .35); }
	.kp4-nav.is-open .kp4-nav-list { display: flex; }
	.kp4-nav-caret { margin-left: auto; }
	.kp4-nav-link { width: 100%; justify-content: flex-start; padding: 13px 14px; border-radius: 10px; color: #196891; white-space: normal; }
	.kp4-nav-link:hover,
	.kp4-nav-link:focus,
	[data-nav-item].is-open > .kp4-nav-link { background: #eaf3f9; color: #196891; }
	.kp4-nav-panel { position: static; max-height: none; margin: 4px 0 8px; padding: 12px 10px 10px; border-top-width: 3px; border-radius: 10px; box-shadow: none; background: #f8fbfd; }
	.kp4-nav-links { grid-template-columns: 1fr; }
	.kp4-nav-links a { padding: 11px 12px; }
	.kp4-nav-years a,
	.kp4-nav-tablist button { padding: 8px 14px; }
}

/* Phones and tablets held upright (and phones turned sideways): the page takes the whole width.
   Bootstrap's fixed .container widths (750px, 970px) and its 15px side padding would leave strips
   of background at the sides; the boxes inside keep their own padding. */
@media only screen and (max-width: 767px),
	only screen and (max-width: 1199px) and (orientation: portrait),
	only screen and (max-width: 1199px) and (max-height: 500px) {
	.container { width: auto; padding-left: 0; padding-right: 0; }
	.container > .row { margin-left: 0; margin-right: 0; }
	/* Already full width here: the button has nothing to do */
	.rightheader .social-icons .kp4-wide-toggle { display: none; }
}

/* On a computer the same full width is a choice: the button in the header (next to the login)
   puts the class kp4-wide on <html>, kept in localStorage */
html.kp4-wide .container { width: auto; padding-left: 0; padding-right: 0; }
html.kp4-wide .container > .row { margin-left: 0; margin-right: 0; }

/* Five icons in the 20% right column of the header: the column grows to hold them all, never squeezes them */
.rightheader { min-width: fit-content; }
.social-icons > * { flex: none; }
.social-icons .kp4-wide-toggle { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; color: #ffffff; cursor: pointer; }
.social-icons .kp4-wide-toggle:hover { color: #ffcd47; }
.social-icons .kp4-wide-toggle:focus-visible { outline: 3px solid #ffcd47; outline-offset: 2px; border-radius: 4px; }
.kp4-wide-toggle > .icon + .icon,
html.kp4-wide .kp4-wide-toggle > .icon:first-child { display: none; }
html.kp4-wide .kp4-wide-toggle > .icon + .icon { display: block; }

/* Layout: the same three columns as before; on phones the countdown comes first */

.kp4-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "count" "links" "news" "media";
}
.kp4-layout::before,
.kp4-layout::after { display: none; }
.kp4-layout > * { min-width: 0; padding: 15px; }

.kp4-area-count { grid-area: count; }
.kp4-area-links { grid-area: links; text-align: center; }
.kp4-area-news { grid-area: news; }
.kp4-area-media { grid-area: media; }

@media only screen and (min-width: 600px) {
	.kp4-layout {
		grid-template-columns: 30% minmax(0, 1fr);
		grid-template-areas: "count count" "links news" "media news";
		grid-template-rows: auto auto 1fr;
	}
}

@media only screen and (min-width: 992px) {
	.kp4-layout {
		grid-template-columns: 20% minmax(0, 1fr) 30%;
		grid-template-areas: "links news count" "links news media";
		grid-template-rows: auto 1fr;
	}
	.kp4-area-links { padding-top: 30px; }
	.kp4-area-media { padding-top: 7px; }
}


/* Countdown */

.kp4-countdown {
	position: relative;
	overflow: hidden;
	padding: 24px 18px 22px;
	background:
		var(--kp4-rhombus-red) 12% 12% / 21px 21px no-repeat,
		radial-gradient(circle at 95% 6%, #ffcd47 0 6px, transparent 7px),
		var(--kp4-rhombus-white) 95% 36% / 16px 16px no-repeat,
		radial-gradient(circle at 6% 40%, #4fb3e8 0 4px, transparent 5px),
		linear-gradient(160deg, #1a78a6, #0d4868);
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(17, 93, 132, .30);
	color: #ffffff;
	text-align: center;
}

.kp4-countdown-title {
	margin: 0;
	color: #ffffff;
	font: 400 28px/1.15 'Oswald', sans-serif;
	text-wrap: balance;
}
.kp4-countdown-title strong { color: #ffcd47; font-weight: 400; }

.kp4-countdown-date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 10px 0 0;
	color: #d6ecf7;
	font: 600 13px/1.3 'Montserrat', sans-serif;
}
.kp4-countdown-date time::first-letter { text-transform: uppercase; }

.kp4-countdown .countdown-cells {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	max-width: 360px;
	margin: 18px auto 0;
}

.kp4-count {
	--kp4-count: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 2px 10px;
	background: rgba(255, 255, 255, .12);
	border-top: 4px solid var(--kp4-count);
	border-radius: 10px;
}
.kp4-count.is-red { --kp4-count: #e63946; }
.kp4-count.is-sky { --kp4-count: #4fb3e8; }
.kp4-count.is-yellow { --kp4-count: #ffcd47; }

.kp4-count-number {
	color: #ffffff;
	font: 400 34px/1 'Oswald', sans-serif;
	font-variant-numeric: tabular-nums;
}

.kp4-count-unit {
	margin-top: 6px;
	color: #d6ecf7;
	font: 600 10px 'Montserrat', sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.kp4-countdown .countdown-done {
	margin: 16px 0 0;
	color: #ffcd47;
	font: 400 30px/1.2 'Oswald', sans-serif;
}

/* Buttons */

.kp4-links { margin: 8px 0 0; padding: 0; list-style: none; }
.kp4-links li { margin-bottom: 9px; }

.kp4-link {
	--kp4-color: #33b5e5;
	--kp4-text: #ffffff;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px 8px;
	background: var(--kp4-color);
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
	color: var(--kp4-text);
	font: 700 14px/1.2 'Montserrat', sans-serif;
	text-align: left;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.kp4-link:hover,
.kp4-link:focus {
	color: var(--kp4-text);
	text-decoration: none;
	transform: translateX(4px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
	filter: brightness(1.06);
}
.kp4-link.is-yellow { --kp4-color: #ffcd47; --kp4-text: #3a2a00; }
.kp4-link.is-purple { --kp4-color: #7025b6; }
.kp4-link.is-pink { --kp4-color: #e738c1; }
.kp4-link.is-blue { --kp4-color: #297dc7; }
.kp4-link.is-green { --kp4-color: #82c729; --kp4-text: #1d3300; }
.kp4-link.is-red { --kp4-color: #bd1e01; }
.kp4-link.is-sky { --kp4-color: #33b5e5; --kp4-text: #06303f; }
.kp4-link.is-lilac { --kp4-color: #cc95ff; --kp4-text: #2e0a57; }
.kp4-link.is-gold { --kp4-color: #e5b533; --kp4-text: #3a2a00; }

.kp4-link-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, .28);
	border-radius: 50%;
}

.kp4-link-label { min-width: 0; overflow-wrap: anywhere; }

@media only screen and (max-width: 599px) {
	.kp4-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
	.kp4-links li { margin: 0; }
	.kp4-link { height: 100%; }
}


/* News */

.kp4-empty { color: #454545; font: 15px 'Montserrat', sans-serif; text-align: center; }

.kp4-news {
	margin-top: 20px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(17, 93, 132, .10);
	text-align: left;
}

.kp4-news-image {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	background: #115d84;
	border: 0;
	cursor: zoom-in;
}
.kp4-news-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center 22%;
	transition: transform .3s;
}
.kp4-news-image:hover img { transform: scale(1.03); }

.kp4-zoom-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: rgba(0, 0, 0, .55);
	border-radius: 50%;
	color: #ffffff;
}

/* Posters: whole image beside the text */
@media only screen and (min-width: 480px) {
	.kp4-news.is-portrait { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: start; }
}
.kp4-news.is-portrait .kp4-news-image img { aspect-ratio: auto; height: auto; }

.kp4-news-body { padding: 18px 20px 20px; }

.kp4-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	color: #6b6b6b;
	font: 600 13px 'Montserrat', sans-serif;
}

.kp4-news-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #e3f1f8;
	border-radius: 999px;
	color: #115d84;
}

.kp4-news-title {
	margin: 10px 0 8px;
	color: #bd1e01;
	font: 400 24px/1.25 'Oswald', sans-serif;
}

.kp4-news-text {
	color: #454545;
	font: 15px/1.6 'Montserrat', sans-serif;
	overflow-wrap: anywhere;
}
.kp4-news-text img { max-width: 100%; height: auto; }
.kp4-news-text.is-clamped { position: relative; max-height: 7.8em; overflow: hidden; }
.kp4-news-text.is-clamped::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3em;
	background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
}

.kp4-more {
	margin-top: 12px;
	padding: 7px 16px;
	background: #ffffff;
	border: 2px solid #196891;
	border-radius: 999px;
	color: #196891;
	font: 700 13px 'Montserrat', sans-serif;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.kp4-more:hover { background: #196891; color: #ffffff; }

.kp4-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 6px; }
.kp4-pages a {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	background: #ffffff;
	border: 1px solid #d5d5d5;
	border-radius: 999px;
	color: #196891;
	font: 700 14px 'Montserrat', sans-serif;
	text-decoration: none;
}
.kp4-pages a:hover { border-color: #196891; }
.kp4-pages a.is-current { background: #196891; border-color: #196891; color: #ffffff; }


/* Mediji */

.kp4-media { border-radius: 14px; }

.kp4-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kp4-media-grid img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	transition: transform .15s;
}
.kp4-media-grid:hover img { transform: scale(1.03); }

.kp4-media-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: #196891;
	font: 700 14px 'Montserrat', sans-serif;
	text-decoration: none;
}
.kp4-media-more:hover { color: #115d84; text-decoration: underline; }


/* Photos */

/* Title of the photos: a blue band with slanted edges like the header and the footer, plus confetti */
.kp4-photos-head,
.kp4-inner .kp4-band {
	margin-top: 20px;
	padding: 46px 15px 44px;
	background:
		var(--kp4-rhombus-red) 7% 30% / 29px 29px no-repeat,
		radial-gradient(circle at 13% 70%, #ffcd47 0 5px, transparent 6px),
		var(--kp4-rhombus-white) 20% 28% / 18px 18px no-repeat,
		radial-gradient(circle at 25% 66%, #82c729 0 6px, transparent 7px),
		var(--kp4-rhombus-yellow) 93% 32% / 29px 29px no-repeat,
		radial-gradient(circle at 87% 72%, #e738c1 0 5px, transparent 6px),
		radial-gradient(circle at 80% 32%, #ffffff 0 4px, transparent 5px),
		var(--kp4-rhombus-sky) 75% 72% / 23px 23px no-repeat,
		linear-gradient(160deg, #1a78a6, #0d4868);
	clip-path: polygon(0 0, 100% 22px, 100% 100%, 0 calc(100% - 22px));
	text-align: center;
}

.kp4-photos-title {
	margin: 0;
	color: #ffffff;
	font: 400 clamp(30px, 4.4vw, 50px)/1.1 'Paytone One', sans-serif;
	text-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}
.kp4-photos-title strong { color: #ffcd47; font-weight: 400; }

.kp4-photos-subtitle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 8px 0 0;
	color: #d6ecf7;
	font: 700 13px 'Montserrat', sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.kp4-photos-subtitle::before,
.kp4-photos-subtitle::after {
	content: "";
	width: 46px;
	height: 3px;
	background: #ffcd47;
	border-radius: 999px;
}

/* On phones the title is as wide as the confetti area: keep only the outer dots */
@media only screen and (max-width: 699px) {
	.kp4-photos-head,
	.kp4-inner .kp4-band {
		background:
			var(--kp4-rhombus-red) 5% 20% / 21px 21px no-repeat,
			radial-gradient(circle at 95% 26%, #ffcd47 0 5px, transparent 6px),
			radial-gradient(circle at 6% 84%, #82c729 0 4px, transparent 5px),
			var(--kp4-rhombus-pink) 95% 84% / 18px 18px no-repeat,
			linear-gradient(160deg, #1a78a6, #0d4868);
	}
}
/* Gallery and video pages: the title uses the same band as the photos on the home */
.kp4-inner .kp4-band {
	float: none;
	width: auto;
	margin: 0 0 22px;
	padding-left: clamp(40px, 8vw, 110px);
	padding-right: clamp(40px, 8vw, 110px);
	/* Titles here can be long: confetti only in the corners, clear of the text */
	background:
		var(--kp4-rhombus-red) 2.5% 26% / 22px 22px no-repeat,
		radial-gradient(circle at 97% 28%, #ffcd47 0 6px, transparent 7px),
		radial-gradient(circle at 4% 80%, #82c729 0 5px, transparent 6px),
		var(--kp4-rhombus-pink) 96.5% 80% / 18px 18px no-repeat,
		linear-gradient(160deg, #1a78a6, #0d4868);
	color: #ffffff;
	font: 400 clamp(24px, 3.4vw, 40px)/1.15 'Paytone One', sans-serif;
	text-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}
.kp4-inner .kp4-band .fnt4 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 10px 0 0;
	color: #d6ecf7;
	font: 700 13px 'Montserrat', sans-serif;
	letter-spacing: .14em;
	text-shadow: none;
	text-transform: uppercase;
}
.kp4-inner .kp4-band .fnt4::before,
.kp4-inner .kp4-band .fnt4::after {
	content: "";
	flex: none;
	width: 46px;
	height: 3px;
	background: #ffcd47;
	border-radius: 999px;
}

/* The photos cover the whole width of the page under the blue band, edge to edge, no thumbnails;
   on wide screens the height stops at 85% of the window so a photo is always seen whole */
.kp4-photos-head + #slide_gallery { margin-top: 0; }
#slide_gallery { padding: 0; }

.kp4-slideshow { margin: 0; }

.kp4-slideshow .slideshow-frame {
	position: relative;
	/* An explicit width: with width auto the browser would turn max-height into a max-width
	   through the ratio, and the photo would shrink to the left on wide screens */
	width: 100%;
	aspect-ratio: 16 / 10;
	max-height: 85vh;
	overflow: hidden;
	background: #115d84;
}

/* Every photo is a <figure> with, when chosen in Foto home (includes/kp_slides.php), the words over it */
.kp4-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .8s;
}
.kp4-slide.is-active { opacity: 1; }
.kp4-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Place, name and title at the bottom left, on a shade that keeps them readable on any photo */
.kp4-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	gap: clamp(12px, 2vw, 22px);
	padding: clamp(40px, 9vw, 120px) clamp(16px, 4vw, 56px) clamp(16px, 3vw, 40px);
	background: linear-gradient(180deg, transparent, rgba(5, 30, 45, .55) 45%, rgba(5, 30, 45, .82));
	color: #ffffff;
	text-align: left;
	pointer-events: none;
}
.kp4-slide-medal {
	display: grid;
	place-items: center;
	flex: none;
	width: clamp(54px, 7vw, 92px);
	height: clamp(54px, 7vw, 92px);
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 -4px 0 rgba(0, 0, 0, .15);
	color: #3a2a00;
	font: 400 clamp(28px, 3.8vw, 50px)/1 'Paytone One', sans-serif;
	transform: rotate(-8deg);
}
.kp4-slide-medal.is-place-1 { background: #ffcd47; }
.kp4-slide-medal.is-place-2 { background: #cfd6dc; }
.kp4-slide-medal.is-place-3 { background: #c98b55; color: #ffffff; }
.kp4-slide-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kp4-slide-place { color: #ffcd47; font: 700 clamp(11px, 1.1vw, 14px)/1.2 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.kp4-slide-name { color: #ffffff; font: 400 clamp(22px, 3.4vw, 46px)/1.05 'Paytone One', sans-serif; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.kp4-slide-title { color: #f1f6f9; font: italic 500 clamp(14px, 1.6vw, 21px)/1.3 'Montserrat', sans-serif; }

.slideshow-button,
.slideshow-zoom {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(0, 0, 0, .5);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	transition: background-color .15s;
}
.slideshow-button:hover,
.slideshow-zoom:hover { background: rgba(0, 0, 0, .8); }
.slideshow-button { top: 50%; margin-top: -22px; }
.slideshow-button.is-prev { left: 12px; }
.slideshow-button.is-next { right: 12px; }
.slideshow-zoom { top: 12px; right: 12px; cursor: zoom-in; }

.slideshow-count {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	background: rgba(0, 0, 0, .5);
	border-radius: 999px;
	color: #ffffff;
	font: 600 13px 'Montserrat', sans-serif;
}

/* Lightbox */

.kp4-lightbox {
	max-width: 96vw;
	max-height: 96vh;
	padding: 0;
	background: none;
	border: 0;
	overflow: visible;
}
.kp4-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.kp4-lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 8px; }
.kp4-lightbox button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(0, 0, 0, .6);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}


/* Inner pages (body class kp4-inner): page title and text in the style of the home */

.kp4-inner .main_bg2 { padding: 26px clamp(16px, 4vw, 44px) 34px; text-align: left; }

.kp4-inner .card_pasica {
	margin: 6px 0 24px;
	padding: 0;
	background: none;
	color: #bd1e01;
	font: 400 clamp(26px, 3.6vw, 38px)/1.15 'Paytone One', sans-serif;
	text-align: center;
}
.kp4-inner .card_pasica::after {
	content: "";
	display: block;
	width: 72px;
	height: 5px;
	margin: 12px auto 0;
	background: #ffcd47;
	border-radius: 999px;
}

/* Values the inner pages had in the old css/style.css */
.kp4-inner #pajaco1 { width: 327px; height: 512px; background-image: url(../images/placidplace-clown-14414_327x512.gif); }
.kp4-inner .inner-div { width: auto !important; max-width: 900px !important; }

.kp4-inner .fnt6 { color: #3f3f3f; font-size: 16px; line-height: 1.7; }
.kp4-inner .fnt6 p { margin: 0 0 12px; }
.kp4-inner .fnt6 b { color: #196891; }
.kp4-inner .fnt6 img { height: auto; border-radius: 10px; }

/* Inner pages: tables, programme and forms in the colours of the home.
   :not(.pdf-export) leaves the PDF export (which restyles #pdf-content itself) as it was. */

.kp4-inner #pdf-content:not(.pdf-export) tr.fnt7,
.kp4-inner .main_bg2 tr.fnt7,
.kp4-inner .main_bg3 > table tr.fnt7 {
	background-color: #196891 !important;
	color: #ffffff;
	font-size: 19px;
	letter-spacing: .03em;
}
.kp4-inner #pdf-content:not(.pdf-export) tr.fnt7 td { padding: 8px 10px; }

.kp4-inner #pdf-content:not(.pdf-export) .bk1 { background-color: #ffffff; }
.kp4-inner #pdf-content:not(.pdf-export) .bk2 { background-color: #eaf3f9; }
.kp4-inner #pdf-content:not(.pdf-export) .bk1 td,
.kp4-inner #pdf-content:not(.pdf-export) .bk2 td { border-bottom: 1px solid #d5e4ee; }

.kp4-inner #pdf-content:not(.pdf-export) td.fnt6 { color: #2f2f2f; font-size: 16px; }
.kp4-inner #pdf-content:not(.pdf-export) td.fnt6 a,
.kp4-inner #pdf-content:not(.pdf-export) td.fnt6 button { color: #196891; font-weight: 600; }

/* The same table colours on the search pages, whose tables are not inside #pdf-content */
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner tr.fnt7 { background-color: #196891 !important; color: #ffffff; font-size: 19px; letter-spacing: .03em; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner tr.fnt7 td { padding: 8px 10px; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner .bk1 { background-color: #ffffff; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner .bk2 { background-color: #eaf3f9; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner .bk1 td,
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner .bk2 td { border-bottom: 1px solid #d5e4ee; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner td.fnt6 { color: #2f2f2f; font-size: 16px; }
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner td.fnt6 a,
body.kp4-inner:not(:has(#pdf-content)) #middleconteiner td.fnt6 button { color: #196891; font-weight: 600; }

/* The outer layout table had a pale yellow background that showed between the cells */
.kp4-inner #middleconteiner > table { background-color: transparent; }

/* Pages whose content sits in main_bg3 (rankings) get the same white sheet as the others */
.kp4-inner .main_bg3 { background: #ffffff; padding: 20px clamp(8px, 2vw, 24px) 30px; }

/* The detailed scores page has no white sheet of its own */
.kp4-inner #pdf-content:not(.pdf-export) { background: #ffffff; padding-top: 16px; padding-bottom: 28px; }
.kp4-scores:last-of-type { margin-bottom: 0; }

/* Programme */
.kp4-inner .card_bodymedia {
	padding: 22px clamp(12px, 3vw, 30px);
	background: #f3f8fb;
	border: 1px solid #d5e4ee;
	border-radius: 14px;
}
.kp4-inner .Title2b { color: #196891; font-weight: 700; }
.kp4-inner .Title2b u { text-decoration: none; border-bottom: 3px solid #ffcd47; }

/* Programme of an edition as a time line (includes/kp_program.php): the day on a blue band, then the
   events along a yellow line, each with its hour */
.kp4-prog { display: grid; gap: 30px; max-width: 820px; margin: 0 auto; }
.kp4-prog-date { display: flex; align-items: baseline; gap: 12px; padding: 10px 22px; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 12px, transparent 12px 24px), linear-gradient(170deg, #2a7fab, #196891); border-radius: 12px; color: #ffffff; font: 600 15px/1.3 'Montserrat', sans-serif; }
.kp4-prog-weekday { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kp4-prog-date strong { color: #ffcd47; font: 400 36px/1 'Paytone One', sans-serif; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.kp4-prog-items { margin: 0 0 0 30px; padding: 12px 0 0; border-left: 3px solid #ffcd47; list-style: none; }
.kp4-prog-items li { position: relative; display: grid; gap: 8px; padding: 12px 0 20px 30px; }
.kp4-prog-items li::before { content: ""; position: absolute; left: -11px; top: 18px; width: 19px; height: 19px; box-sizing: border-box; background: #ffffff; border: 4px solid #196891; border-radius: 50%; }
.kp4-prog-items li.is-main::before { background: #bd1e01; border-color: #ffcd47; }
.kp4-prog-time { justify-self: start; padding: 6px 14px; background: #ffcd47; border-radius: 999px; color: #3a2a00; font: 400 18px/1.1 'Paytone One', sans-serif; }
.kp4-prog-time.is-label { padding: 6px 12px; background: #e3eff6; color: #196891; font: 700 11px/1.3 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kp4-prog-text h3 { margin: 2px 0 0; color: #0d2f44; font: 700 19px/1.3 'Montserrat', sans-serif; }
.kp4-prog-items li.is-main h3 { color: #bd1e01; font: 400 clamp(24px, 3vw, 30px)/1.15 'Paytone One', sans-serif; }
.kp4-prog-text p,
.kp4-prog-html { margin: 8px 0 0; color: #3f3f3f; font: 16px/1.6 'Montserrat', sans-serif; }
.kp4-prog-html p,
.kp4-prog-html div { margin: 0; font: inherit; }
.kp4-prog-html a { color: #196891; }
.kp4-prog-text b { color: #196891; }
.kp4-prog-text dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; padding: 14px 16px; background: #f3f8fb; border-radius: 12px; }
.kp4-prog-text dt { padding-top: 3px; color: #196891; font: 700 11px/1.4 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.kp4-prog-text dd { margin: 0; color: #3f3f3f; font: 15px/1.5 'Montserrat', sans-serif; }
.kp4-prog-text img { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 14px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.kp4-prog-link { display: inline-block; margin-top: 14px; padding: 7px 18px; border: 2px solid #196891; border-radius: 999px; color: #196891; font: 700 14px 'Montserrat', sans-serif; text-decoration: none; transition: background .15s, color .15s; }
.kp4-prog-link:hover { background: #196891; color: #ffffff; }

@media only screen and (max-width: 599px) {
	.kp4-prog-date { justify-content: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
	.kp4-prog-date strong { font-size: 32px; }
	.kp4-prog-items { margin-left: 10px; }
	.kp4-prog-items li { padding-left: 22px; }
	.kp4-prog-text dl { grid-template-columns: 1fr; gap: 2px; }
	.kp4-prog-text dd { margin-bottom: 8px; }
}
/* Plan of the parade (pages/planimetrija.php) */
.kp4-plan { max-width: 1100px; margin: 0 auto; overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .10); }
.kp4-plan .kp4-winner-cover { display: block; width: 100%; }
.kp4-plan .kp4-winner-cover img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }

/* Rules of the carnival (includes/kp_rules.php): an index of the articles, then one card for each */
.kp4-rules { max-width: 900px; margin: 0 auto; }
.kp4-rules-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.kp4-rules-index a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: #ffffff; border: 2px solid #d5e4ee; border-radius: 999px; color: #196891; font: 700 13px/1.2 'Montserrat', sans-serif; text-decoration: none; transition: border-color .15s, background .15s; }
.kp4-rules-index a:hover { background: #f3f8fb; border-color: #196891; }
.kp4-rules-index b { display: grid; place-items: center; width: 24px; height: 24px; background: #196891; border-radius: 50%; color: #ffffff; font-size: 12px; }
.kp4-rule { margin-bottom: 16px; padding: 22px clamp(16px, 3vw, 28px); background: #ffffff; border: 1px solid #d5e4ee; border-left: 5px solid #ffcd47; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .08); scroll-margin-top: 16px; }
.kp4-rule h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: #0d4868; font: 700 clamp(18px, 2.2vw, 22px)/1.25 'Montserrat', sans-serif; }
.kp4-rule h2 span { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: #ffcd47; border-radius: 50%; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); color: #0d4868; font: 400 22px/1 'Paytone One', sans-serif; transform: rotate(-6deg); }
.kp4-rule ul { margin: 0; padding: 0; list-style: none; }
.kp4-rule li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed #d5e4ee; }
.kp4-rule li:first-child { border-top: 0; padding-top: 0; }
.kp4-rule-mark { display: grid; place-items: center; width: 28px; height: 28px; background: #e3eff6; border-radius: 8px; color: #196891; font: 700 13px/1 'Montserrat', sans-serif; }
.kp4-rule li p { grid-column: 2; margin: 3px 0 0; color: #3f3f3f; font: 16px/1.65 'Montserrat', sans-serif; text-align: left; }
.kp4-rule li strong { color: #bd1e01; }
.kp4-rule img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; border-radius: 10px; }
.kp4-rules-closing { margin-top: 24px; padding: 18px clamp(16px, 3vw, 28px); background: #f3f8fb; border-radius: 14px; }
.kp4-rules-closing p { margin: 0 0 6px; color: #3f3f3f; font: 15px/1.6 'Montserrat', sans-serif; }
.kp4-rules-closing p:first-child { margin-bottom: 12px; color: #0d4868; font-weight: 700; }
.kp4-rules-closing p:last-child { margin-bottom: 0; }

@media only screen and (max-width: 599px) {
	.kp4-rules-index { justify-content: flex-start; }
	.kp4-rule li p { font-size: 15px; }
}
/* Search in the rankings of all the years (includes/kp_rank_search.php) */
.kp4-top { max-width: 952px; margin: 0 auto 26px; padding: 18px clamp(14px, 3vw, 26px) 14px; box-sizing: border-box; background: #f3f8fb; border: 1px solid #d5e4ee; border-radius: 14px; }
.kp4-top h2 { margin: 0 0 12px; color: #0d4868; font: 700 16px/1.3 'Montserrat', sans-serif; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.kp4-top ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(6, auto); gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.kp4-top a { display: grid; grid-template-columns: 24px minmax(0, 11em) minmax(30px, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; color: #2f2f2f; font: 600 14px/1.25 'Montserrat', sans-serif; text-align: left; text-decoration: none; }
.kp4-top a:hover { background: #ffffff; box-shadow: 0 2px 8px rgba(17, 93, 132, .14); }
.kp4-top-place { color: #7a8a96; font-size: 12px; font-weight: 700; text-align: right; }
.kp4-top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp4-top-bar { height: 10px; background: #dbe8f0; border-radius: 999px; overflow: hidden; }
.kp4-top-bar span { display: block; height: 100%; background: linear-gradient(to right, #196891, #2a7fab); border-radius: 999px; }
.kp4-top li:first-child .kp4-top-bar span { background: linear-gradient(to right, #f0b400, #ffcd47); }
.kp4-top-count { display: flex; align-items: baseline; gap: 6px; min-width: 62px; color: #0d4868; }
.kp4-top-count strong { font: 400 17px/1 'Paytone One', sans-serif; }
.kp4-top-count small { color: #bd1e01; font-size: 11px; font-weight: 700; }
.kp4-found-count { margin: 0 0 10px; color: #5b6b78; font: 600 13px 'Montserrat', sans-serif; text-align: left; }
.kp4-found-count b { color: #bd1e01; }
.kp4-rank-text { max-width: 720px; margin: 0 auto; color: #454545; font: 15px/1.65 'Montserrat', sans-serif; text-align: left; }
.kp4-found .kp4-score[data-show="photo"] .kp4-rank-text,
.kp4-found .kp4-score[data-show="text"] .kp4-rank-img { display: none; }
.kp4-found button.kp4-rank-photo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
.kp4-found button.kp4-rank-photo:hover { background: #e3eff6; color: #196891; }
.kp4-found .kp4-score[open] .kp4-rank-photo { color: #7fb0cb; }
.kp4-found .kp4-score[open][data-show="photo"] .kp4-rank-photo[data-show="photo"],
.kp4-found .kp4-score[open][data-show="text"] .kp4-rank-photo[data-show="text"] { background: #bd1e01; color: #ffffff; }
.kp4-found .kp4-score-total { min-width: 44px; }
.kp4-found-year { flex: none; padding: 4px 10px; background: #e3eff6; border-radius: 999px; color: #196891; font: 700 13px/1 'Montserrat', sans-serif; font-variant-numeric: tabular-nums; }

@media only screen and (max-width: 699px) {
	.kp4-top ol { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
	.kp4-top a { grid-template-columns: 20px minmax(0, 9em) minmax(20px, 1fr) auto; gap: 8px; padding: 5px 2px; font-size: 13px; }
	.kp4-found-year { padding: 3px 7px; font-size: 11px; }
}
/* Search in the whole site: the bar (home and pages/isci.php) and the results by section */
.kp4-site-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 22px; padding: 6px 6px 6px 18px; box-sizing: border-box; background: #ffffff; border: 2px solid #c9dbe6; border-radius: 999px; box-shadow: 0 4px 14px rgba(17, 93, 132, .12); color: #196891; transition: border-color .15s, box-shadow .15s; }
.kp4-site-search:focus-within { border-color: #196891; box-shadow: 0 4px 18px rgba(17, 93, 132, .25); }
.kp4-site-search svg { flex: none; }
.kp4-site-search input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 8px 0; background: none; border: 0; outline: 0; color: #2f2f2f; font: 500 16px 'Montserrat', sans-serif; }
.kp4-site-search button { flex: none; padding: 10px 22px; background: #196891; border: 0; border-radius: 999px; color: #ffffff; font: 700 14px 'Montserrat', sans-serif; cursor: pointer; transition: background .15s; }
.kp4-site-search button:hover { background: #0d4868; }
/* On the home the bar is shorter and at the top left, above the buttons */
.row_bg > .kp4-site-search { max-width: 340px; margin: 16px auto 0 15px; padding: 4px 4px 4px 14px; }
.row_bg > .kp4-site-search input[type="search"] { padding: 6px 0; font-size: 14px; }
.row_bg > .kp4-site-search button { padding: 8px 16px; font-size: 13px; }
.kp4-sr { max-width: 860px; margin: 0 auto; text-align: left; }
.kp4-sr-count { margin: 0 0 12px; color: #5b6b78; font: 600 14px 'Montserrat', sans-serif; text-align: center; }
.kp4-sr-count b, .kp4-sr .kp4-empty b { color: #bd1e01; }
.kp4-sr-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.kp4-sr-index a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 12px; background: #ffffff; border: 2px solid #d5e4ee; border-radius: 999px; color: #196891; font: 700 13px/1.2 'Montserrat', sans-serif; text-decoration: none; }
.kp4-sr-index a:hover { border-color: #196891; }
.kp4-sr-index b { padding: 2px 8px; background: #e3eff6; border-radius: 999px; font-size: 12px; }
.kp4-sr-group { margin-bottom: 18px; overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-left: 5px solid #ffcd47; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .08); scroll-margin-top: 16px; }
.kp4-sr-group h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px 10px; color: #0d4868; font: 700 17px/1.3 'Montserrat', sans-serif; }
.kp4-sr-group h2 span { margin-left: auto; padding: 2px 10px; background: #e3eff6; border-radius: 999px; color: #196891; font-size: 13px; }
.kp4-sr-group ul { margin: 0; padding: 0; list-style: none; }
.kp4-sr-group li a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-top: 1px dashed #d5e4ee; color: #7fb0cb; text-decoration: none; transition: background .15s; }
.kp4-sr-group li a:hover { background: #f3f8fb; color: #196891; }
.kp4-sr-text { flex: 1 1 auto; min-width: 0; }
.kp4-sr-text strong { display: block; color: #2f2f2f; font: 700 15px/1.35 'Montserrat', sans-serif; }
.kp4-sr-text span { display: block; margin-top: 2px; color: #5b6b78; font: 14px/1.45 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.kp4-sr mark { padding: 0 2px; background: #ffe69a; border-radius: 3px; color: inherit; }
.kp4-sr-tag { flex: none; padding: 4px 10px; background: #e3eff6; border-radius: 999px; color: #196891; font: 700 12px/1 'Montserrat', sans-serif; white-space: nowrap; }
.kp4-sr-more { margin: 0; padding: 10px 18px 12px; border-top: 1px dashed #d5e4ee; color: #7a8a96; font: 13px 'Montserrat', sans-serif; }
.kp4-sr-more a { color: #196891; font-weight: 700; }

@media only screen and (max-width: 599px) {
	.kp4-site-search { padding-left: 14px; }
	.kp4-site-search input[type="search"] { font-size: 15px; }
	.kp4-site-search button { padding: 10px 16px; }
	.row_bg > .kp4-site-search { max-width: none; margin-left: 12px; margin-right: 12px; }
}
/* The winners as the first news of the home (includes/kp_podium.php): two rows of three cards */
.kp4-win { margin-bottom: 18px; padding: 20px clamp(14px, 2.4vw, 22px) 18px; background: linear-gradient(180deg, #fff8e1, #ffffff 46%); border: 1px solid #f0d98a; border-top: 5px solid #ffcd47; border-radius: 14px; box-shadow: 0 4px 14px rgba(189, 30, 1, .10); text-align: left; }
.kp4-win-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: #bd1e01; font: 700 12px/1.2 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.kp4-win-title { margin: 0; color: #bd1e01; font: 400 clamp(22px, 2.6vw, 28px)/1.15 'Paytone One', sans-serif; }
.kp4-win h4 { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; color: #0d4868; font: 700 15px/1.2 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.kp4-win h4::after { content: ""; flex: 1 1 auto; height: 2px; background: #e3d5a3; border-radius: 2px; }
.kp4-win-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kp4-win-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-radius: 12px; box-shadow: 0 3px 10px rgba(17, 93, 132, .10); }
.kp4-win-card.is-place-1 { border-color: #f0b400; box-shadow: 0 4px 14px rgba(240, 180, 0, .30); }
.kp4-win-photo { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.kp4-win-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kp4-win-photo.is-plain { aspect-ratio: 4 / 3; cursor: default; background: var(--pic) center / 62% no-repeat, repeating-linear-gradient(115deg, rgba(255, 255, 255, .13) 0 12px, transparent 12px 24px), linear-gradient(160deg, #2a7fab, #196891); }
.kp4-win-card.is-group .kp4-win-photo.is-plain { background-color: #7025b6; background-image: var(--pic), repeating-linear-gradient(115deg, rgba(255, 255, 255, .13) 0 12px, transparent 12px 24px), linear-gradient(160deg, #8c4ad0, #7025b6); }
.kp4-win-place { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; background: #c9d2d8; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); color: #2f3b44; font: 400 18px/1 'Paytone One', sans-serif; transform: rotate(-6deg); pointer-events: none; }
.kp4-win-card.is-place-1 .kp4-win-place { width: 42px; height: 42px; background: #ffcd47; color: #5a3d00; font-size: 21px; }
.kp4-win-card.is-place-3 .kp4-win-place { background: #cd8b52; color: #ffffff; }
.kp4-win-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.kp4-win-body strong { color: #2f2f2f; font: 700 15px/1.25 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.kp4-win-body span { color: #196891; font: 600 13px/1.35 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.kp4-win-body b { margin-top: auto; padding-top: 6px; color: #bd1e01; font: 400 20px/1 'Paytone One', sans-serif; }
.kp4-win-body b small { color: #7a8a96; font: 700 10px 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.kp4-win .kp4-more { display: inline-block; margin-top: 16px; text-decoration: none; }

@media only screen and (max-width: 499px) {
	.kp4-win-row { grid-template-columns: 1fr; gap: 8px; }
	.kp4-win-card { flex-direction: row; }
	.kp4-win-photo { flex: none; width: 116px; }
	.kp4-win-photo img, .kp4-win-photo.is-plain { height: 100%; min-height: 88px; aspect-ratio: auto; }
	.kp4-win-place, .kp4-win-card.is-place-1 .kp4-win-place { left: 5px; top: 5px; width: 32px; height: 32px; font-size: 16px; }
}

/* Entries of the guests to the parade (pages/vpis.php) and the notice on the home */
.kp4-signup-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 15px 0; padding: 12px 18px; background: linear-gradient(100deg, #ffcd47, #ffdf85); border-radius: 14px; box-shadow: 0 4px 14px rgba(189, 30, 1, .16); color: #3a2a00; font: 600 15px/1.3 'Montserrat', sans-serif; text-align: left; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.kp4-signup-note:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(189, 30, 1, .24); color: #3a2a00; text-decoration: none; }
.kp4-signup-note-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: #bd1e01; border-radius: 50%; color: #ffffff; }
.kp4-signup-note > span:nth-child(2) { flex: 1 1 240px; }
.kp4-signup-note strong { display: block; font: 400 19px/1.2 'Paytone One', sans-serif; color: #bd1e01; }
.kp4-signup-note small { font-size: 13px; font-weight: 700; }
.kp4-signup-note > b { padding: 8px 18px; background: #bd1e01; border-radius: 999px; color: #ffffff; font-size: 14px; white-space: nowrap; }
.kp4-signup { max-width: 860px; margin: 0 auto; text-align: left; }
.kp4-signup h2 { margin: 28px 0 12px; color: #0d4868; font: 700 20px/1.3 'Montserrat', sans-serif; }
.kp4-signup-box { padding: 22px clamp(16px, 3vw, 28px); background: #f3f8fb; border: 1px solid #d5e4ee; border-radius: 14px; color: #3f3f3f; font: 16px/1.6 'Montserrat', sans-serif; }
.kp4-signup-box.is-center { text-align: center; }
.kp4-signup-box p { margin: 0 0 14px; }
.kp4-signup-box p:last-child { margin-bottom: 0; }
.kp4-signup-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kp4-signup-buttons a { padding: 10px 26px; border: 2px solid #196891; border-radius: 999px; color: #196891; font: 700 15px 'Montserrat', sans-serif; text-decoration: none; }
.kp4-signup-buttons a.is-main, .kp4-signup-buttons a:hover { background: #196891; color: #ffffff; }
.kp4-signup-user { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #5b6b78; font: 14px 'Montserrat', sans-serif; }
.kp4-signup-user b { color: #0d4868; }
.kp4-signup-user a { margin-left: auto; color: #196891; font-weight: 700; }
.kp4-signup-profile { margin: 0 0 18px; background: #ffffff; border: 1px solid #d5e4ee; border-left: 5px solid #196891; border-radius: 12px; box-shadow: 0 3px 10px rgba(17, 93, 132, .08); }
.kp4-signup-profile summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 16px; cursor: pointer; list-style: none; font: 14px/1.4 'Montserrat', sans-serif; }
.kp4-signup-profile summary::-webkit-details-marker { display: none; }
.kp4-signup-profile summary strong { color: #0d4868; font-size: 16px; }
.kp4-signup-profile summary span { flex: 1 1 220px; color: #5b6b78; overflow-wrap: anywhere; }
.kp4-signup-profile summary b { padding: 5px 14px; border: 2px solid #196891; border-radius: 999px; color: #196891; font-size: 13px; }
.kp4-signup-profile[open] summary b { background: #196891; color: #ffffff; }
.kp4-signup-profile form { margin: 0; padding: 14px 16px 4px; border-top: 1px dashed #d5e4ee; }
.kp4-signup-profile h3 { margin: 0 0 12px; color: #0d4868; font: 700 15px 'Montserrat', sans-serif; }
.kp4-signup-profile form p { margin: 14px 0 12px; }
.kp4-signup-profile button { padding: 9px 24px; background: #196891; border: 0; border-radius: 999px; color: #ffffff; font: 700 14px 'Montserrat', sans-serif; cursor: pointer; }
.kp4-signup-profile input:disabled { background: #f3f6f8; color: #7a8a96; }
.kp4-signup-fields.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kp4-signup-msg { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font: 600 15px/1.5 'Montserrat', sans-serif; }
.kp4-signup-msg.is-ok { background: #e3f4ea; border: 1px solid #a9d8bd; color: #1f6b43; }
.kp4-signup-msg.is-error { background: #fdebe8; border: 1px solid #f0b4aa; color: #a11a01; }
.kp4-signup-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; padding: 12px 16px; background: #ffffff; border: 1px solid #d5e4ee; border-left: 5px solid #ffcd47; border-radius: 12px; box-shadow: 0 3px 10px rgba(17, 93, 132, .08); }
.kp4-signup-mine.is-ok { border-left-color: #2e8b57; }
.kp4-signup-mine.is-no { border-left-color: #bd1e01; }
.kp4-signup-mine > div { flex: 1 1 260px; min-width: 0; }
.kp4-signup-mine strong { display: block; color: #2f2f2f; font: 700 16px/1.3 'Montserrat', sans-serif; }
.kp4-signup-mine div span { display: block; color: #5b6b78; font: 14px/1.45 'Montserrat', sans-serif; }
.kp4-signup-mine a { color: #196891; font-weight: 700; }
.kp4-signup-state { flex: none; padding: 5px 12px; background: #fff3cf; border-radius: 999px; color: #7a5a00; font: 700 12px/1 'Montserrat', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.kp4-signup-mine.is-ok .kp4-signup-state { background: #e3f4ea; color: #1f6b43; }
.kp4-signup-mine.is-no .kp4-signup-state { background: #fdebe8; color: #a11a01; }
.kp4-signup-mine form { margin: 0; }
.kp4-signup-mine button { padding: 6px 14px; background: #ffffff; border: 1px solid #bd1e01; border-radius: 999px; color: #bd1e01; font: 700 13px 'Montserrat', sans-serif; cursor: pointer; }
.kp4-signup-lead { margin: 0 0 14px; color: #3f3f3f; font: 15px/1.6 'Montserrat', sans-serif; }
.kp4-signup-kind { display: flex; gap: 8px; margin: 0 0 16px; }
.kp4-signup-kind a { padding: 9px 24px; background: #ffffff; border: 2px solid #c9dbe6; border-radius: 999px; color: #196891; font: 700 15px 'Montserrat', sans-serif; text-decoration: none; }
.kp4-signup-kind a.is-current { background: #196891; border-color: #196891; color: #ffffff; }
.kp4-signup-form fieldset { margin: 0 0 16px; padding: 18px clamp(14px, 3vw, 24px) 20px; background: #ffffff; border: 1px solid #d5e4ee; border-left: 5px solid #ffcd47; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .08); }
.kp4-signup-form legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; border: 0; color: #0d4868; font: 700 17px/1.3 'Montserrat', sans-serif; }
.kp4-signup-fields { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.kp4-signup-fields label { display: block; margin: 0; font-weight: 400; }
.kp4-signup-fields label.is-full { grid-column: 1 / -1; }
.kp4-signup-fields label > span { display: block; margin-bottom: 4px; color: #196891; font: 700 13px/1.35 'Montserrat', sans-serif; }
.kp4-signup-form b { color: #bd1e01; }
.kp4-signup-fields input, .kp4-signup-fields textarea { display: block; width: 100%; padding: 9px 12px; box-sizing: border-box; background: #ffffff; border: 1px solid #b9cddb; border-radius: 10px; color: #2f2f2f; font: 15px/1.4 'Montserrat', sans-serif; }
.kp4-signup-fields textarea { resize: vertical; }
.kp4-signup-fields input:focus, .kp4-signup-fields textarea:focus { border-color: #196891; outline: 2px solid rgba(25, 104, 145, .25); }
.kp4-signup-accept { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; color: #3f3f3f; font: 400 15px/1.5 'Montserrat', sans-serif; }
.kp4-signup-accept input { margin-top: 4px; }
.kp4-signup-accept a { color: #196891; font-weight: 700; }
.kp4-signup-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.kp4-signup-send button { padding: 12px 34px; background: #bd1e01; border: 0; border-radius: 999px; color: #ffffff; font: 700 16px 'Montserrat', sans-serif; cursor: pointer; transition: background .15s; }
.kp4-signup-send button:hover { background: #951700; }
.kp4-signup-send small { color: #7a8a96; font: 13px 'Montserrat', sans-serif; }
.kp4-start-text .kp4-start-wait { color: #7a8a96; letter-spacing: .15em; }

@media only screen and (max-width: 599px) {
	.kp4-signup-fields, .kp4-signup-fields.is-three { grid-template-columns: 1fr; }
	.kp4-signup-note { margin-left: 12px; margin-right: 12px; }
}

/* Entry forms */
.kp4-inner .inner-div > div[style*="3399FF"] {
	margin-top: 14px;
	padding: 6px 10px;
	background-color: #196891 !important;
	border-radius: 10px 10px 0 0;
}
.kp4-inner .inner-div > div[style*="3399FF"] .fnt7 { color: #ffffff; font-size: 20px; font-weight: 400; }
.kp4-inner .inner-div > div[style*="e8e8e8"] { background-color: #f3f8fb !important; }
.kp4-inner .inner-div .form_style { color: #2f2f2f; }
.kp4-inner .inner-div .cell_form { border: 1px solid #b9cddb; border-radius: 6px; }
.kp4-inner .inner-div .cell_form:focus { border-color: #196891; outline: 2px solid rgba(25, 104, 145, .25); }

/* Articles from the brochures (pages/besedila.php) */

.kp4-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }

.kp4-article {
	display: flex;
	gap: 18px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #d5e4ee;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(17, 93, 132, .10);
	text-align: left;
	transition: transform .15s, box-shadow .15s;
}
.kp4-article:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 93, 132, .18); }

.kp4-article-photo {
	flex: none;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 3px solid #ffcd47;
	border-radius: 50%;
}

.kp4-article-body { min-width: 0; }

.kp4-article-meta { display: flex; align-items: center; gap: 8px; margin: 0; color: #6b6b6b; font: 600 13px 'Montserrat', sans-serif; }
.kp4-article-edition { padding: 2px 9px; background: #196891; border-radius: 999px; color: #ffffff; }

.kp4-article-title { margin: 8px 0 2px; color: #bd1e01; font: 400 22px/1.25 'Oswald', sans-serif; }
.kp4-article-author { margin: 0 0 8px; color: #196891; font: 700 14px 'Montserrat', sans-serif; }
.kp4-article-preview { margin: 0 0 12px; color: #454545; font: 15px/1.6 'Montserrat', sans-serif; }
.kp4-article .kp4-more { margin-top: 0; }

@media only screen and (max-width: 479px) {
	.kp4-article { flex-direction: column; align-items: center; text-align: center; }
	.kp4-article-meta { justify-content: center; }
}

.kp4-article-dialog {
	width: min(760px, 94vw);
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
	text-align: left;
}
.kp4-article-dialog::backdrop { background: rgba(13, 72, 104, .75); }

.kp4-article-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 60px 22px 24px;
	background: linear-gradient(160deg, #1a78a6, #0d4868);
	color: #ffffff;
}
.kp4-article-head img { flex: none; width: 72px; height: 72px; object-fit: cover; border: 3px solid #ffcd47; border-radius: 50%; }
.kp4-article-head h2 { margin: 0; color: #ffffff; font: 400 clamp(20px, 3vw, 28px)/1.2 'Paytone One', sans-serif; }
.kp4-article-head p { margin: 4px 0 0; color: #d6ecf7; font: 600 13px 'Montserrat', sans-serif; }

.kp4-article-text { padding: 22px 24px 28px; color: #333333; font: 16px/1.75 'Montserrat', sans-serif; overflow-wrap: anywhere; }

.kp4-article-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	padding: 0;
	background: rgba(255, 255, 255, .18);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.kp4-article-close:hover { background: rgba(255, 255, 255, .35); }

/* Photo gallery (pages/galerija.php) */

.kp4-gallery { max-width: 1000px; margin: 0 auto; }

.kp4-gallery-stage {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #0b2b3d;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.kp4-gallery-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kp4-gallery-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }

.kp4-gallery-nav,
.kp4-gallery-tools button {
	display: grid;
	place-items: center;
	padding: 0;
	background: rgba(0, 0, 0, .5);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	transition: background-color .15s;
}
.kp4-gallery-nav:hover,
.kp4-gallery-tools button:hover { background: rgba(0, 0, 0, .8); }

.kp4-gallery-nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; }
.kp4-gallery-nav.is-prev { left: 12px; }
.kp4-gallery-nav.is-next { right: 12px; }

.kp4-gallery-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.kp4-gallery-tools button { width: 42px; height: 42px; }
.kp4-gallery-tools [data-gallery-play] .icon:last-child { display: none; }
.kp4-gallery.is-playing [data-gallery-play] .icon:first-child { display: none; }
.kp4-gallery.is-playing [data-gallery-play] .icon:last-child { display: block; }

.kp4-gallery-count {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 13px;
	background: rgba(0, 0, 0, .5);
	border-radius: 999px;
	color: #ffffff;
	font: 600 13px 'Montserrat', sans-serif;
}

.kp4-gallery-thumbs {
	position: relative;
	display: flex;
	gap: 8px;
	margin-top: 12px;
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
}
.kp4-gallery-thumbs button {
	flex: none;
	width: 96px;
	padding: 0;
	background: #dfe9ef;
	border: 3px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	opacity: .65;
	cursor: pointer;
	transition: opacity .15s, border-color .15s;
}
.kp4-gallery-thumbs button:hover { opacity: 1; }
.kp4-gallery-thumbs button[aria-current="true"] { border-color: #bd1e01; opacity: 1; }
.kp4-gallery-thumbs img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.kp4-gallery-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 8px;
	color: #454545;
	font: 600 14px 'Montserrat', sans-serif;
}

.kp4-gallery-share,
.kp4-gallery-stats { display: flex; align-items: center; gap: 8px; }
.kp4-gallery-share a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid #b9cddb;
	border-radius: 50%;
	color: #196891;
	transition: background-color .15s, color .15s;
}
.kp4-gallery-share a:hover { background: #196891; color: #ffffff; }

.kp4-gallery-like,
.kp4-gallery-views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #eaf3f9;
	border: 2px solid transparent;
	border-radius: 999px;
	color: #196891;
	font: 600 14px 'Montserrat', sans-serif;
}
.kp4-gallery-like { cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.kp4-gallery-like:hover { border-color: #bd1e01; }
.kp4-gallery-like.is-liked { background: #bd1e01; color: #ffffff; }
.kp4-gallery-like.is-liked .icon { fill: currentColor; }

.kp4-gallery-back { margin: 18px 0 0; text-align: left; }
.kp4-gallery-back a { display: inline-flex; align-items: center; gap: 4px; color: #196891; font: 700 14px 'Montserrat', sans-serif; text-decoration: none; }
.kp4-gallery-back a:hover { text-decoration: underline; }

@media only screen and (max-width: 599px) {
	.kp4-gallery-nav { width: 40px; height: 40px; margin-top: -20px; }
	.kp4-gallery-thumbs button { width: 72px; }
	.kp4-gallery-bar { justify-content: center; }
}

/* Video page (pages/video.php) */

.kp4-video-stage { overflow: hidden; background: #0b2b3d; border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.kp4-video-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b2b3d; }

.kp4-gallery-bar .kp4-gallery-back { margin: 0; }

.kp4-subtitle { margin: 34px 0 16px; color: #196891; font: 400 26px/1.2 'Oswald', sans-serif; text-align: center; }

.kp4-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }

.kp4-video-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d5e4ee;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(17, 93, 132, .10);
	color: inherit;
	text-align: left;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.kp4-video-card:hover,
.kp4-video-card:focus { color: inherit; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 93, 132, .18); }

.kp4-video-thumb { position: relative; display: block; background: #0b2b3d; }
.kp4-video-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kp4-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	background: rgba(189, 30, 1, .9);
	border-radius: 50%;
	color: #ffffff;
}
.kp4-video-play .icon { fill: currentColor; margin-left: 3px; }

.kp4-video-name { padding: 12px 14px 2px; color: #bd1e01; font: 400 19px/1.25 'Oswald', sans-serif; }
.kp4-video-meta { padding: 0 14px 14px; color: #6b6b6b; font: 600 13px 'Montserrat', sans-serif; }

/* Winners (includes/kp_winners.php) */

.kp4-tabs { display: flex; justify-content: center; gap: 8px; margin: -6px 0 24px; }
.kp4-tabs a {
	padding: 8px 20px;
	background: #ffffff;
	border: 2px solid #196891;
	border-radius: 999px;
	color: #196891;
	font: 700 14px 'Montserrat', sans-serif;
	text-decoration: none;
}
.kp4-tabs a:hover { background: #eaf3f9; }
.kp4-tabs a.is-current { background: #196891; color: #ffffff; }

.kp4-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }

.kp4-pages-years { margin-top: 28px; }
.kp4-pages-years a { padding: 0 16px; font-variant-numeric: tabular-nums; }

.kp4-winner-card {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d5e4ee;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(17, 93, 132, .10);
	text-align: left;
}

.kp4-winner-cover { display: block; width: 100%; padding: 0; background: #0b2b3d; border: 0; cursor: zoom-in; }
.kp4-winner-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.kp4-winner-cover:hover img { transform: scale(1.03); }

.kp4-winner-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px;
	background: linear-gradient(160deg, #1a78a6, #0d4868);
	color: #ffffff;
}
.kp4-winner-head h2 { margin: 0; color: #ffcd47; font: 400 26px/1 'Paytone One', sans-serif; }
.kp4-winner-head span { color: #d6ecf7; font: 600 13px 'Montserrat', sans-serif; }

.kp4-winner-list { margin: 0; padding: 6px 16px 10px; list-style: none; }
.kp4-winner-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.kp4-winner-list li + li { border-top: 1px solid #e3edf3; }

.kp4-medal {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #3a2a00;
	font: 700 15px 'Montserrat', sans-serif;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.is-place-1 .kp4-medal { background: #ffcd47; }
.is-place-2 .kp4-medal { background: #cfd6dc; }
.is-place-3 .kp4-medal { background: #c98b55; color: #ffffff; }

.kp4-winner-text { display: flex; flex-direction: column; min-width: 0; }
.kp4-winner-title {
	padding: 0;
	background: none;
	border: 0;
	color: #2f2f2f;
	font: 600 15px/1.35 'Montserrat', sans-serif;
	text-align: left;
	overflow-wrap: anywhere;
}
button.kp4-winner-title { color: #196891; cursor: pointer; }
button.kp4-winner-title:hover { color: #bd1e01; text-decoration: underline; }
button.kp4-winner-title[aria-pressed="true"] { color: #bd1e01; }
/* The row whose photo is on show */
.kp4-winner-list li:has([aria-pressed="true"]) { margin: 0 -16px; padding-left: 13px; padding-right: 16px; background: #fff6dc; border-left: 3px solid #ffcd47; }
.is-place-1 .kp4-winner-title { font-weight: 700; }
.kp4-winner-name { color: #6b6b6b; font: 13px/1.4 'Montserrat', sans-serif; }

/* Press review (pages/mediji.php) */

.kp4-years { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -6px 0 24px; }
.kp4-years a {
	padding: 5px 13px;
	border: 1px solid #b9cddb;
	border-radius: 999px;
	color: #196891;
	font: 700 13px 'Montserrat', sans-serif;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
.kp4-years a:hover { border-color: #196891; background: #eaf3f9; }
.kp4-years a.is-current { background: #196891; border-color: #196891; color: #ffffff; }

/* Search bar: above the page title, on the right */
.kp4-search { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 14px; }
.kp4-search input[type="search"] {
	width: min(100%, 320px);
	padding: 9px 16px;
	border: 1px solid #b9cddb;
	border-radius: 999px;
	color: #2f2f2f;
	font: 15px 'Montserrat', sans-serif;
}
.kp4-search input[type="search"]:focus { border-color: #196891; outline: 2px solid rgba(25, 104, 145, .25); }
.kp4-search button {
	padding: 9px 20px;
	background: #196891;
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	font: 700 14px 'Montserrat', sans-serif;
	cursor: pointer;
}
.kp4-search button:hover { background: #0d4868; }
.kp4-search a { color: #196891; font: 600 14px 'Montserrat', sans-serif; }

.kp4-press { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.kp4-press-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d5e4ee;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(17, 93, 132, .10);
	text-align: left;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
.kp4-press-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 93, 132, .20); }

.kp4-press-thumb { position: relative; display: block; background: #eef3f6; border-bottom: 1px solid #d5e4ee; }
.kp4-press-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.kp4-press-card.is-video .kp4-press-thumb { background: #0b2b3d; }
.kp4-press-card.is-video .kp4-press-thumb img { object-position: center; }

.kp4-press-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.kp4-press-kind { align-self: flex-start; padding: 2px 9px; background: #eaf3f9; border-radius: 999px; color: #196891; font: 700 11px 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kp4-press-card.is-video .kp4-press-kind { background: #bd1e01; color: #ffffff; }
.kp4-press-name { margin-top: 4px; color: #bd1e01; font: 400 20px/1.25 'Oswald', sans-serif; }
.kp4-press-date { display: inline-flex; align-items: center; gap: 6px; color: #6b6b6b; font: 600 13px 'Montserrat', sans-serif; }

.kp4-press-dialog {
	width: min(1000px, 96vw);
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
	overflow: hidden;
}
.kp4-press-dialog[open] { display: flex; flex-direction: column; }
.kp4-press-dialog::backdrop { background: rgba(13, 72, 104, .8); }
.kp4-press-dialog header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px 12px 22px;
	background: linear-gradient(160deg, #1a78a6, #0d4868);
}
.kp4-press-dialog h2 { margin: 0; color: #ffffff; font: 400 20px/1.25 'Oswald', sans-serif; text-align: left; }
.kp4-press-dialog header button {
	flex: none;
	width: 38px;
	height: 38px;
	padding: 0;
	background: rgba(255, 255, 255, .18);
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.kp4-press-dialog header button:hover { background: rgba(255, 255, 255, .35); }
.kp4-press-dialog-body { overflow: auto; background: #0b2b3d; }
.kp4-press-dialog-body img { display: block; width: 100%; height: auto; background: #ffffff; }
.kp4-press-dialog-body video { display: block; width: 100%; max-height: 80vh; }

/* Detailed scores (pages/lestvica_det.php): cards on screen, the wide table only in the PDF */

body.kp4-inner:has(.kp4-scores) #pdf-content:not(.pdf-export) #middleconteiner { display: none; }
.pdf-export .kp4-scores { display: none; }

/* The white sheet starts above the PDF button, like on the other pages */
body.kp4-inner:has(.kp4-scores) .main_all { margin: 0; padding: 14px clamp(8px, 2vw, 24px) 0; background: #ffffff; }
body.kp4-inner:has(.kp4-scores) #pdf-content:not(.pdf-export) { padding-top: 0; }

.kp4-scores { max-width: 1000px; margin: 0 auto 34px; padding: 0 clamp(8px, 2vw, 24px); }

.kp4-score {
	margin-bottom: 10px;
	background: #ffffff;
	border: 1px solid #d5e4ee;
	border-left: 5px solid #b9cddb;
	border-radius: 12px;
	box-shadow: 0 3px 10px rgba(17, 93, 132, .08);
	text-align: left;
}
.kp4-score.is-place-1 { border-left-color: #ffcd47; }
.kp4-score.is-place-2 { border-left-color: #cfd6dc; }
.kp4-score.is-place-3 { border-left-color: #c98b55; }
.kp4-score[open] { box-shadow: 0 8px 22px rgba(17, 93, 132, .16); }

.kp4-score summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
}
.kp4-score summary::-webkit-details-marker { display: none; }
.kp4-score[data-locked] summary { cursor: default; }
.kp4-score summary:focus-visible { outline: 3px solid #ffcd47; outline-offset: 2px; border-radius: 10px; }

.kp4-score .kp4-medal { background: #eaf3f9; color: #196891; box-shadow: none; }
.kp4-score.is-place-1 .kp4-medal { background: #ffcd47; color: #3a2a00; }
.kp4-score.is-place-2 .kp4-medal { background: #cfd6dc; color: #3a2a00; }
.kp4-score.is-place-3 .kp4-medal { background: #c98b55; color: #ffffff; }

.kp4-score-who { display: flex; flex: 1 1 240px; flex-direction: column; min-width: 0; }
.kp4-score-name { color: #2f2f2f; font: 700 16px/1.3 'Montserrat', sans-serif; }
.kp4-score-title { color: #196891; font: 600 14px/1.35 'Montserrat', sans-serif; overflow-wrap: anywhere; }

.kp4-score-judges { display: flex; gap: 5px; }
.kp4-score-judges span {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 30px;
	background: #eaf3f9;
	border-radius: 8px;
	color: #196891;
	font: 700 14px 'Montserrat', sans-serif;
	font-variant-numeric: tabular-nums;
}

.kp4-score-total { display: flex; flex-direction: column; align-items: center; min-width: 62px; color: #6b6b6b; font: 600 11px 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kp4-score-total strong { color: #bd1e01; font: 400 28px/1 'Paytone One', sans-serif; letter-spacing: 0; }

.kp4-score-detail { padding: 0 16px 14px; overflow-x: auto; }
.kp4-score-detail table { width: 100%; border-collapse: collapse; font: 14px 'Montserrat', sans-serif; }
.kp4-score-detail th,
.kp4-score-detail td { padding: 7px 10px; border-top: 1px solid #e3edf3; text-align: center; font-variant-numeric: tabular-nums; }
.kp4-score-detail thead th { border-top: 0; color: #196891; font-weight: 700; white-space: nowrap; }
.kp4-score-detail tbody th { color: #454545; font-weight: 600; text-align: left; }
.kp4-score-detail tr.is-total th,
.kp4-score-detail tr.is-total td { background: #eaf3f9; color: #196891; font-weight: 700; }

/* Final ranking (pages/lestvica.php): the first three as cards with photo, then rows */

.kp4-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kp4-podium-card { overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-top: 6px solid #b9cddb; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .12); text-align: left; }
.kp4-podium-card.is-place-1 { border-top-color: #ffcd47; }
.kp4-podium-card.is-place-2 { border-top-color: #cfd6dc; }
.kp4-podium-card.is-place-3 { border-top-color: #c98b55; }
.kp4-podium-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.kp4-podium-card .kp4-medal { width: 40px; height: 40px; font-size: 18px; }
.kp4-podium-card.is-place-1 .kp4-medal { background: #ffcd47; color: #3a2a00; }
.kp4-podium-card.is-place-2 .kp4-medal { background: #cfd6dc; color: #3a2a00; }
.kp4-podium-card.is-place-3 .kp4-medal { background: #c98b55; color: #ffffff; }
.kp4-podium-card .kp4-score-who { flex: 1 1 auto; }

.kp4-rank-photo { color: #7fb0cb; }
.kp4-score[open] .kp4-rank-photo { color: #bd1e01; }
.kp4-rank-img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; border-radius: 10px; }

/* Participants (pages/sodelujoci.php): one card per float or group */

body.kp4-inner:has(.kp4-entries) #pdf-content:not(.pdf-export) .middleconteiner { display: none; }
.kp4-entries { max-width: 1100px; }
.kp4-entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; align-items: start; }
.kp4-entry { overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 93, 132, .10); text-align: left; }
.kp4-entry-body { padding: 14px 16px 16px; border-top: 4px solid #ffcd47; }
.kp4-entry h3 { margin: 0; color: #2f2f2f; font: 700 17px/1.3 'Montserrat', sans-serif; }
.kp4-entry-title { margin: 3px 0 0; color: #bd1e01; font: 400 19px/1.25 'Oswald', sans-serif; overflow-wrap: anywhere; }
.kp4-entry details { margin-top: 10px; }
.kp4-entry summary { display: inline-block; padding: 5px 14px; border: 2px solid #196891; border-radius: 999px; color: #196891; font: 700 13px 'Montserrat', sans-serif; cursor: pointer; list-style: none; }
.kp4-entry summary::-webkit-details-marker { display: none; }
.kp4-entry details[open] summary { background: #196891; color: #ffffff; }
.kp4-entry details p { margin: 10px 0 0; color: #454545; font: 14px/1.6 'Montserrat', sans-serif; }
/* Start list (pages/start.php): slim rows, one under the other. On the left a slanted tag with the start
   number (or the photo, when there is one), then name and title, on the right float or group. */

.kp4-startlist { max-width: 900px; }
.kp4-start-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kp4-start-card { display: flex; align-items: stretch; min-height: 62px; overflow: hidden; background: #ffffff; border: 1px solid #d5e4ee; border-radius: 12px; box-shadow: 0 3px 10px rgba(17, 93, 132, .09); text-align: left; transition: transform .15s, box-shadow .15s; }
.kp4-start-card:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(17, 93, 132, .18); }

.kp4-start-top { position: relative; flex: none; width: 184px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.kp4-start-card .kp4-winner-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.kp4-start-card .kp4-winner-cover img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }

/* Without a photo (at the draw there are none yet) the tag is coloured, with the stripes of a carnival
   tent; the colours take turns, so the list is lively also without pictures */
.kp4-start-card.is-plain .kp4-start-top {
	--bib: #196891;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 32px;
	box-sizing: border-box;
	background:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .13) 0 12px, transparent 12px 24px),
		linear-gradient(100deg, color-mix(in srgb, var(--bib) 80%, #ffffff), var(--bib));
}
/* Beside the number a white pictogram tells the kind of participant: a float (trailer with a jester's head,
   pulled by a tractor) or a group (three dancing masks) */
.kp4-start-card.is-float, .kp4-win-card.is-float { --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='%23fff' fill-rule='evenodd'%3E%3Cpath d='M3.500 25h27a1.500 1.500 0 0 1 1.500 1.500V31H2v-4.500A1.500 1.500 0 0 1 3.500 25z'/%3E%3Cpath d='M32 27h6v2h-6z'/%3E%3Cpath d='M5.500 34a4.500 4.500 0 1 0 9 0a4.500 4.500 0 1 0-9 0zM8.500 34a1.500 1.500 0 1 0 3 0a1.500 1.500 0 1 0-3 0z'/%3E%3Cpath d='M19.500 34a4.500 4.500 0 1 0 9 0a4.500 4.500 0 1 0-9 0zM22.500 34a1.500 1.500 0 1 0 3 0a1.500 1.500 0 1 0-3 0z'/%3E%3Cpath d='M8 14.500a9 9 0 1 0 18 0a9 9 0 1 0-18 0zM11.900 13.500a1.700 1.700 0 1 0 3.400 0a1.700 1.700 0 1 0-3.400 0zM18.700 13.500a1.700 1.700 0 1 0 3.400 0a1.700 1.700 0 1 0-3.400 0zM12 17.500q5 5 10 0q-5 1.800-10 0z'/%3E%3Cpath d='M8.500 9.500L5 2.500l7.500 3L17 .8l4.500 4.700 7.500-3-3.500 7c-5-3.500-12-3.500-17 0z'/%3E%3Ccircle cx='5' cy='2.500' r='1.700'/%3E%3Ccircle cx='17' cy='1.600' r='1.700'/%3E%3Ccircle cx='29' cy='2.500' r='1.700'/%3E%3Cpath d='M41 11h8.500a2 2 0 0 1 2 2v7H58a1.500 1.500 0 0 1 1.500 1.500V29H38V14a3 3 0 0 1 3-3zM41.500 14.500v6h7v-6z'/%3E%3Cpath d='M54.500 12h1.800v8h-1.800z'/%3E%3Cpath d='M36 31a7.500 7.500 0 1 0 15 0a7.500 7.500 0 1 0-15 0zM41 31a2.500 2.500 0 1 0 5 0a2.500 2.500 0 1 0-5 0z'/%3E%3Cpath d='M51.500 34.500a4 4 0 1 0 8 0a4 4 0 1 0-8 0zM54.200 34.500a1.300 1.300 0 1 0 2.600 0a1.300 1.300 0 1 0-2.600 0z'/%3E%3C/svg%3E"); }
.kp4-start-card.is-group, .kp4-win-card.is-group { --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='%23fff'%3E%3Ccircle cx='9' cy='18' r='4.600'/%3E%3Cpath d='M4.500 14.500L2 7.500l7 3.500 7-3.500-2.500 7c-3-1.600-6-1.600-9 0z'/%3E%3Ccircle cx='2' cy='7.500' r='1.400'/%3E%3Ccircle cx='16' cy='7.500' r='1.400'/%3E%3Cpath d='M2 40v-9a7 6 0 0 1 14 0v9z'/%3E%3Ccircle cx='51' cy='18' r='4.600'/%3E%3Cpath d='M46.500 14.500l.8-7 3.700 3.800 3.700-3.800.8 7c-3-1.600-6-1.600-9 0z'/%3E%3Cpath d='M44 40v-9a7 6 0 0 1 14 0v9z'/%3E%3Ccircle cx='30' cy='12.500' r='5.600'/%3E%3Cpath d='M30 1l4.300 7h-8.600z'/%3E%3Ccircle cx='30' cy='1.400' r='1.400'/%3E%3Cpath d='M21.500 40V28.500a8.500 7.500 0 0 1 17 0V40z'/%3E%3Cpath d='M23.500 27.500L16.500 14l2.700-1.400 7.300 12.400zM36.500 27.500L43.500 14l-2.700-1.400-7.300 12.400z'/%3E%3C/svg%3E"); }
.kp4-start-card.is-plain .kp4-start-top::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 70px; background: var(--pic) left center / contain no-repeat; pointer-events: none; }

.kp4-start-card.is-plain:nth-child(5n + 2) .kp4-start-top { --bib: #7025b6; }
.kp4-start-card.is-plain:nth-child(5n + 3) .kp4-start-top { --bib: #d6232a; }
.kp4-start-card.is-plain:nth-child(5n + 4) .kp4-start-top { --bib: #2e8b57; }
.kp4-start-card.is-plain:nth-child(5n + 5) .kp4-start-top { --bib: #d92bb3; }

.kp4-start-number { font: 400 22px/1 'Paytone One', sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.kp4-start-card.is-plain .kp4-start-number { position: relative; color: #ffffff; font-size: 36px; text-shadow: 0 3px 0 rgba(0, 0, 0, .22); transform: rotate(-5deg); }
/* On a photo the number is a yellow round badge */
.kp4-start-card:not(.is-plain) .kp4-start-number { position: absolute; left: 8px; top: 50%; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 5px; box-sizing: border-box; background: #ffcd47; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); color: #0d4868; font-size: 19px; transform: translateY(-50%) rotate(-6deg); }

.kp4-start-body { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; padding: 8px 16px 8px 8px; }
.kp4-start-text { flex: 1 1 auto; min-width: 0; }
.kp4-start-text strong { display: block; font-size: 17px; line-height: 1.25; }
.kp4-start-text span { display: block; font-size: 15px; line-height: 1.3; }
.kp4-start-kind { flex: none; padding: 4px 11px; border-radius: 999px; font: 700 11px 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kp4-start-card.is-float .kp4-start-kind { background: #ffcd47; color: #3a2a00; }
.kp4-start-card.is-group .kp4-start-kind { background: #e3eff6; color: #196891; }

/* Order of the parade (pages/SporedPovorke.php): the same rows, with also who is not in the competition
   (band, king and queen, guests: no start number, the pictogram alone) and who has withdrawn (grey, crossed out) */
.kp4-start-card.is-band { --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='%23fff'%3E%3Ccircle cx='15' cy='31' r='5.500'/%3E%3Ccircle cx='37' cy='27' r='5.500'/%3E%3Cpath d='M18 10h2.500v21H18zM40 6h2.500v21H40z'/%3E%3Cpath d='M18 10l24.500-4.500v6L18 16z'/%3E%3Ccircle cx='52' cy='20' r='3.600'/%3E%3Cpath d='M53.600 6h2v14h-2z'/%3E%3Cpath d='M55.600 6c4.500 1.500 4.500 6 2.400 8.500 0-3-1-4-2.400-4.500z'/%3E%3C/svg%3E"); }
.kp4-start-card.is-king { --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='%23fff'%3E%3Cpath d='M13 33h34v4H13z'/%3E%3Cpath d='M10 11l10 9 10-15 10 15 10-9-4 20H14z'/%3E%3Ccircle cx='10' cy='9' r='2.800'/%3E%3Ccircle cx='30' cy='3.500' r='2.800'/%3E%3Ccircle cx='50' cy='9' r='2.800'/%3E%3C/svg%3E"); }
.kp4-start-card.is-guests { --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='%23fff'%3E%3Cpath d='M30 4l4.100 11.300 12.100.4-9.500 7.500 3.300 11.600-10-6.800-10 6.800 3.300-11.600-9.500-7.500 12.100-.4z'/%3E%3Ccircle cx='8' cy='10' r='2.200'/%3E%3Ccircle cx='52' cy='30' r='2.200'/%3E%3Cpath d='M50 6l2 2.600-2 2.600-2-2.600zM9 27l2 2.600-2 2.600-2-2.600z'/%3E%3C/svg%3E"); }
.kp4-start-card.is-plain.is-nonumber .kp4-start-top::before { left: 0; right: 18px; width: auto; background-position: center; }
.kp4-start-card.is-band .kp4-start-kind,
.kp4-start-card.is-king .kp4-start-kind,
.kp4-start-card.is-guests .kp4-start-kind { background: #eef1f3; color: #454545; }
.kp4-start-card.is-off { background: #f6f7f8; box-shadow: none; }
.kp4-start-card.is-plain.is-off:nth-child(n) .kp4-start-top { --bib: #a3acb2; }
.kp4-start-card.is-off .kp4-winner-cover img { filter: grayscale(1); opacity: .6; }
.kp4-start-card.is-off .kp4-start-text strong,
.kp4-start-card.is-off .kp4-start-text > span { color: #8a8a8a; text-decoration: line-through; }
.kp4-start-card.is-off .kp4-start-kind { background: #bd1e01; color: #ffffff; }
.kp4-start-text details { margin-top: 4px; }
.kp4-start-text summary { display: inline-block; color: #196891; font: 700 12px 'Montserrat', sans-serif; cursor: pointer; }
.kp4-start-text details p { margin: 6px 0 4px; color: #454545; font: 14px/1.55 'Montserrat', sans-serif; }

@media only screen and (max-width: 599px) {
	.kp4-start-card { min-height: 54px; }
	.kp4-start-card.is-plain .kp4-start-top { padding-right: 20px; }
	.kp4-start-card.is-plain .kp4-start-top::before { left: 6px; top: 9px; bottom: 9px; width: 54px; }
	.kp4-start-top { width: 116px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
	.kp4-start-card.is-plain .kp4-start-number { font-size: 24px; }
	.kp4-start-card:not(.is-plain) .kp4-start-number { left: 5px; min-width: 34px; height: 34px; font-size: 16px; }
	.kp4-start-body { gap: 8px; padding: 6px 10px 6px 4px; }
	.kp4-start-text strong { font-size: 14px; }
	.kp4-start-text span { font-size: 12.5px; }
	.kp4-start-kind { padding: 2px 7px; font-size: 9px; }
}

/* "Save as PDF" buttons of the tables pages */
.kp4-inner button[onclick="generatePDF()"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px 8px 12px !important;
	background: #ffffff !important;
	border: 2px solid #196891 !important;
	border-radius: 999px;
	transition: background-color .15s;
}
.kp4-inner button[onclick="generatePDF()"]:hover { background: #eaf3f9 !important; }
.kp4-inner button[onclick="generatePDF()"] span { color: #196891 !important; font: 700 14px 'Montserrat', sans-serif; }
.kp4-inner button[onclick="generatePDF()"] img { width: 24px !important; }

/* Sheet for the PDF of the start list (pages/start.php): hidden on screen, it gets the class is-pdf only
   while the PDF is made. Letterhead, title and a clean table: the blue of the site as the only colour. */
.kp4-print { display: none; }
.kp4-print.is-pdf { display: block; background: #ffffff; color: #1d2b36; font: 12.5px/1.4 'Montserrat', Arial, sans-serif; text-align: left; }
.kp4-print-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kp4-print-logo { display: block; padding: 8px 12px 6px; background: #196891; border-radius: 8px; }
.kp4-print-logo img { display: block; width: 68px; height: auto; }
.kp4-print-head p { margin: 0; color: #5b6b78; font-size: 9px; line-height: 1.55; text-align: right; }
.kp4-print-head strong { color: #0d4868; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.kp4-print-rule { height: 3px; margin: 10px 0 18px; background: linear-gradient(to right, #ffcd47 0 70px, #196891 70px 100%); }
.kp4-print-kicker { margin: 0; color: #196891; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-align: center; text-transform: uppercase; }
.kp4-print h2 { margin: 6px 0 8px; color: #0d2f44; font: 700 21px/1.25 'Montserrat', Arial, sans-serif; letter-spacing: -.005em; text-align: center; }
.kp4-print-summary { margin: 0 0 16px; color: #5b6b78; font-size: 10.5px; text-align: center; }
.kp4-print-summary b { color: #0d2f44; font-weight: 700; }
.kp4-print-summary i { display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; background: #9fb3c1; border-radius: 50%; }
.kp4-print table { width: 100%; border-collapse: collapse; }
.kp4-print th { padding: 0 10px 7px; border-bottom: 1.5px solid #196891; color: #196891; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
.kp4-print td { padding: 4px 10px; border-bottom: 1px solid #dde6ec; color: #33434f; font-size: 12.5px; vertical-align: middle; }
.kp4-print tbody tr:nth-child(even) td { background: #f5f8fa; }
.kp4-print .is-number { width: 46px; padding-left: 4px; padding-right: 4px; text-align: center; }
.kp4-print td.is-number span { display: inline-block; width: 23px; height: 23px; box-sizing: border-box; border: 1.5px solid #196891; border-radius: 50%; background: #ffffff; color: #0d4868; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.kp4-print .is-kind { width: 74px; }
.kp4-print td.is-kind span { display: inline-block; min-width: 58px; padding: 2px 0; box-sizing: border-box; border: 1px solid #196891; border-radius: 3px; color: #196891; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; text-align: center; text-transform: uppercase; }
.kp4-print td.is-kind span.is-float { background: #196891; color: #ffffff; }
.kp4-print .is-name { width: 37%; }
.kp4-print td.is-name { color: #0d2f44; font-weight: 700; }
.kp4-print tr { page-break-inside: avoid; }
/* Detailed marks (pages/lestvica_det.php), on a landscape page: for each of the five marks the three
   criteria and their sum; the groups start on a new page */
.kp4-print-legend { margin: -6px 0 16px; color: #5b6b78; font-size: 10px; text-align: center; }
.kp4-print-legend b { display: inline-block; min-width: 16px; margin-right: 4px; padding: 1px 3px; background: #e3eff6; border-radius: 3px; color: #196891; font-weight: 700; text-align: center; }
.kp4-print-legend i { display: inline-block; width: 14px; }
/* (the white border keeps the blue of the heading from showing as a thin line at the foot of the page before) */
.kp4-print.is-wide h3.is-break { page-break-before: always; margin-top: 0; border-top: 6px solid #ffffff; border-radius: 8px 8px 4px 4px; }
.kp4-print.is-wide th { padding: 4px 2px 5px; text-align: center; }
.kp4-print.is-wide th.is-name { padding-left: 10px; text-align: left; }
.kp4-print.is-wide th.is-judge { border-bottom: 0; border-left: 1px solid #c5d3dc; }
.kp4-print.is-wide th.is-mark { letter-spacing: 0; font-size: 9px; }
.kp4-print.is-wide td { padding: 3px 2px; }
.kp4-print.is-wide h3 + table .is-name { width: auto; }
.kp4-print.is-wide td.is-name { padding-left: 10px; font-size: 12px; line-height: 1.25; }
.kp4-print.is-wide .is-mark { width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.kp4-print.is-wide td.is-mark { font-size: 12px; }
.kp4-print.is-wide .is-mark.is-first { border-left: 1px solid #c5d3dc; }
.kp4-print.is-wide .is-mark.is-sum { width: 36px; }
.kp4-print.is-wide tbody tr td.is-sum { background: #e3eff6; color: #0d4868; font-weight: 700; }
.kp4-print.is-wide .is-points { width: 54px; text-align: center; }
.kp4-print.is-wide tbody tr td.is-points { background: #196891; color: #ffffff; font-size: 14px; }
/* Rankings (pages/lestvica.php): points on the right, the first three with a full circle */
.kp4-print .is-points { width: 62px; text-align: right; }
.kp4-print td.is-points { color: #0d2f44; font-weight: 700; font-variant-numeric: tabular-nums; }
.kp4-print tr.is-top td.is-number span { background: #196891; color: #ffffff; }
/* A little tighter, so a usual ranking (about twenty rows) stays on one page with its footer */
.kp4-print h3 + table td.is-points,
.kp4-print h3 + table td.is-points ~ td,
.kp4-print h3 + table tr:has(.is-points) td { padding-top: 3px; padding-bottom: 3px; }
/* Sheets in both languages (order of the parade): second title, second line in the cells, guests, withdrawn */
/* Running text of a sheet (minutes of the meetings, pages/assemblee_export.php) */
.kp4-print-text { margin: 0 0 4px; color: #33434f; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
.kp4-print .kp4-print-text + h3 { margin-top: 18px; }
.kp4-print-rich > *,
.kp4-print-rich li { page-break-inside: avoid; }
.kp4-print-rich p,
.kp4-print-rich div { margin: 0 0 4px; padding: 0; }
.kp4-print-rich ul,
.kp4-print-rich ol { margin: 0 0 4px; padding: 0 0 0 22px; }
.kp4-print-rich ul { list-style: disc; }
.kp4-print-rich ol { list-style: decimal; }
.kp4-print-rich li { margin: 0 0 2px; padding: 0; }
.kp4-print h3 + table.is-todo .is-name { width: 24%; }
.kp4-print table.is-todo .is-date { width: 80px; white-space: nowrap; }
/* Programme of an edition on the sheet (kp4_program_print() in includes/kp_program.php) */
.kp4-print table.is-program { margin-bottom: 16px; }
.kp4-print table.is-program td { padding: 8px 10px; vertical-align: top; }
.kp4-print table.is-program tbody tr:nth-child(even) td { background: none; }
.kp4-print table.is-program td.is-time { width: 96px; color: #196891; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.kp4-print table.is-program strong { display: block; color: #0d2f44; font-size: 13.5px; line-height: 1.3; }
.kp4-print table.is-program tr.is-main strong { color: #bd1e01; font-size: 15px; }
.kp4-print table.is-program tr.is-main td.is-time { color: #bd1e01; }
.kp4-print table.is-program .kp4-print-text { margin: 3px 0 0; }
.kp4-print table.is-program b { color: #0d2f44; }
.kp4-print-fact { margin: 4px 0 0; color: #33434f; font-size: 11.5px; line-height: 1.5; }
.kp4-print-fact > b:first-child { display: inline-block; margin-right: 6px; color: #196891 !important; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kp4-print table.is-program + h3 { margin-top: 4px; }
.kp4-print-second { margin: -4px 0 8px; color: #5b6b78; font-size: 13px; font-weight: 600; text-align: center; }
.kp4-print td small { display: block; color: #6a7a86; font-size: 10.5px; font-weight: 400; }
.kp4-print td.is-kind span.is-guest { border-color: #9fb3c1; color: #5b6b78; }
.kp4-print tr.is-off td,
.kp4-print tr.is-off td small { color: #9aa7b0; text-decoration: line-through; }
.kp4-print tr.is-off td.is-number span { border-color: #c5d3dc; color: #9aa7b0; }
.kp4-print tr.is-off td.is-kind span { background: none; border-color: #c5d3dc; color: #9aa7b0; }
/* Lists in more parts (participants: floats, groups): a heading with the count before each table */
.kp4-print h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 12px; background: #196891; border-radius: 4px; color: #ffffff; font: 700 11px/1.4 'Montserrat', Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; page-break-inside: avoid; }
.kp4-print h3 span { flex: 1 1 auto; }
.kp4-print h3 b { padding: 0 8px; background: #ffffff; border-radius: 999px; color: #196891; font-size: 10.5px; letter-spacing: 0; }
.kp4-print table + h3 { margin-top: 18px; }
.kp4-print .is-index { width: 34px; padding-left: 4px; padding-right: 4px; color: #7a8a96; font-size: 10.5px; font-weight: 700; text-align: center; }
.kp4-print h3 + table td { padding-top: 5px; padding-bottom: 5px; }
.kp4-print h3 + table .is-name { width: 42%; }

/* PDF export of the tables pages (#pdf-content gets the class pdf-export while the PDF is made) */

.pdf-export { background: #ffffff; color: #222222; }

.pdf-export .pdf-header {
	margin: 0 0 16px;
	padding: 14px 22px 12px;
	background: #196891;
	border-bottom: 5px solid #ffcd47;
	border-radius: 10px;
	color: #ffffff;
}
.pdf-export .pdf-header-logo img { width: 92px; }
.pdf-export .pdf-header-text { color: #e3f1f8; font: 10px/1.45 'Montserrat', Arial, sans-serif; }
.pdf-export .pdf-header-text strong { color: #ffffff; font-size: 13px; }
.pdf-export .pdf-header hr { display: none; }
.pdf-export .pdf-title {
	margin-top: 8px;
	color: #ffcd47;
	font: 400 20px/1.2 'Paytone One', 'Poppins', sans-serif !important;
	letter-spacing: .01em;
}

.pdf-export .card_pasica { margin: 14px 0 10px; color: #bd1e01; font-weight: 400; }
.pdf-export .card_pasica::after { width: 56px; height: 4px; margin-top: 6px; }

/* Tables: blue heading, light alternate rows, thin lines */
.pdf-export #middleconteiner > table { background-color: transparent; }
.pdf-export #middleconteiner table table,
.pdf-export table.rotated-header { border: 0; border-collapse: collapse; }
.pdf-export tr.fnt7,
.pdf-export tr.fnt7 th,
.pdf-export tr.fnt7 td { background-color: #196891 !important; border-color: #4a8fb3; color: #ffffff; }
.pdf-export tr.fnt7 th[style*="66AACC"] { background-color: #0d4868 !important; }
.pdf-export tr.fnt7 th[style*="88DDCC"] { background-color: #ffcd47 !important; color: #3a2a00; }
.pdf-export .bk1,
.pdf-export .bk1 td { background-color: #ffffff; }
.pdf-export .bk2,
.pdf-export .bk2 td { background-color: #eaf3f9; }
.pdf-export .bk1 td,
.pdf-export .bk2 td { border: 1px solid #c9dbe6; color: #222222; }
.pdf-export table.rotated-header td b { color: #196891; }
.pdf-export table.rotated-header td:last-child { background-color: #fff3cf; color: #bd1e01; font-weight: 700; }

/* Footer */

/* The old style sheets fill the footer with a small picture repeated side by side (header-bg.png), twice:
   on the phones the joins between the copies show as thin light lines, across and down. One colour that
   fades slightly, with no picture, has no joins. */
#footer { background-image: linear-gradient(160deg, #15638c, #0e597f); background-color: #136088; }
#footer-widgets { background: none; }
/* The same picture was repeated behind the banner at the top of the page */
#main-header::before { background-image: linear-gradient(160deg, #15638c, #0e597f); }

.kp4-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 40px;
	padding-top: 14px;
	text-align: left;
}

.kp4-footer-title {
	margin: 0 0 10px;
	color: #ffffff;
	font: 400 18px/1.3 'Oswald', sans-serif;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.kp4-footer-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	background: #ffcd47;
	border-radius: 999px;
	color: #3a2a00;
	font: 700 14px 'Montserrat', sans-serif;
	text-decoration: none;
	transition: background-color .15s;
}
.kp4-footer-button:hover,
.kp4-footer-button:focus { background: #ffffff; color: #3a2a00; text-decoration: none; }

.kp4-footer-icons { display: flex; gap: 10px; margin: 0; }
.kp4-footer-icons a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	color: #ffffff;
	transition: background-color .15s, color .15s;
}
.kp4-footer-icons a:hover { background: #ffffff; color: #136088; }

.kp4-copyright {
	padding: 14px 20px 22px;
	background: #3d3d3d;
	color: #d0d0d0;
	font: 13px/1.7 'Montserrat', sans-serif;
	text-align: center;
}
.kp4-copyright p { margin: 0; }
.kp4-copyright a { color: #ffffff; text-decoration: underline; }
.kp4-copyright b { color: #ffffff; }


.kp4-footer-button:focus-visible,
.kp4-footer-icons a:focus-visible,
.kp4-link:focus-visible,
.kp4-more:focus-visible,
.kp4-pages a:focus-visible,
.kp4-news-image:focus-visible,
.slideshow-button:focus-visible,
.slideshow-zoom:focus-visible { outline: 3px solid #ffcd47; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.kp4-link, .kp4-news-image img, .kp4-media-grid img, .kp4-slide { transition: none; }
}
