/*
Theme Name: Trainyard Bulldogs
Theme URI: https://trainyardbulldogs.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: A custom WordPress theme built by The Free Website Guys for Trainyard Bulldogs - West Coast Olde English Bulldogge breeders in Washington State.
Version: 1.0.6
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmt
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, theme-options
*/

/* -------------------------------------------------------------------------
 * Fixed header ↔ WordPress admin bar
 * ------------------------------------------------------------------------- */

body.admin-bar .tmt-site-header,
body.admin-bar .tmt-mobile-nav {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .tmt-site-header,
	body.admin-bar .tmt-mobile-nav {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* ≤600px: core switches #wpadminbar to absolute and clears html margin,
   which leaves a fixed header stranded. Keep the bar fixed and pin header.
   Do not set position:relative on body — that triggers the classic white-gap bug. */
@media screen and (max-width: 600px) {
	html {
		margin-top: 46px !important;
	}

	body.admin-bar #wpadminbar {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
	}

	body.admin-bar .tmt-site-header,
	body.admin-bar .tmt-mobile-nav {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}
