﻿


/* =========================================
   TipTap editor preview styles (Umbraco backoffice)
========================================= */

.tiptap .rte-intro,
.ProseMirror .rte-intro {
    font-size: 1.3em !important;
    line-height: 1.45 !important;
}

.tiptap .rte-text-lg,
.ProseMirror .rte-text-lg {
    font-size: 1.25em !important;
    line-height: 1.4 !important;
}

.tiptap .rte-text-xl,
.ProseMirror .rte-text-xl {
    font-size: 1.5em !important;
    line-height: 1.35 !important;
}

.tiptap .rte-emphasis,
.ProseMirror .rte-emphasis {
    font-weight: 600 !important;
}

/* Display styles */
.tiptap .rte-display-1,
.ProseMirror .rte-display-1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.tiptap .rte-display-2,
.ProseMirror .rte-display-2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.tiptap .rte-lead,
.ProseMirror .rte-lead {
    font-size: 1.15em !important;
    line-height: 1.5 !important;
}

.tiptap .rte-small,
.ProseMirror .rte-small {
    font-size: 0.95em !important;
    line-height: 1.45 !important;
}

/* Optional editor-only helpers (make it obvious) */
.tiptap .rte-display-1,
.tiptap .rte-display-2,
.tiptap .rte-intro,
.ProseMirror .rte-display-1,
.ProseMirror .rte-display-2,
.ProseMirror .rte-intro {
    background: rgba(0, 0, 0, 0.04) !important;
    padding-left: 0.5rem !important;
    border-left: 3px solid rgba(0, 0, 0, 0.2) !important;
}
/* Editor-only: make emphasis obvious */
.tiptap .rte-emphasis,
.ProseMirror .rte-emphasis {
    font-weight: 600 !important;
    text-decoration: underline dotted rgba(0,0,0,0.25);
    text-underline-offset: 0.18em;
}

/* Editor-only: neutralise text styles inside headings */
.tiptap h1 .rte-intro,
.tiptap h2 .rte-intro,
.tiptap h3 .rte-intro,
.tiptap h4 .rte-intro,
.ProseMirror h1 .rte-intro,
.ProseMirror h2 .rte-intro,
.ProseMirror h3 .rte-intro,
.ProseMirror h4 .rte-intro {
    font-size: inherit !important;
    line-height: inherit !important;
}



/* =========================================
   Create Balance brand effects (editor preview only)
   (Front-end effect lives in cb-overrides.css)
========================================= */

/* Brand: slashed text
   - TipTap backoffice often doesn't render background-clip:text reliably,
     so we show a simple diagonal hint instead. */
/* TipTap preview: diagonal split text fill */
.tiptap .cb-slashed-text,
.ProseMirror .cb-slashed-text {
    background-image: linear-gradient( 135deg, #ff00b8 0%, #ff00b8 62%, #000 62%, #000 100% ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-weight: 700 !important;
}


/* Brand: highlight band (this one previews well) */
.tiptap .cb-textband,
.ProseMirror .cb-textband {
    background: linear-gradient(135deg, transparent 35%, rgba(255,0,184,.25) 35%, rgba(255,0,184,.25) 65%, transparent 65%) !important;
    padding: 0 .12em;
    border-radius: .15em;
}


/* RTE button wrapper (paragraph) */
.ps-rte-btnwrap {
    margin: 0; /* optional: keep tight */
}

.ps-rte-btnwrap--center {
    text-align: center;
}

/* Make the link look like your standard buttons */
.ps-rte-btnwrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Primary */
.ps-rte-btnwrap--primary a,
.ps-rte-btnwrap--primary a:link,
.ps-rte-btnwrap--primary a:visited {
    background: var(--ps-btn-primary-bg);
    color: var(--ps-btn-primary-text) !important;
}

    .ps-rte-btnwrap--primary a:hover,
    .ps-rte-btnwrap--primary a:focus,
    .ps-rte-btnwrap--primary a:focus-visible {
        background: var(--ps-btn-primary-hover-bg);
        color: var(--ps-btn-primary-hover-text) !important;
    }

/* Secondary */
.ps-rte-btnwrap--secondary a,
.ps-rte-btnwrap--secondary a:link,
.ps-rte-btnwrap--secondary a:visited {
    background: var(--ps-btn-secondary-bg);
    color: var(--ps-btn-secondary-text) !important;
    border: 2px solid var(--ps-btn-secondary-text);
}

    .ps-rte-btnwrap--secondary a:hover,
    .ps-rte-btnwrap--secondary a:focus,
    .ps-rte-btnwrap--secondary a:focus-visible {
        background: var(--ps-btn-secondary-hover-bg);
        color: var(--ps-btn-secondary-hover-text) !important;
    }
