/* Lagrantis OOXML IR viewer — read-only display styles. M11 baseline. */

.lx-doc-viewer {
    background: #fff;
    color: #111827;
    padding: 1.5rem;
    overflow: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
}

.lx-doc-viewer-empty {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 4rem 1rem;
}

.lx-doc {
    max-width: 8.5in;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lx-doc .lx-page-header,
.lx-doc .lx-page-footer {
    color: #6b7280;
    font-size: 0.875em;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    margin: 0 0 1rem 0;
}

.lx-doc .lx-page-footer {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0 0 0;
}

.lx-doc .lx-body {
    padding: 0;
}

.lx-p {
    /* Default body spacing matching Word's "Normal" style (8pt after, 1.08 line). */
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.15;
}

/* Heading styles — Word's defaults adjusted for screen readability.
   These rules win over `.lx-p` because the cascade evaluates the more-specific
   class set later, and they only set typography (no layout overrides).
*/
.lx-style-Title {
    font-size: 26pt;
    font-weight: 300;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.lx-style-Subtitle {
    font-size: 14pt;
    font-weight: 400;
    color: #4b5563;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.lx-style-Heading1,
.lx-style-heading-1 {
    font-size: 20pt;
    font-weight: 600;
    color: #2563eb;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.2;
}

.lx-style-Heading2,
.lx-style-heading-2 {
    font-size: 16pt;
    font-weight: 600;
    color: #2563eb;
    margin: 0.625rem 0 0.4rem 0;
    line-height: 1.2;
}

.lx-style-Heading3,
.lx-style-heading-3 {
    font-size: 13pt;
    font-weight: 600;
    color: #1d4ed8;
    margin: 0.5rem 0 0.3rem 0;
    line-height: 1.25;
}

.lx-style-Heading4,
.lx-style-heading-4 {
    font-size: 12pt;
    font-weight: 600;
    color: #374151;
    font-style: italic;
    margin: 0.5rem 0 0.25rem 0;
}

.lx-style-Heading5,
.lx-style-heading-5,
.lx-style-Heading6,
.lx-style-heading-6 {
    font-size: 11pt;
    font-weight: 600;
    color: #4b5563;
    margin: 0.4rem 0 0.2rem 0;
}

.lx-style-Quote,
.lx-style-IntenseQuote {
    border-left: 3px solid #93c5fd;
    padding-left: 1rem;
    color: #4b5563;
    font-style: italic;
    margin: 0.75rem 0;
}

.lx-style-Caption {
    font-size: 9pt;
    color: #6b7280;
    font-style: italic;
    margin: 0.25rem 0 0.5rem 0;
}

.lx-style-ListParagraph {
    margin: 0 0 0.25rem 0;
}

/* Lists — when paragraphs carry a numId, render a counter-driven marker so the
   reader sees bullets/numbers without us pre-emitting <ul>/<ol> wrappers (which
   would break run-content position attributes the editor depends on).
   ::before sits inline-block before the paragraph's first run.
*/
.lx-doc-viewer {
    counter-reset: lx-list-0 lx-list-1 lx-list-2 lx-list-3 lx-list-4 lx-list-5;
}

.lx-p[data-lx-numid] {
    padding-left: 0.5rem;
    margin-left: 1.5rem;
    position: relative;
}

.lx-p[data-lx-numid][data-lx-ilvl="0"]::before { content: "•"; counter-increment: lx-list-0; left: -1.25rem; }
.lx-p[data-lx-numid][data-lx-ilvl="1"]::before { content: "◦"; counter-increment: lx-list-1; left: -1.25rem; }
.lx-p[data-lx-numid][data-lx-ilvl="2"]::before { content: "▪"; counter-increment: lx-list-2; left: -1.25rem; }
.lx-p[data-lx-numid][data-lx-ilvl="3"]::before { content: "▫"; counter-increment: lx-list-3; left: -1.25rem; }
.lx-p[data-lx-numid]:not([data-lx-ilvl])::before { content: "•"; left: -1.25rem; }

.lx-p[data-lx-numid]::before {
    position: absolute;
    color: #4b5563;
    font-size: 0.95em;
    line-height: inherit;
}

.lx-p[data-lx-numid][data-lx-ilvl="1"] { margin-left: 3rem; }
.lx-p[data-lx-numid][data-lx-ilvl="2"] { margin-left: 4.5rem; }
.lx-p[data-lx-numid][data-lx-ilvl="3"] { margin-left: 6rem; }

.lx-r {
    /* runs are inline; no defaults — every property comes from CssBuilder */
}

.lx-pre {
    white-space: pre;
}

.lx-tab {
    display: inline-block;
    width: 0.5in;
}

.lx-pagebreak {
    display: block;
    border-top: 2px dashed #d1d5db;
    margin: 1rem 0;
    height: 0;
}

.lx-colbreak {
    display: inline-block;
    width: 100%;
    height: 0;
    break-after: column;
}

.lx-tbl {
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.lx-tbl td {
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.5rem;
    vertical-align: top;
}

.lx-link {
    color: #2563eb;
    text-decoration: underline;
}

.lx-ins {
    color: #15803d;
    text-decoration: underline;
    background-color: rgba(34, 197, 94, 0.1);
}

.lx-del {
    color: #b91c1c;
    text-decoration: line-through;
    background-color: rgba(239, 68, 68, 0.1);
}

.lx-move-from {
    color: #b45309;
    text-decoration: line-through;
}

.lx-move-to {
    color: #b45309;
    text-decoration: underline;
}

.lx-bm-start,
.lx-bm-end,
.lx-cm-start,
.lx-cm-end,
.lx-fld-marker {
    display: inline-block;
    width: 0;
    overflow: hidden;
}

.lx-img {
    display: inline-block;
    max-width: 100%;
}

.lx-img-deferred {
    display: inline-block;
    background: #f3f4f6;
    border: 1px dashed #9ca3af;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
    font-size: 0.875em;
}

.lx-sect {
    border-top: 1px dotted #9ca3af;
    margin: 0.5rem 0;
    padding-top: 0.25rem;
    font-size: 0.75em;
    color: #6b7280;
}

.lx-sdt {
    border: 1px dashed #93c5fd;
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
    margin: 0.125rem 0;
    background: rgba(59, 130, 246, 0.04);
}

.lx-sdt-inline {
    border-bottom: 1px dotted #93c5fd;
    background: rgba(59, 130, 246, 0.04);
}

/* Pipeline-vs-ribbon gap badge — surfaces M0–M10 features the existing ribbon doesn't yet edit. */
.lx-new-feature {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 0.25rem;
    padding: 0 0.25rem;
    font-size: 0.75em;
    font-weight: 500;
    margin: 0 0.125rem;
    cursor: help;
}

.lx-tbl > caption.lx-new-feature {
    text-align: left;
    margin-bottom: 0.25rem;
    font-style: normal;
}
