/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 10000;
	background: #000;
	color: #fff !important;
	padding: 0.5rem 1rem;
	text-decoration: none;
	font-size: 1.6rem;
	font-weight: bold;
	border: 2px solid #fff;
	transition: top 0.1s;
	text-transform: lowercase;
}
.skip-link:focus {
	top: 1rem;
}

/* ── Focus visible (restore outline Bootstrap 3 removes) ── */
:focus-visible {
	outline: 3px solid #005fcc !important;
	outline-offset: 2px !important;
	color: inherit;
}

/* ── FAB widget ─────────────────────────────────────────── */
#a11y-fab {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.5rem;
}
/* Fallback: fixed bottom-right on pages without nav */
#a11y-fab.a11y-fab-fixed {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	z-index: 9999;
	margin-right: 0;
	display: block;
}
#a11y-fab-toggle {
	background-color: #9b1f2a;
	border-radius: 0;
	color: #fff;
	border: none;
	cursor: pointer;

	font-weight: bold;
	padding: 5px 8px;
	line-height: 1.4;
	white-space: nowrap;
	display: inline-block;
}
#a11y-fab-toggle:hover {
	color: #fff;
	border-color: #aaa;
}
#a11y-fab-toggle:focus-visible {
	outline: 3px solid #005fcc !important;
	outline-offset: 2px !important;
}
#a11y-panel {
	position: absolute;
	left: 0;
	top: calc(100% - 15px);
	z-index: 9999;
	background: #9b1f2a;
	padding: 1rem;
	margin-top: 0.25rem;
	min-width: 120px;
}
/* Panel opens upward when widget is fixed at bottom */
#a11y-fab.a11y-fab-fixed #a11y-panel {
	top: auto;
	bottom: calc(100% + 0.25rem);
}
#a11y-panel button {
	display: block;
	width: 100%;
	background: transparent;
	color: #fff;
	border: none;
	padding: 0.4rem 0.8rem;
	margin: 0.25rem 0;
	cursor: pointer;
	text-align: left;
	font-size: 0.9rem;
}
#a11y-panel button[aria-checked='true'] {
	background: hsl(355, 67%, 56%);
	border-color: hsl(355, 67%, 56%);
}
#a11y-panel button:focus-visible {
	outline: 3px solid #ffff00 !important;
	outline-offset: 2px !important;
}
#a11y-panel a {
	display: block;
	width: 100%;
	color: #fff;
	padding: 0.4rem 0.8rem;
	margin: 0.25rem 0;
	text-align: left;
	font-size: 0.9rem;
	text-decoration: none;
}

#a11y-panel a:focus-visible {
	outline: 3px solid #ffff00 !important;
	outline-offset: 2px !important;
}

