/* Code of conduct: retain the source document's hierarchy within the LDA theme. */
.lda-code-document .lda-detail-card__copy { padding-bottom: 0; }
.lda-code-document .lda-detail-card__content > .lda-code-section {
    margin-top: 0;
    margin-bottom: 0;
    padding: 64px var(--lda-reading-padding);
    border-top: 1px solid #e7e7e7;
}
.lda-code-section__inner { width: 100%; max-width: var(--lda-reading-width, 680px); margin-left: auto; margin-right: auto; }
.lda-code-document .lda-detail-card__content > .lda-code-section--introduction { padding-top: 0; border-top: 0; }
.lda-code-section--glossary { background: #edf3df; }
.lda-code-section .lda-code-section__inner > :first-child { margin-top: 0; }
.lda-code-section .lda-code-section__inner > :last-child { margin-bottom: 0; }
.lda-code-section h2 { font-size: var(--lda-type-h2); line-height: var(--lda-leading-h2); font-weight: 700; margin: 0 0 24px; }
.lda-code-section h3 { font-size: var(--lda-type-h3); line-height: var(--lda-leading-h3); font-weight: 700; margin: 0 0 24px; }
.lda-code-section h4 { font-size: var(--lda-type-h4); line-height: var(--lda-leading-h4); font-weight: 700; margin: 48px 0 24px; }
.lda-code-section h5 { font-size: var(--lda-type-h5); line-height: var(--lda-leading-h5); font-weight: 700; }
.lda-code-section h6 { font-size: var(--lda-type-h6); line-height: var(--lda-leading-h6); font-weight: 700; }
.lda-code-document .lda-detail-card__content .lda-code-lead,
.editor-styles-wrapper .lda-code-lead {
    font-size: 24px;
    line-height: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.lda-code-lead em { font-style: italic; }
.lda-code-document .lda-detail-card__content .lda-code-version,
.editor-styles-wrapper .lda-code-version { margin-bottom: 32px; color: #666; font-size: 16px; line-height: 24px; }
.lda-code-document .lda-detail-card__content .lda-code-small,
.editor-styles-wrapper .lda-code-small { font-size: 16px; line-height: 28px; }
.lda-code-document .lda-detail-card__content .lda-code-note,
.editor-styles-wrapper .lda-code-note {
    margin-top: 32px;
    margin-bottom: 0;
    padding: 32px;
    border-radius: 2px;
    background: #f8f9fa;
    font-size: 16px;
    line-height: 28px;
}
.lda-code-note > strong:first-child { display: block; margin-bottom: 12px; font-size: 20px; line-height: 28px; }
.lda-code-note > strong:first-child + br { display: none; }
.lda-code-section .lda-code-glossary { margin: 0; }
.lda-code-glossary dt { margin: 32px 0 8px; font-size: 20px; line-height: 28px; font-weight: 700; }
.lda-code-glossary dt:first-child { margin-top: 0; }
.lda-code-glossary dd { margin: 0; font-size: 20px; line-height: 32px; }
.lda-code-document .lda-detail-card__content .lda-code-footnote,
.editor-styles-wrapper .lda-code-footnote { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e7e7e7; color: #666; font-size: 16px; line-height: 24px; }
.lda-code-document .lda-detail-card__content .lda-code-section ul.wp-block-list,
.editor-styles-wrapper .lda-code-section ul.wp-block-list {
    padding-left: 32px;
    list-style-type: '—\2002';
    list-style-position: outside;
}
.lda-code-document .lda-detail-card__content .lda-code-section ul.wp-block-list > li,
.editor-styles-wrapper .lda-code-section ul.wp-block-list > li {
    display: list-item;
    padding-left: 0;
    list-style-type: inherit;
    list-style-position: outside;
}
.lda-code-section ul.wp-block-list > li::before { content: none; }
.lda-code-section [id], .lda-code-section[id] { scroll-margin-top: 32px; }
@media (max-width: 767px) {
    .lda-code-document .lda-detail-card__content > .lda-code-section { padding-top: 48px; padding-bottom: 48px; }
    .lda-code-document .lda-detail-card__content > .lda-code-section--introduction { padding-top: 0; }
    .lda-code-section h4 { margin-top: 40px; }
    .lda-code-document .lda-detail-card__content .lda-code-note,
    .editor-styles-wrapper .lda-code-note { padding: 24px; }
}
@media print {
    .lda-code-document .lda-detail-card__content > .lda-code-section { padding-top: 32px; padding-bottom: 32px; }
    .lda-code-section h2, .lda-code-section h3, .lda-code-section h4, .lda-code-glossary dt { break-after: avoid; }
    .lda-code-note { break-inside: avoid; }
}
