/* LEKTIVO — Public document layout, independent of internal HUB sidebar. */
:root {
    --doc-navy: #0f172a;
    --doc-blue: #2563eb;
    --doc-cyan: #0ea5e9;
    --doc-ink: #26364a;
}
html {
    min-height: 100%;
}
body.lektivo-document-page {
    margin: 0;
    padding: 0 !important;
    width: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--doc-navy);
    color: var(--doc-ink);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.lektivo-document-page::before {
    content: none !important;
}
.lektivo-document-page .lektivo-document-shell {
    isolation: isolate;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(24px, 5vw, 70px) 16px;
    background: radial-gradient(ellipse at 12% 8%, #22416a 0, transparent 45%),
        radial-gradient(ellipse at 90% 88%, #123d60 0, transparent 42%),
        linear-gradient(160deg, #101c32 0%, #020617 100%);
}
.lektivo-document-page .lektivo-document-shell::before,
.lektivo-document-page .lektivo-document-shell::after {
    content: '';
    position: absolute;
    width: min(42vw, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .27;
    z-index: -1;
    pointer-events: none;
}
.lektivo-document-page .lektivo-document-shell::before {
    top: -140px;
    left: -140px;
    background: var(--doc-blue);
}
.lektivo-document-page .lektivo-document-shell::after {
    bottom: -140px;
    right: -140px;
    background: var(--doc-cyan);
}
.lektivo-document-page .lektivo-document-paper {
    width: min(100%, 940px);
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    color: var(--doc-ink);
    box-shadow: 0 24px 78px rgba(0,0,0,.36), 0 0 45px rgba(37,99,235,.12);
    overflow: hidden;
}
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    .lektivo-document-page .lektivo-document-paper {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}
.lektivo-document-page .lektivo-document-heading {
    padding: clamp(26px, 4vw, 44px) clamp(22px, 5vw, 62px) 25px;
    border-bottom: 1px solid #dce5ef;
}
.lektivo-document-page .lektivo-document-brand {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 20px;
    color: #315e90;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.lektivo-document-page .lektivo-document-heading h1 {
    color: #132d4d;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin: 0;
}
.lektivo-document-page .lektivo-document-content {
    padding: clamp(24px, 4vw, 46px) clamp(22px, 5vw, 62px) clamp(30px, 5vw, 60px);
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.lektivo-document-page .lektivo-document-content h1,
.lektivo-document-page .lektivo-document-content h2,
.lektivo-document-page .lektivo-document-content h3,
.lektivo-document-page .lektivo-document-content h4 {
    color: #173657;
    line-height: 1.35;
    font-weight: 700;
    margin: 1.8em 0 .65em;
}
.lektivo-document-page .lektivo-document-content h1 {
    font-size: 1.65rem;
}
.lektivo-document-page .lektivo-document-content h2 {
    font-size: 1.36rem;
}
.lektivo-document-page .lektivo-document-content h3 {
    font-size: 1.12rem;
}
.lektivo-document-page .lektivo-document-content h4 {
    font-size: 1rem;
}
.lektivo-document-page .lektivo-document-content :is(h1,h2,h3,h4):first-child {
    margin-top: 0;
}
.lektivo-document-page .lektivo-document-content :is(p, ul, ol) {
    margin: 0 0 1.1rem;
}
.lektivo-document-page .lektivo-document-content :is(ul,ol) {
    padding-left: 1.5rem;
}
.lektivo-document-page .lektivo-document-content li {
    margin-bottom: .35rem;
}
.lektivo-document-page .lektivo-document-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lektivo-document-page .lektivo-document-content img {

    height: 50px;
}
.lektivo-document-page .lektivo-document-content table {
    width: 100%;
}
.lektivo-document-page .lektivo-document-content :is(th,td) {
    color: inherit;
}
.lektivo-document-page .lektivo-document-foot {
    padding: 18px clamp(22px, 5vw, 62px);
    border-top: 1px solid #dce5ef;
    background: rgba(243,247,251,.7);
    color: #64748b;
    font-size: .85rem;
}
/* If legacy document markup already adds its own wrapper/card, neutralize them
   to avoid nesting two visible cards and backgrounds. */
.lektivo-document-page .lektivo-document-content .hub-page-wrapper {
    min-height: 0;
    background: transparent !important;
    color: inherit;
    padding: 0;
    overflow: visible;
}
.lektivo-document-page .lektivo-document-content .hub-bg::before,
.lektivo-document-page .lektivo-document-content .hub-bg::after {
    content: none !important;
}
.lektivo-document-page .lektivo-document-content .hub-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    color: inherit;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}
.lektivo-document-page .lektivo-document-content :is(.hub-card-header,.hub-card-body,.hub-card-footer) {
    padding: 0;
    background: transparent;
    border: 0;
}
@media (max-width: 600px) {
    .lektivo-document-page .lektivo-document-shell {
        padding: 16px 10px;
    }
    .lektivo-document-page .lektivo-document-paper {
        border-radius: 18px;
    }
    .lektivo-document-page .lektivo-document-content {
        font-size: .97rem;
        line-height: 1.7;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lektivo-document-page *, .lektivo-document-page *::before, .lektivo-document-page *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
@media print {
    body.lektivo-document-page {
        background: white !important;
        color: black !important;
    }
    .lektivo-document-page .lektivo-document-shell {
        padding: 0;
        background: white !important;
        min-height: 0;
    }
    .lektivo-document-page .lektivo-document-shell::before,
    .lektivo-document-page .lektivo-document-shell::after {
        display: none;
    }
    .lektivo-document-page .lektivo-document-paper {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: white !important;
        backdrop-filter: none;
    }
    .lektivo-document-page .lektivo-document-heading,
    .lektivo-document-page .lektivo-document-content {
        padding-left: 0;
        padding-right: 0;
    }
    .lektivo-document-page .lektivo-document-content h2 {
        break-after: avoid;
    }
}