/* ── High contrast dark ─────────────────────────────────── */
[data-contrast='dark'] body {
	background-color: #000 !important;
	color: #fff !important;
}
[data-contrast='dark'] a {
	color: #ffff00 !important;
}
[data-contrast='dark'] a:hover,
[data-contrast='dark'] a:focus {
	color: #ffff00 !important;
	text-decoration: underline !important;
}
[data-contrast='dark'] {
	.yellow-square {
		border: 2px #ffff00 solid;
	}
	#jaktodziala:after {
		background-color: #ffff00 !important;
	}
	.navbar .nav li.active a::before {
		display: none;
	}
	.navbar .nav li.active a {
		border-bottom: 2px #ffff00 solid;
	}
	.minimenu .wrapper::before {
		background-color: #ffff00 !important;
	}
	.btn-apps {
		color: #000 !important;
	}

	.navbar .nav-header .fa-bars {
		color: #ffff00 !important;
	}

	.navbar.opened .nav {
		border-bottom: 2px #ffff00 solid;
	}
	.navbar.opened .nav,
	.navbar.opened {
		background-color: #000 !important;
	}

	#platnosci::before,
	#platnosci::after {
		height: 10px;
	}

	#oplaty ul li .price::before {
		display: none;
	}

	#oplaty .regulamin::before {
		background-color: #000;
		border: 2px #ffff00 solid;
	}

	#faq {
		&::before {
			display: none;
		}
		background-color: #000 !important;
		border-top: 2px #ffff00 solid;
		border-bottom: 2px #ffff00 solid;
	}

	#faq .faq-header .wrapper::before {
		display: none;
	}

	.collapse.in .wrapper {
		border-bottom: 2px #ffff00 solid;
		margin-bottom: 1em;
	}

	#namapie .yellow-square p {
		color: #000 !important;
	}
	#namapie .yellow-square::before {
		background-color: #ffff00;
	}

	.pobierz-aplikacje.active {
		background-color: #ffff00;

		button {
			opacity: 1;
		}
	}

	#namapie .blue-square::before {
		background-color: #000;
	}

	.modal-content {
		background-color: #000;
		border: 3px #ffff00 solid;

		button {
			opacity: 1;
		}
	}

	#a11y-panel button[aria-checked='true'] {
		border-color: #ffff00 !important;
		background-color: #ffff00 !important;
		color: #000 !important;
	}

	#a11y-panel a {
		color: #ffff00 !important;
	}

	#a11y-panel {
		background-color: #000;
		border-top: 1px solid #000;
		border-left: 1px solid #ffff00;
		border-right: 1px solid #ffff00;
		border-bottom: 1px solid #ffff00;
		border-style: outset;
	}
}
[data-contrast='dark'] .btn,
[data-contrast='dark'] .lang a,
[data-contrast='dark'] .minimenu button {
	background-color: #000 !important;
	border: 2px solid #000 !important;
	color: #ffff00 !important;

	&:before {
		display: none;
	}
}
[data-contrast='dark'] .minimenu .current a {
	background-color: #ffff00 !important;
	border-color: #ffff00 !important;
	color: #000 !important;
}
[data-contrast='dark'] #mainnav,
[data-contrast='dark'] .minimenu {
	background-color: #000 !important;
}
[data-contrast='dark'] .yellow,
[data-contrast='dark'] .yellow-square,
[data-contrast='dark'] .blue-square {
	background-color: #000 !important;
	color: #fff !important;
}
[data-contrast='dark'] section {
	background-image: none !important;
	background-color: #000 !important;
}
[data-contrast='dark'] img:not([data-contrast-swapped]) {
	filter: brightness(0.85) contrast(1.15);
}
[data-contrast='dark'] #a11y-fab-toggle {
	color: #ffff00;
}

[data-contrast='dark'] {
	h1,
	h2,
	h3,
	h4,
	p,
	span,
	a,
	a span {
		color: #ffff00 !important;
	}

	a {
		text-decoration: underline !important;
	}

	h2 {
		&:before {
			display: none;
		}
	}

	.blue-square {
		border: 4px solid #ffff00;
		padding-left: 2em;

		&::before {
			display: none;
		}

		.bikeType {
			color: #000;
		}
	}

	@media screen and (max-width: 767px) {
		.minimenu .wrapper .row {
			display: flex;
			flex-wrap: wrap;
			gap: 1em;
			justify-content: center;
		}
	}
}

/* ── Google Maps InfoWindow contrast ────────────────────── */
[data-contrast='dark'] .gm-style .gm-style-iw-d {
	overflow: visible !important;
}
[data-contrast='dark'] .gm-style .gm-style-iw-c {
	background-color: #ffff00 !important;
	box-shadow: none !important;
	overflow: visible !important;
}
[data-contrast='dark'] .gm-style .gm-style-iw-tc::after {
	background: #ffff00 !important;
}
[data-contrast='dark'] .gm-style .gm-style-iw-d * {
	color: #000 !important;
}
[data-contrast='dark'] .gm-style .gm-style-iw button[title] {
	/* filter: invert(1); */
}

/* ── Large font ─────────────────────────────────────────── */
[data-fontsize='large'] body {
	font-size: 120% !important;
}
