/**
 * Shared rich-text typography (Our Projects body + CMS CKEditor editing surface).
 * Loaded on public project detail and via CKEditor contentsCss in admin.
 */
.sv-rich-text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #1a2b3c;
    max-width: 42rem;
}

.sv-rich-text--editor {
    max-width: none;
}

.sv-rich-text > :first-child {
    margin-top: 0;
}

.sv-rich-text > :last-child {
    margin-bottom: 0;
}

.sv-rich-text p {
    margin: 0 0 1rem;
}

.sv-rich-text h1,
.sv-rich-text h2,
.sv-rich-text h3,
.sv-rich-text h4,
.sv-rich-text h5,
.sv-rich-text h6 {
    color: #071a28;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.75rem 0 0.75rem;
}

.sv-rich-text h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

.sv-rich-text h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.sv-rich-text h4 {
    font-size: 1.0625rem;
}

.sv-rich-text ul,
.sv-rich-text ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.sv-rich-text ul {
    list-style-type: disc;
    list-style-position: outside;
}

.sv-rich-text ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.sv-rich-text ul ul {
    list-style-type: circle;
    margin-bottom: 0.5rem;
}

.sv-rich-text ol ol {
    list-style-type: lower-alpha;
}

.sv-rich-text li {
    margin-bottom: 0.4rem;
}

.sv-rich-text li > ul,
.sv-rich-text li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
}

.sv-rich-text a {
    color: #0d65d9;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.sv-rich-text a:hover {
    color: #0a4fad;
}

.sv-rich-text strong,
.sv-rich-text b {
    font-weight: 700;
    color: #071a28;
}

.sv-rich-text blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(13, 101, 217, 0.35);
    background: rgba(13, 101, 217, 0.06);
    color: #334155;
}

.sv-rich-text table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.sv-rich-text th,
.sv-rich-text td {
    border: 1px solid rgba(7, 26, 40, 0.12);
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.sv-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
