.regi14-rich-content {
    color: #334155;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.regi14-rich-content > :first-child {
    margin-top: 0;
}

.regi14-rich-content > :last-child {
    margin-bottom: 0;
}

.regi14-rich-content p,
.regi14-rich-content ul,
.regi14-rich-content ol,
.regi14-rich-content blockquote,
.regi14-rich-content table,
.regi14-rich-content pre,
.regi14-rich-content figure,
.regi14-rich-content video,
.regi14-rich-content iframe {
    margin: 1rem 0;
}

.regi14-rich-content h1,
.regi14-rich-content h2,
.regi14-rich-content h3,
.regi14-rich-content h4,
.regi14-rich-content h5,
.regi14-rich-content h6 {
    margin: 1.5rem 0 0.65rem;
    color: #0f172a;
    font-weight: 750;
    line-height: 1.2;
}

.regi14-rich-content h1 { font-size: 2rem; }
.regi14-rich-content h2 { font-size: 1.55rem; }
.regi14-rich-content h3 { font-size: 1.25rem; }
.regi14-rich-content h4 { font-size: 1.1rem; }

.regi14-rich-content ul,
.regi14-rich-content ol {
    padding-left: 1.6rem;
}

.regi14-rich-content ul { list-style: disc; }
.regi14-rich-content ol { list-style: decimal; }
.regi14-rich-content li + li { margin-top: 0.25rem; }

.regi14-rich-content a {
    color: #0d63b8;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.regi14-rich-content blockquote {
    border-left: 4px solid #94a3b8;
    padding: 0.5rem 0 0.5rem 1rem;
    color: #475569;
    font-style: italic;
}

.regi14-rich-content img,
.regi14-rich-content video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.regi14-rich-content figure {
    max-width: 100%;
}

.regi14-rich-content figcaption {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
}

.regi14-rich-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 260px;
    border: 0;
    border-radius: 0.75rem;
}

.regi14-rich-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.regi14-rich-content th,
.regi14-rich-content td {
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
}

.regi14-rich-content th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.regi14-rich-content pre {
    overflow-x: auto;
    border-radius: 0.75rem;
    background: #0f172a;
    padding: 1rem;
    color: #e2e8f0;
}

.regi14-rich-content code {
    border-radius: 0.25rem;
    background: #e2e8f0;
    padding: 0.1rem 0.3rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.regi14-rich-content pre code {
    background: transparent;
    padding: 0;
}
