/*
Theme Name: Annie's Brushworks
Theme URI: https://thefreewebsiteguys.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: A custom WordPress theme for the Annie's Brushworks portal, built by The Free Website Guys.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: tmt
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; }

/* Desktop admin bar only. Mobile admin bar behavior stays unchanged. */
@media screen and (min-width: 783px) {
  body.admin-bar #tmt-app .tmt-site-header {
    top: 32px !important;
  }
}

/*
 * WordPress global styles are unlayered and override Tailwind's layered
 * utilities, which collapses header logos and Lucide icons.
 */
#tmt-app .tmt-header-logo {
  width: auto !important;
  height: 2.5rem !important;
  max-height: 2.5rem !important;
  max-width: 9.5rem !important;
  object-fit: contain !important;
}

@media (min-width: 640px) {
  #tmt-app .tmt-header-logo {
    height: 3rem !important;
    max-height: 3rem !important;
    max-width: 13rem !important;
  }
}

@media (min-width: 768px) {
  #tmt-app .tmt-header-logo {
    height: 3.5rem !important;
    max-height: 3.5rem !important;
    max-width: 220px !important;
  }
}

#tmt-app .tmt-header-bar {
  min-width: 0;
  position: relative;
  z-index: 1;
}

#tmt-app .tmt-menu-toggle {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  align-items: center;
  justify-content: center;
}

#tmt-app .tmt-menu-toggle svg,
#tmt-app svg.lucide,
.tmt-mobile-drawer svg.lucide {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: none !important;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  #tmt-app .tmt-menu-toggle {
    display: none !important;
  }

  .tmt-mobile-drawer {
    display: none !important;
  }
}

/*
 * Mobile drawer is portaled to document.body so header backdrop-filter
 * cannot trap position:fixed. Styles live here (unlayered) so WordPress
 * global CSS cannot hide the panel behind a broken translate utility.
 */
.tmt-mobile-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  pointer-events: none;
}

.tmt-mobile-drawer.is-open {
  pointer-events: auto;
}

.tmt-mobile-drawer__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: color-mix(in srgb, var(--ink, #2A211B) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tmt-mobile-drawer.is-open .tmt-mobile-drawer__backdrop {
  opacity: 1;
}

.tmt-mobile-drawer__panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 24rem !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--cream, #F9F6F0) !important;
  border-left: 1px solid var(--border-soft, #E8DED2) !important;
  color: var(--ink, #2A211B) !important;
  transform: translate3d(100%, 0, 0) !important;
  transition: transform 0.3s ease-out !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .tmt-mobile-drawer__panel {
    width: 86% !important;
    padding: 2rem !important;
  }
}

.tmt-mobile-drawer.is-open .tmt-mobile-drawer__panel {
  transform: translate3d(0, 0, 0) !important;
}

.tmt-mobile-drawer__logo {
  width: auto !important;
  height: 3rem !important;
  max-height: 3rem !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

.tmt-mobile-drawer__close {
  color: var(--ink, #2A211B) !important;
  background: transparent;
  border: 0;
  cursor: pointer;
}
