/* CSS Custom Properties injected by config.php via wp_add_inline_style() */
/* Values defined in build_global_css_properties() method - SSOT compliance */

/* header-0 Inline Layout - Two Selector Pattern for FSE Compatibility */
/* SSOT: All values come from config.php build_global_css_properties() */

.editor-styles-wrapper .wp-block-w4ya-cm-header-0,
.wp-block-w4ya-cm-header-0{
    box-sizing: border-box;
    z-index: 5;
    width: 100%;
    display: flex;
    float: none !important;
    clear: none;
    padding: var(--header-0-padding);
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background-color: var(--header-0-default-bg);
    color: var(--header-0-default-color);
    min-height: 60px;
}

/* Inline Text Wrapper - Full Width Container */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .text-wrapper-inline,
.wp-block-w4ya-cm-header-0 .text-wrapper-inline{
    box-sizing: border-box;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
}

/* Inline Title-Tagline Wrapper - High specificity selectors for FSE compatibility */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .site-title-tagline-wrapper-inline,
.wp-block-template-part .wp-block-cm-header-0 .site-title-tagline-wrapper-inline{
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--header-0-tagline-spacing);
    width: auto; /* Allow wrapper to expand for longer titles */
    min-width: max-content; /* Ensure it doesn't shrink below needed size */
    flex-shrink: 0; /* Prevent flex shrinking */
    margin-left: .5em;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;    
}

/* Site Title - Main Heading - Comprehensive FSE selectors */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .site-title,
.wp-block-w4ya-cm-header-0 .site-title {
    font-family: var(--header-1-site-title-font-family);
    font-size: var(--header-0-title-size);
    color: var(--header-0-default-color);
    letter-spacing: var(--header-0-title-spacing);
    margin: 0;
    padding: 0;
    font-weight: bold;
    white-space: nowrap; /* Force override of pre-wrap - prevent title from wrapping */
}

/* Site Tagline - Smaller Inline Text */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .site-tagline,
.wp-block-w4ya-cm-header-0 .site-tagline {
    box-sizing: border-box;
    font-family: var(--header-1-site-tagline-font-family);    
    font-size: var(--header-0-tagline-size);
    color: var(--header-0-tagline-color);
    margin: 0;
    padding: 0;
    font-weight: normal;
    white-space: nowrap;
}

/* Logo Container - Horizontal Centering for Images */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .logo-container,
.wp-block-w4ya-cm-header-0 .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Logo - Height controlled by JavaScript */
.editor-styles-wrapper .wp-block-w4ya-cm-header-0 .logo-container .custom-logo,
.wp-block-w4ya-cm-header-0 .logo-container .custom-logo {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
}
 