/* Rich text produced by Gutenberg, the Classic Editor, and drawer descriptions. */
.dsn-rich-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

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

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

.dsn-rich-content :where(h1, h2, h3, h4, h5, h6) {
    margin-top: 1.75em;
    margin-bottom: 0.65em;
    color: #111827;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

.dsn-rich-content :where(h1) {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.dsn-rich-content :where(h2) {
    font-size: clamp(1.625rem, 4vw, 2.125rem);
}

.dsn-rich-content :where(h3) {
    font-size: clamp(1.375rem, 3vw, 1.625rem);
}

.dsn-rich-content :where(h4) {
    font-size: 1.25rem;
}

.dsn-rich-content :where(h5) {
    font-size: 1.125rem;
}

.dsn-rich-content :where(h6) {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dsn-rich-content :where(p, ul, ol, blockquote, figure, table, pre, hr) {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.dsn-rich-content :where(ul, ol) {
    padding-left: 1.5rem;
}

.dsn-rich-content :where(ul) {
    list-style: disc;
}

.dsn-rich-content :where(ol) {
    list-style: decimal;
}

.dsn-rich-content :where(li) {
    margin: 0.35rem 0;
    padding-left: 0.25rem;
}

.dsn-rich-content :where(li > ul, li > ol) {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.dsn-rich-content :where(a) {
    color: #005f9c;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.dsn-rich-content :where(a:hover) {
    color: #004b7a;
}

.dsn-rich-content :where(a:focus-visible) {
    border-radius: 0.125rem;
    outline: 3px solid rgb(0 120 168 / 25%);
    outline-offset: 2px;
}

.dsn-rich-content :where(strong, b) {
    color: #1f2937;
    font-weight: 700;
}

.dsn-rich-content :where(blockquote) {
    padding: 0.75rem 0 0.75rem 1.25rem;
    border-left: 4px solid #0078a8;
    color: #4b5563;
    font-style: italic;
}

.dsn-rich-content :where(blockquote p:last-child) {
    margin-bottom: 0;
}

.dsn-rich-content :where(hr) {
    height: 1px;
    border: 0;
    background: #d1d5db;
}

.dsn-rich-content :where(img) {
    height: auto;
    border-radius: 0.375rem;
}

.dsn-rich-content :where(figure) {
    max-width: 100%;
}

.dsn-rich-content :where(figcaption) {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.dsn-rich-content :where(table) {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.dsn-rich-content :where(th, td) {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    text-align: left;
    vertical-align: top;
}

.dsn-rich-content :where(th) {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 700;
}

.dsn-rich-content :where(code) {
    border-radius: 0.25rem;
    background: #f3f4f6;
    padding: 0.15em 0.35em;
    color: #9f1239;
    font-size: 0.875em;
}

.dsn-rich-content :where(pre) {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 0.5rem;
    background: #111827;
    padding: 1rem;
    color: #f9fafb;
    line-height: 1.6;
}

.dsn-rich-content :where(pre code) {
    background: transparent;
    padding: 0;
    color: inherit;
}

.dsn-rich-content :where(.wp-block-button__link) {
    display: inline-block;
    border-radius: 0.375rem;
    background: #005d99;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.dsn-rich-content :where(.wp-block-button__link:hover) {
    background: #004b7a;
    color: #fff;
}

.dsn-rich-content :where(.alignwide) {
    max-width: 80rem;
}

.dsn-rich-content :where(.aligncenter) {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.dsn-rich-content :where(.alignleft) {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.dsn-rich-content :where(.alignright) {
    float: right;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.dsn-rich-content::after {
    display: table;
    clear: both;
    content: '';
}

@media (max-width: 640px) {
    .dsn-rich-content :where(.alignleft, .alignright) {
        float: none;
        margin-right: 0;
        margin-left: 0;
    }
}
