/* Shared rich text display (Insights articles + Event descriptions) */

.rich-content {
    color: #d4d4d4;
    line-height: 1.75;
}

.rich-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.rich-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #e5e5e5;
}

.rich-content p {
    font-size: 1.0625rem;
    color: #d4d4d4;
    margin-bottom: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .rich-content p {
        font-size: 1.1875rem;
    }
}

.rich-content strong,
.rich-content b {
    color: #fff;
    font-weight: 500;
}

.rich-content em,
.rich-content i {
    font-style: italic;
}

.rich-content u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content a {
    color: #84cc16;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content a:hover {
    color: #fff;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.rich-content ul {
    background: rgba(23, 23, 23, 0.35);
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .rich-content ul {
        padding: 1.75rem 2.5rem;
    }
}

.rich-content ol {
    padding-left: 1.25rem;
    list-style: decimal;
}

.rich-content li {
    font-size: 1.0625rem;
    color: #d4d4d4;
    margin-bottom: 0.65rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.rich-content ul > li::before {
    content: "→";
    color: #84cc16;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.rich-content blockquote,
.rich-content .highlight-box {
    margin: 2rem 0;
    padding: 1.75rem 1.5rem 1.75rem 2rem;
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.05), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #84cc16;
    border-radius: 0 1.5rem 1.5rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
}

.rich-content blockquote::before,
.rich-content .highlight-box::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 3rem;
    color: rgba(132, 204, 22, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Event detail page — slightly larger intro */
.rich-content--lead p {
    font-size: 1.125rem;
    color: #a3a3a3;
}

@media (min-width: 768px) {
    .rich-content--lead p {
        font-size: 1.25rem;
    }
}

/* Compact preview on cards (events list) */
.rich-content--card {
    font-size: 0.875rem;
    line-height: 1.6;
}

.rich-content--card p,
.rich-content--card li {
    font-size: inherit;
    margin-bottom: 0.35rem;
    color: #737373;
    font-weight: 300;
}

.rich-content--card h2,
.rich-content--card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #a3a3a3;
}

/* Dashboard editor */
.rich-editor-body {
    min-height: 8rem;
    padding: 1.25rem 1.5rem;
    background: #0a0a0a;
    border-radius: 0.5rem;
    outline: none;
    overflow-y: auto;
    max-height: 28rem;
}

.rich-editor-body:focus {
    box-shadow: inset 0 0 0 1px rgba(132, 204, 22, 0.25);
}

.rich-editor-body:empty::before {
    content: attr(data-placeholder);
    color: #525252;
    pointer-events: none;
}

.rich-editor-body.rich-editor-body--tall {
    min-height: 16rem;
}
