/*!
Theme Name: Red Can
Theme URI: https://redcan.pl
Author: Red Can
Description: Motyw Red Can – przeniesiony 1:1 z projektu Figma. Treści edytowalne w polach ACF (wersja darmowa). Style: Tailwind CSS (assets/css/main.css, źródło w src/main.css).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: redcan
*/

/* WordPress core classes (layout & utilities live in assets/css/main.css) */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #8b2c1c;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
	margin-top: 0.5em;
}

.sticky,
.bypostauthor {
	display: block;
}

/* Logged-in admin bar offset (unlayered, so it wins over Tailwind utilities) */
.admin-bar .rc-nav {
	top: 32px;
}

.admin-bar .rc-sticky {
	top: calc(4rem + 32px);
}

@media (min-width: 64rem) {
	.admin-bar .rc-sticky {
		top: calc(7rem + 32px);
	}
}

@media (max-width: 782px) {
	.admin-bar .rc-nav {
		top: 46px;
	}

	.admin-bar .rc-sticky {
		top: calc(4rem + 46px);
	}
}
