/* White reading paper remains readable independently of the outer theme. */
.rich-content {
    --text: #152435;
    --text-soft: #34465a;
    --muted: #53667a;
    --line: #dbe3eb;
    --surface: #fff;
    --surface-strong: #fff;
    --surface-muted: #f3f6f9;
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
    color: var(--text-soft);
    background: #fff;
    border: 1px solid #dbe3eb;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgb(7 17 31 / 7%);
    color-scheme: light;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content strong {
    color: #152435;
}

.rich-content a:not(.button) { color: #087476; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content img,
.article-content-section .rich-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 460px);
    max-height: 340px;
    margin: 28px auto;
    object-fit: contain;
}

.rich-content figure,
.article-content-section .rich-content figure {
    max-width: 100%;
    margin-inline: 0;
}

.rich-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.rich-content th,
.rich-content td { padding: 12px; border: 1px solid #dbe3eb; }
.rich-content th { color: #152435; background: #f3f6f9; }
.rich-content .content-notice { color: #34465a; background: #f3f6f9; }
.rich-content .button-dark { color: #fff; }
.rich-content .button-outline { color: #152435; }
.article-content-section,
.detail-section,
.legal-document-page { background: var(--paper); }
.article-content-section .article-shell { max-width: 1040px; }
.article-hero-cover {
    width: fit-content;
    max-width: 100%;
    max-height: 340px;
    margin: 36px auto 0;
    aspect-ratio: auto;
    box-shadow: 0 10px 26px rgb(7 17 31 / 10%);
}
.article-hero-cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 520px);
    max-height: 338px;
    object-fit: contain;
}
.site-image { display: contents; }

@media (max-width: 640px) {
    .rich-content { padding: 24px 20px; border-radius: 12px; font-size: 16px; line-height: 1.85; }
    .rich-content img,
    .article-content-section .rich-content img { max-width: min(100%, 300px); max-height: 280px; margin-block: 24px; }
    .article-hero-cover { max-height: 280px; }
    .article-hero-cover img { max-width: min(100%, 300px); max-height: 278px; }
    .rich-content > h2,
    .rich-content section h2 { font-size: 26px; }
}
