/* Loan editor content: restore typography removed by the site's global reset.
   Keep these defaults scoped and avoid !important so editor formatting wins. */
.loan-detail-section > .container > [class*="col-"] {
    min-width: 0;
}

.loan-detail-section .loan-wrap {
    width: 100%;
    min-width: 0;
    max-width: 960px;
    margin-inline: auto;
    box-sizing: border-box;
}

.loan-detail-section .loan-content {
    min-width: 0;
    color: #333333;
    font-family: 'Chivo', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.loan-detail-section .loan-content :where(p, li, span, a, td, th, blockquote, em, i, u) {
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.loan-detail-section .loan-content p {
    margin: 0 0 1.25rem;
}

.loan-detail-section .loan-content :where(h1, h2, h3, h4, h5, h6) {
    color: #006150;
    font-weight: 700;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
}

.loan-detail-section .loan-content h1 { font-size: 2.25rem; }
.loan-detail-section .loan-content h2 { font-size: 1.75rem; }
.loan-detail-section .loan-content h3 { font-size: 1.25rem; }
.loan-detail-section .loan-content :where(h4, h5, h6) { font-size: 1.125rem; }
.loan-detail-section .loan-content > :first-child { margin-top: 0; }

.loan-detail-section .loan-content :where(strong, b) { font-weight: 700; }
.loan-detail-section .loan-content :where(em, i) { font-style: italic; }

.loan-detail-section .loan-content :where(ul, ol) {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.loan-detail-section .loan-content ul { list-style: disc outside; }
.loan-detail-section .loan-content ol { list-style: decimal outside; }
.loan-detail-section .loan-content li { margin-bottom: .65rem; }
.loan-detail-section .loan-content li::marker { color: #006150; }
.loan-detail-section .loan-content li > :where(ul, ol) { margin: .65rem 0 0; }

.loan-detail-section .loan-content a {
    color: #006150;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.loan-detail-section .loan-content a:hover { color: #00483c; }
.loan-detail-section :where(a, [tabindex]):focus-visible {
    outline: 3px solid #006150;
    outline-offset: 4px;
}

/* The table scrolls independently instead of widening the page on phones. */
.loan-detail-section .loan-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #cdded9;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
}

.loan-detail-section .loan-content :where(th, td) {
    padding: .9rem 1rem;
    min-width: 6rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #dce7e3;
}

.loan-detail-section .loan-content th {
    background-color: #006150;
    color: #ffffff;
    font-weight: 700;
}

.loan-detail-section .loan-content tbody tr:nth-child(even) { background-color: #f0f7f4; }
.loan-detail-section .loan-content tbody tr:last-child td { border-bottom: 0; }
.loan-detail-section .loan-content blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid #006150;
    background-color: #f0f7f4;
}

.loan-detail-section .loan-content img {
    max-width: 100%;
    width: auto;
    height: auto;
}

@media (max-width: 599px) {
    .loan-detail-section .loan-content h1 { font-size: 1.875rem; }
    .loan-detail-section .loan-content h2 { font-size: 1.5rem; }
    .loan-detail-section .loan-content :where(h1, h2, h3, h4, h5, h6) {
        margin-top: 2rem;
    }
}
