/*
Theme Name:  MyDaisy
Theme URI:   https://mydaisy.com
Author:      Yellow Bridge Alliances Pty Ltd
Description: An integrated mental health management process and system. Ported from the MyDaisy Next.js site with pixel-identical markup and styling. Works with no configuration; install the free Advanced Custom Fields plugin to make every section's copy editable from the admin.
Version:     1.0.0
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mydaisy
Tags:        one-column, custom-menu, editor-style, translation-ready
*/

/*
 * Styling lives in assets/css/mydaisy.css — the compiled Tailwind bundle
 * carried over from the original build, including the self-hosted Inter and
 * Playfair Display @font-face rules. This file exists for the theme header
 * above (WordPress requires it) and for any hand-written overrides below.
 */

/*
 * The hero button whose document menu is open, lifted above the buttons after
 * it. The reveal wrapper's transform and will-change make every button its own
 * stacking context, so the panel's own z-index cannot escape its button — see
 * initDocumentMenus() in assets/js/mydaisy.js, which toggles this class.
 */
.mydaisy-docmenu-open {
	position: relative;
	z-index: 40;
}

/*
 * The site header is position:fixed, so it ignores the margin-top WordPress
 * adds for the admin bar and slides underneath it when you are logged in.
 * These offsets match the admin bar's own two heights.
 */
body.admin-bar [data-mydaisy-header] {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar [data-mydaisy-header] {
		top: 46px;
	}
}

/*
 * Below 600px WordPress stops pinning the admin bar — it scrolls away with
 * the page — so the header goes back to the top of the viewport rather than
 * leaving a 46px gap under it for the rest of the scroll.
 */
@media screen and (max-width: 600px) {
	body.admin-bar [data-mydaisy-header] {
		top: 0;
	}
}
