/* ArtStudio shared rich-text presentation: used by admin preview and public pages. */
.rich-text-content {
    overflow-wrap: anywhere;
    word-break: normal;
}
.rich-text-content p {
    margin: 0 0 .9em;
    padding: 0;
}
.rich-text-content p:last-child { margin-bottom: 0; }
.rich-text-content br { line-height: inherit; }

/* These selectors are deliberately global. In v0.5 they were scoped to
   .rich-text-content and therefore did not apply to all public text wrappers. */
.rt-font-georgia { font-family: Georgia, 'Times New Roman', serif !important; }
.rt-font-times { font-family: 'Times New Roman', Times, serif !important; }
.rt-font-arial { font-family: Arial, Helvetica, sans-serif !important; }
.rt-font-verdana { font-family: Verdana, Geneva, sans-serif !important; }
.rt-font-trebuchet { font-family: 'Trebuchet MS', sans-serif !important; }
.rt-font-dm-sans { font-family: 'DM Sans', Arial, sans-serif !important; }
.rt-font-playfair { font-family: 'Playfair Display', Georgia, serif !important; }
.rt-size-14 { font-size: 14px !important; }
.rt-size-16 { font-size: 16px !important; }
.rt-size-18 { font-size: 18px !important; }
.rt-size-20 { font-size: 20px !important; }
.rt-size-24 { font-size: 24px !important; }
.rt-align-left { text-align: left !important; }
.rt-align-center { text-align: center !important; }
.rt-align-right { text-align: right !important; }

/* Public content blocks */
.artist-rich-text {
    max-width: 570px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}
.hero-intro.artist-rich-text {
    max-width: 405px;
    margin-bottom: 34px;
    color: #b6b2b9;
    font-size: 15px;
    line-height: 1.9;
}
.artist-copy .artist-rich-text { max-width: 570px; font-size: 14px; line-height: 2; }
.news-inner > .news-rich-text {
    max-width: 300px;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.contact-section > .contact-rich-text {
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
@media (max-width: 700px) {
    .news-inner > .news-rich-text { margin-top: 18px; }
}
.artist-rich-text p {
    max-width: none;
    margin: 0 0 1em;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.artist-rich-text p:last-child { margin-bottom: 0; }
.artist-rich-text strong, .artist-rich-text b { color: inherit; font-weight: 700; }
.artist-rich-text u { text-underline-offset: .18em; }
.dialog-rich-description {
    max-width: none;
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.8;
}
.dialog-rich-description p { margin: 0 0 .8em; color: inherit; }
.dialog-rich-description p:last-child { margin-bottom: 0; }

/* Admin editor */
.artist-rich-field { gap: 9px; }
.rich-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #19191d;
}
.rich-toolbar[hidden] { display: none !important; }
.rich-toolbar button {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    background: #25252b;
    color: #f1eaf4;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.rich-toolbar button:hover, .rich-toolbar button:focus-visible {
    border-color: var(--lavender-bright);
    outline: none;
}
.rich-toolbar-divider {
    width: 1px;
    height: 26px;
    margin: 0 3px;
    background: rgba(255,255,255,.16);
}
.rich-select-label {
    display: grid;
    gap: 3px;
    color: #c8c2cb;
    font-size: 10px;
}
.rich-select-label select {
    min-height: 34px;
    max-width: 170px;
    padding: 5px 25px 5px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    background: #25252b;
    color: #f1eaf4;
    font: inherit;
    font-size: 11px;
}
.rich-editor {
    min-height: 260px;
    max-height: 620px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    background: #151518;
    color: #f2edf4;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    outline: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
.rich-editor:focus {
    border-color: var(--lavender-bright);
    box-shadow: 0 0 0 2px rgba(190,164,208,.12);
}
.rich-editor:empty::before {
    content: 'Hier Text eingeben …';
    color: #77717d;
    pointer-events: none;
}
.rich-editor[contenteditable="false"] {
    border-color: rgba(190,164,208,.35);
    background: #1b1a20;
}
.rich-editor-inline {
    min-height: 72px;
    max-height: 220px;
}
.rich-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.rich-editor-footer .admin-note { flex: 1 1 260px; }
@media (max-width: 520px) {
    .rich-toolbar { gap: 5px; padding: 7px; }
    .rich-toolbar button { min-width: 32px; min-height: 32px; padding: 5px 7px; }
    .rich-select-label select { max-width: 135px; }
    .rich-editor { min-height: 220px; padding: 12px; }
    .rich-editor-inline { min-height: 66px; }
}
