.iv-rich { margin-top: calc(var(--u) * 15); font: 400 var(--iv-fs-m)/max(1.75em, calc(var(--u) * 30)) var(--iv-tc); color: var(--iv-ink); overflow-wrap: anywhere; }
.iv-rich :where(p, ul, ol, blockquote, pre) { margin-top: 0; margin-bottom: max(10px, calc(var(--u) * 16)); }
.iv-rich :where(figure, .wp-caption, .rp-embed, .wp-video, .gallery, .iv-rich-table) { margin-top: calc(var(--u) * 24); margin-bottom: calc(var(--u) * 24); }
.iv-rich > :first-child { margin-top: 0; }
.iv-rich > :last-child { margin-bottom: 0; }
.iv-rich h3 { margin: calc(var(--u) * 36) 0 calc(var(--u) * 12); font: 500 max(1rem, calc(var(--u) * 18))/1.6 var(--iv-tc); }
.iv-rich h4 { margin: calc(var(--u) * 28) 0 calc(var(--u) * 8); font: 500 var(--iv-fs-m)/1.75 var(--iv-tc); color: var(--iv-mint-ink); }
.iv-rich ul > li { position: relative; padding-left: 1em; }
.iv-rich ul > li::before { content: '・'; position: absolute; left: 0; top: 0; }
.iv-rich ol { counter-reset: iv-rich-ol; }
.iv-rich ol > li { position: relative; padding-left: 1.6em; counter-increment: iv-rich-ol; }
.iv-rich ol > li::before { content: counter(iv-rich-ol) '.'; position: absolute; left: 0; top: 0; }
.iv-rich li + li { margin-top: max(4px, calc(var(--u) * 8)); }
.iv-rich li > :is(ul, ol) { margin: max(4px, calc(var(--u) * 8)) 0 0; }
.iv-rich blockquote { margin-left: 0; margin-right: 0; padding-left: 1.2em; border-left: 2px solid var(--iv-mint); color: var(--iv-soft); }
.iv-rich hr { height: 0; margin: calc(var(--u) * 40) 0; border: 0; border-top: 1px solid var(--iv-line); }
.iv-rich pre { white-space: pre-wrap; }
.iv-rich :is(figcaption, .wp-caption-text) { margin-top: .6em; font: 400 var(--iv-fs-xs)/1.6 var(--iv-tc); color: var(--iv-soft); }
.iv-rich .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(8px, calc(var(--u) * 12)); }
.iv-rich .gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.iv-rich .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.iv-rich :is(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iv-rich .gallery-item { margin: 0; }
.iv-rich-table { overflow-x: auto; }
.iv-rich table { width: calc(100% + 1px); margin-left: -1px; border-collapse: separate; border-spacing: 0; font: 400 var(--iv-fs-m)/max(1.6em, calc(var(--u) * 28)) var(--iv-tc); }
.iv-rich table.rp-tb-frame { width: 100%; margin-left: 0; border-right: 1px solid var(--tb-line, var(--iv-line)); }
.iv-rich caption { padding-bottom: .6em; text-align: left; font-weight: 500; }
.iv-rich :is(th, td) { min-width: 6em; padding: max(10px, calc(var(--u) * 16)) max(10px, calc(var(--u) * 20)); border-bottom: 1px solid var(--tb-line, var(--iv-line)); border-left: 1px solid var(--tb-line, var(--iv-line)); background: #fff; text-align: left; vertical-align: top; font-weight: 400; transition: background-color .3s ease; }
.iv-rich thead th { border-bottom: 0; border-left: 1px solid #fff; background: var(--iv-mint); color: #fff; font-weight: 500; vertical-align: middle; }
.iv-rich thead tr:first-child > th:first-child { border-left: 0; }
.iv-rich table.rp-tb-frame thead tr:first-child > th:first-child { border-left: 1px solid var(--tb-line, var(--iv-line)); }
.iv-rich tbody th { background: var(--iv-cell); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
    .iv-rich tbody tr:hover td { background: #f1f8f6; }
    .iv-rich tbody tr:hover th { background: #e9f3f0; }
}
.iv-prose.rp-rich :where(figure, .wp-caption, .rp-embed, .wp-video, .gallery, iframe.rp-frame) { margin-top: calc(var(--u) * 24); margin-bottom: calc(var(--u) * 24); }
.iv-prose.rp-rich > :first-child { margin-top: 0; }
.iv-prose.rp-rich > :last-child { margin-bottom: 0; }
.iv-prose.rp-rich :is(figcaption, .wp-caption-text) { margin-top: .6em; font: 400 var(--iv-fs-xs)/1.6 var(--iv-tc); color: var(--iv-soft); }
.iv-prose.rp-rich .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(8px, calc(var(--u) * 12)); }
.iv-prose.rp-rich .gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.iv-prose.rp-rich .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.iv-prose.rp-rich :is(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iv-prose.rp-rich .gallery-item { margin: 0; }
.iv-prose.rp-rich div.is-bullet { position: relative; padding-left: 1em; }
.iv-prose.rp-rich div.is-bullet::before { content: '・'; position: absolute; left: 0; top: 0; }
