/*
Theme Name: SmartCloud Agent Canvas
Theme URI: https://wpsuite.io/agent-canvas/
Author: Smart Cloud Solutions, Inc.
Author URI: https://wpsuite.io/
Description: A flexible native block theme with predictable design tokens and core Gutenberg patterns for people and agent-assisted editing workflows.
Requires at least: 6.9
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartcloud-agent-canvas
Tags: block-patterns, block-styles, full-site-editing, blog, portfolio, wide-blocks
*/

:root {
	--smartcloud-canvas-transition: 180ms ease;
	--smartcloud-canvas-viewport-gutter: var(--wp--custom--viewport-gutter--desktop, 0px);
}

html {
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

:where(a) {
	text-underline-offset: 0.16em;
}

.wp-site-blocks {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	padding-right: var(--smartcloud-canvas-viewport-gutter) !important;
	padding-left: var(--smartcloud-canvas-viewport-gutter) !important;
}

.wp-site-blocks > main {
	box-sizing: border-box;
	flex: 1 0 auto;
	width: 100%;
}

.wp-site-blocks > footer {
	width: 100%;
	margin-block-start: auto;
}

body.admin-bar .wp-site-blocks {
	min-height: calc(100svh - 32px);
	min-height: calc(100dvh - 32px);
}

@media (width < 1200px) {
	:root {
		--smartcloud-canvas-viewport-gutter: var(--wp--custom--viewport-gutter--tablet, clamp(1.25rem, 3vw, 2rem));
	}

	.wp-site-blocks :where(main .alignfull) {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
}

@media (width < 600px) {
	:root {
		--smartcloud-canvas-viewport-gutter: var(--wp--custom--viewport-gutter--mobile, 1rem);
	}
}

@media (width <= 782px) {
	body.admin-bar .wp-site-blocks {
		min-height: calc(100svh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
