/* ==========================================================================
   ebg elements - fixes for Blocksy's own header and footer
   (_core/tools/blocksy-chrome.php). The theme wraps Blocksy's CSS in the
   "framework" layer; the base layer's img { height: auto } comes later and
   undid Blocksy's logo sizing (.site-logo-container img { height: inherit }),
   so the logo showed at full size. Restored here.
   ========================================================================== */

@layer components {

	.site-logo-container :is(img, svg, picture) { block-size: inherit; }

	/* Scroll to Top button: subtle helper tool */
	.ct-back-to-top {
		inline-size: 38px;
		block-size: 38px;
		border-radius: 50%;
		background: var(--ebg-ink-3, #67787A);
		color: #FFFFFF;
		border: 1px solid rgb(255 255 255 / 0.3);
		box-shadow: none;
		transition: opacity 0.3s ease,
		            visibility 0.3s ease,
		            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
		            background 0.2s ease,
		            border-color 0.2s ease;

		& svg {
			fill: currentColor;
			inline-size: 14px;
			block-size: 14px;
		}

		&:is(:hover, :focus-visible) {
			background: var(--ebg-accent, #146E6E);
			color: #FFFFFF;
			border-color: rgb(255 255 255 / 0.6);
			box-shadow: none;
		}

		&:active {
			filter: brightness(0.9);
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.ct-back-to-top,
		.ct-back-to-top svg {
			transition: none;
			transform: none;
		}
	}
}
