/**
 * ACF Text Field Block Styles (Frontend & Editor)
 */

.brand-acf-text {
    box-sizing: border-box;
    word-break: break-word;
}

/* Headings */
h1.brand-acf-text,
.brand-acf-text--h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

h2.brand-acf-text,
.brand-acf-text--h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: inherit;
}

h3.brand-acf-text,
.brand-acf-text--h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

h4.brand-acf-text,
.brand-acf-text--h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

h5.brand-acf-text,
.brand-acf-text--h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

h6.brand-acf-text,
.brand-acf-text--h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

/* Paragraph */
p.brand-acf-text,
.brand-acf-text--p {
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1rem;
    color: inherit;
}

/* Span */
span.brand-acf-text,
.brand-acf-text--span {
    display: inline;
    color: inherit;
}

/* Div */
div.brand-acf-text,
.brand-acf-text--div {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: inherit;
}

/* Blockquote */
blockquote.brand-acf-text,
.brand-acf-text--blockquote {
    border-left: 4px solid #002855;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: #334155;
}

/* ==========================================================================
   Editor-Specific Styles
   ========================================================================== */

.brand-acf-text-editor-wrapper {
    position: relative;
    border: 1px dashed rgba(0, 40, 85, 0.25);
    border-radius: 6px;
    padding: 12px 14px 14px 14px;
    margin: 1rem 0;
    background-color: #fafbfc;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.brand-acf-text-editor-wrapper:hover,
.brand-acf-text-editor-wrapper:focus-within {
    border-color: #002855;
    background-color: #ffffff;
}

.brand-acf-text-editor-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    user-select: none;
}

.brand-acf-badge-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    background-color: #e2e8f0;
    color: #334155;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}

.brand-acf-badge-tag.is-element {
    background-color: #002855;
    color: #ffffff;
}

.brand-acf-text-placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
    padding: 8px 0;
}

