/* Header-1 Inline Layout - SSOT Two-Selector Pattern with Block Identifier */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1.cm-header-container,
.wp-block-w4ya-cm-header-1.cm-header-container {
    box-sizing: border-box;
    z-index: 5;
    width: 100%;
    display: flex;
    float: none;
    clear: none;
    padding: var(--header-1-padding, 0.8vw);
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background-color: var(--header-1-default-bg);
    color: var(--header-1-default-color, #ffffff);
}

/* Inline Text Wrapper - Full Width Container */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1 .wp-block-group.text-wrapper-inline,
.wp-block-w4ya-cm-header-1 .wp-block-group.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 - SSOT Two-Selector Pattern */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1 .wp-block-group.site-title-tagline-wrapper-inline,
.wp-block-w4ya-cm-header-1 .wp-block-group.site-title-tagline-wrapper-inline {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--header-1-tagline-spacing, 0.5em);
    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;
}

/* Site Title - Main Heading - SSOT Two-Selector Pattern */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1 .site-title,
.wp-block-w4ya-cm-header-1 .site-title {
    box-sizing: border-box;
    font-family: var(--header-1-site-title-font-family);
    font-size: var(--header-1-title-size, clamp(24px, 2.5vw, 48px));
    color: var(--header-1-default-color, #ffffff);
    letter-spacing: var(--header-1-title-spacing, 0.1em);
    margin: 0;
    padding: 0;
    font-weight: bold;
    white-space: nowrap; /* Force override of pre-wrap - prevent title from wrapping */
}

 
/* Site Tagline - SSOT Two-Selector Pattern */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1 .site-tagline,
.wp-block-w4ya-cm-header-1 .site-tagline {
    box-sizing: border-box;
    font-family: var(--header-1-site-tagline-font-family);
    font-size: var(--header-1-tagline-size, clamp(14px, 1.2vw, 24px));
    color: var(--header-1-tagline-color, #e9e8bd);
    margin: 0;
    padding: 0;
    font-weight: normal;
    white-space: nowrap;
}
  
/* Header-1 Container Specific Styles */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1.header-1-container,
.wp-block-w4ya-cm-header-1.header-1-container {
    min-height: 60px;
}

/* Ensure proper spacing and alignment */
.editor-styles-wrapper .wp-block-w4ya-cm-header-1.cm-header-1-loaded .site-title-tagline-wrapper-inline,
.wp-block-w4ya-cm-header-1.cm-header-1-loaded .site-title-tagline-wrapper-inline {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}