/*
Theme Name: OfMine Theme
Description: Szybki motyw WordPress z własnym wizualnym kreatorem stron (OfMine Builder) — bez Gutenberga i bez wtyczek. Strony, nagłówki, stopki, modale, strony 404 i szablony projektuje się w kreatorze; w zestawie moduły treści z polami i szablonami, wielojęzyczność z tłumaczeniem DeepL, SEO z Google Search Console, cache stron, zabezpieczenia logowania, formularz kontaktowy z SMTP, przebudowany panel (jasny i ciemny) oraz aktualizacje z GitHuba.
Author: OfMine
Version: 1.12.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ofmine
*/

* {
	box-sizing: border-box;
}

/* No elastic "bounce" past the top/bottom of the page (Safari on macOS/iOS
   showed an empty area below the footer while overscrolling). */
html,
body {
	overscroll-behavior-y: none;
}

/* Elements waiting for their entrance animation (e.g. "from the right") sit
   up to 40 px outside the page; on phones that allowed sideways scrolling.
   clip (not hidden) keeps position: sticky working. */
html {
	overflow-x: clip;
}

body {
	margin: 0;
	color: var(--ofmine-color-text, #222);
	background: var(--ofmine-color-background, #fff);
	font-family: var(--ofmine-font-family, system-ui, sans-serif);
	font-size: var(--ofmine-font-size-base, 16px);
	line-height: var(--ofmine-line-height-base, 1.6);
}

a {
	color: var(--ofmine-color-primary, #185abc);
}

img {
	max-width: 100%;
	height: auto;
}

.site-header,
.site-main,
.site-footer {
	width: min(100% - 2 * var(--ofmine-container-padding, 1rem), var(--ofmine-container-width, 72rem));
	margin-inline: auto;
	padding-block: var(--ofmine-spacing, 1.5rem);
}

h1 {
	font-size: var(--ofmine-font-size-heading, 2em);
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-description {
	margin: 0;
}

.entry {
	margin-bottom: 3rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: #fff;
	clip-path: none;
}

/* OfMine language switcher (Views component "langswitch"). */
.ofv-langswitch a {
	color: var(--ofv-lang-color, inherit);
	text-decoration: none;
	opacity: 0.75;
}
.ofv-langswitch a:hover,
.ofv-langswitch a:focus-visible {
	opacity: 1;
	text-decoration: underline;
}
.ofv-langswitch a[aria-current] {
	color: var(--ofv-lang-active, var(--ofv-lang-color, inherit));
	font-weight: 700;
	opacity: 1;
}

/* OfMine Builder header/footer parts. A header section set to "Przyklejony"
   (.ofv-sticky) sticks through its wrapper: the wrapper is exactly as tall as
   the header, so sticky on the section alone would have no room to move. */
.ofmine-part-header:has(.ofv-sticky) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .ofmine-part-header:has(.ofv-sticky) {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .ofmine-part-header:has(.ofv-sticky) {
		top: 46px;
	}
}
/* Below 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar .ofmine-part-header:has(.ofv-sticky) {
		top: 0;
	}
}

/* Language switcher: flags and the dropdown layout. */
.ofv-langswitch .ofv-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ofv-lang-flag {
	display: block;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	object-fit: cover;
}
.ofv-langswitch-dropdown {
	position: relative;
}
.ofv-lang-menu > summary {
	list-style: none;
	cursor: pointer;
	opacity: 1;
}
.ofv-lang-menu > summary::-webkit-details-marker {
	display: none;
}
.ofv-lang-chevron {
	width: 14px;
	height: 14px;
	transition: transform 150ms ease;
}
.ofv-lang-menu[open] .ofv-lang-chevron {
	transform: rotate(180deg);
}
.ofv-lang-list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	display: grid;
	min-width: 180px;
	max-height: min(60vh, 420px);
	padding: 6px;
	overflow-y: auto;
	border: 1px solid rgba(20, 22, 28, 0.1);
	border-radius: 12px;
	background: var(--ofmine-color-surface, #fff);
	box-shadow: 0 20px 40px -20px rgba(20, 22, 28, 0.45);
}
.ofv-lang-list .ofv-lang {
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--ofmine-color-text, #14161c);
}
.ofv-lang-list .ofv-lang:hover,
.ofv-lang-list .ofv-lang.is-current {
	background: var(--ofmine-color-surface-2, #f1efe8);
	text-decoration: none;
}

