/**
 * @file: assets/css/theme-fixes.css
 * @description: Layout fixes — Flexbox sticky footer, admin bar offset, mobile header contrast.
 * @dependencies: assets/css/theme.css, header.php, footer.php
 * @created: 2026-11-13
 */

/* Sticky footer (Flexbox) */
html,
body {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-header {
	flex-shrink: 0;
}

.site-content {
	flex: 1 0 auto;
}

.site-footer {
	flex-shrink: 0;
	margin-top: auto;
}

/* Admin bar: body is a flex column, keep it out of flow math. */
body.admin-bar {
	min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
	}
}

/* Mobile header: dark bar with a light burger; the panel keeps the header background. */
@media screen and (max-width: 980px) {
	.site-header__burger:focus-visible {
		outline-color: var(--ap-burger);
	}

	.site-header__panel {
		background: var(--ap-header-bg);
	}
}
