/* Northpoint Code Library 1.4.6 - shared screen/print legal paragraph layout.
 * Literal markers are content, not CSS counters. Existing div imports and new
 * paragraph/span imports are both supported without rewriting stored code.
 */
.ncl-code-text {
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: start;
}
.ncl-code-text p,
.ncl-code-text .ncl-legal-paragraph,
.ncl-code-text .ncl-legal-definition {
    margin: 0 0 .85em;
    padding: 0;
    text-indent: 0;
}
.ncl-code-text .ncl-legal-item {
    display: grid;
    grid-template-columns: minmax(2.25em, max-content) minmax(0, 1fr);
    column-gap: .6em;
    align-items: baseline;
    margin: 0 0 .85em;
    padding: 0;
    text-indent: 0;
    text-align: start;
    break-inside: auto;
}
.ncl-code-text .ncl-legal-marker {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    color: var(--ncl-muted, #526274);
    font: 700 .9em/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
}
.ncl-code-text .ncl-legal-item-text {
    display: block;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}
/* WordPress may wrap the old marker span in its own paragraph. */
.ncl-code-text .ncl-legal-item > p {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 0;
}
.ncl-code-text .ncl-legal-item > br,
.ncl-code-text .ncl-legal-item > p:empty { display: none; }
.ncl-code-text .ncl-legal-item-text > p:last-child { margin-bottom: 0; }
.ncl-code-text .ncl-legal-definition strong,
.ncl-code-text .ncl-legal-lead,
.ncl-code-text .ncl-legal-subheading {
    color: var(--ncl-ink, #203044);
    font-weight: 700;
}
.ncl-code-text .ncl-legal-level-1 { margin-inline-start: 1.4em; }
.ncl-code-text .ncl-legal-level-2 { margin-inline-start: 2.8em; }
.ncl-code-text .ncl-legal-level-3 { margin-inline-start: 4.2em; }
.ncl-code-text .ncl-legal-level-4 { margin-inline-start: 5.6em; }
.ncl-code-text .ncl-legal-item + .ncl-legal-paragraph { margin-top: .2em; }
.ncl-code-text ol,
.ncl-code-text ul {
    margin: 0 0 .85em;
    padding-inline-start: 1.65em;
}
.ncl-code-text li { display: list-item; margin: .35em 0; }
.ncl-code-text ol:not([type]) { list-style-type: decimal; }
.ncl-code-text ul:not([type]) { list-style-type: disc; }
.ncl-code-text li > p:first-child { margin-top: 0; }
.ncl-code-text li > p:last-child { margin-bottom: 0; }
.ncl-code-text li > ol,
.ncl-code-text li > ul { margin-top: .45em; }
.ncl-code-text :is(h2, h3, h4, h5, h6) {
    margin: 1.25em 0 .5em;
    line-height: 1.35;
    break-after: avoid;
}
.ncl-code-text blockquote {
    margin: 1em 0;
    padding: .4em 1em;
    border-inline-start: 3px solid var(--ncl-border, #d7e0e8);
}
.ncl-code-text :is(img, video, iframe) { max-width: 100%; height: auto; }
.ncl-code-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: .94em;
}
.ncl-code-text :is(th, td) {
    padding: .5em .65em;
    border: 1px solid var(--ncl-border, #d7e0e8);
    vertical-align: top;
}
.ncl-code-text th { text-align: start; background: var(--ncl-soft, #f3f6f8); }
.ncl-code-text :is(pre, code) { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
@media screen and (max-width: 700px) {
    .ncl-code-text .ncl-legal-item { grid-template-columns: minmax(1.85em, max-content) minmax(0, 1fr); column-gap: .45em; }
    .ncl-code-text .ncl-legal-level-1 { margin-inline-start: .65em; }
    .ncl-code-text .ncl-legal-level-2 { margin-inline-start: 1.3em; }
    .ncl-code-text .ncl-legal-level-3 { margin-inline-start: 1.95em; }
    .ncl-code-text .ncl-legal-level-4 { margin-inline-start: 2.6em; }
}
@media print {
    .ncl-code-text { max-width: none; }
    .ncl-code-text .ncl-legal-marker { color: #000; }
    .ncl-code-text p, .ncl-code-text li { orphans: 3; widows: 3; }
    .ncl-code-text table { display: table; width: 100%; overflow: visible; table-layout: fixed; }
    .ncl-code-text thead { display: table-header-group; }
}
