/*
Theme Name: Parafia Brzezinka Średzka
Author: Tomasz Łazarski
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.sticky-bottom-footer {
    margin-top: auto !important;
}

.mirror-horizontal {
    transform: scaleX(-1);
}

.mirror-vertical {
    transform: scaleY(-1);
}

.mirror-both {
    transform: scale(-1, -1);
}

.static-width-30px {
	width: 30px !important;
	flex-shrink: 0 !important;
}

.static-width-25px {
	width: 25px !important;
	flex-shrink: 0 !important;
}

.height-100p {
	height: 100% !important;

	.card-body {
		height: 100% !important;
	}
}

.swiper-slide {
	width: 100% !important;
}

@media (max-width: 999px) {
  .custom-column-breakpoint {
    flex-direction: column !important;
  }
}

body.no-sticky-posts .hide-if-no-sticky-posts {
	display: none !important;
}

/* Pigułka ze statystykami w stopce */
.footer-stats-badge {
	margin-top: 14px;
}

.footer-stats-badge .stats-pill {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 20px;
	overflow: hidden;
	font-size: 0.82rem;
	color: var(--wp--preset--color--accent-1);
	background: rgba(0, 0, 0, 0.15);
	letter-spacing: 0.2px;
}

.footer-stats-badge .stats-label {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px 5px 16px;
	border-right: 1px solid var(--wp--preset--color--accent-1);
	font-weight: 400;
	color: var(--wp--preset--color--accent-1);
	white-space: nowrap;
}

.footer-stats-badge .stats-values {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 16px 5px 14px;
	white-space: nowrap;
}

.footer-stats-badge .stats-item {
	white-space: nowrap;
}

.footer-stats-badge .stats-pill strong {
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

/* Responsywność na wąskich ekranach (smartfony) */
@media (max-width: 600px) {
	.footer-stats-badge .stats-pill {
		flex-direction: column;
		border-radius: 12px;
		max-width: 100%;
		display: inline-flex;
	}

	.footer-stats-badge .stats-label {
		border-right: none;
		border-bottom: 1px solid var(--wp--preset--color--accent-1);
		justify-content: center;
		padding: 4px 12px;
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.6px;
		background: rgba(255, 255, 255, 0.04);
	}

	.footer-stats-badge .stats-values {
		justify-content: center;
		padding: 6px 12px;
		gap: 8px;
		font-size: 0.78rem;
		flex-wrap: wrap;
	}

	.footer-stats-badge .stats-sep {
		opacity: 0.6;
	}
}