.rx-enc-llayout {
    --rx-toc-surface: #f7f8fa;
    --rx-toc-text: #222b37;
    --rx-toc-border: #ced6e0;
    --rx-toc-accent: #a42119;
}

html[data-rx-theme="dark"] .rx-enc-llayout {
    --rx-toc-surface: #17283a;
    --rx-toc-text: #f1f5fb;
    --rx-toc-border: #496079;
    --rx-toc-accent: #ffb4ac;
}

.rx-enc-llayout #statya > .rx-enc-ltoc,
.rx-enc-llayout > #rx-enc-side {
    background: var(--rx-toc-surface);
    border-color: var(--rx-toc-border);
    color: var(--rx-toc-text);
}

.rx-enc-llayout > #rx-enc-side {
    padding: 12px 12px 12px 18px;
}

.rx-enc-llayout #statya > .rx-enc-ltoc :is(b, ol, li, a),
.rx-enc-llayout > #rx-enc-side > :is(b, a) {
    color: var(--rx-toc-text) !important;
}

.rx-enc-llayout #statya > .rx-enc-ltoc ol {
    font-size: 1rem;
    line-height: 1.5;
}

.rx-enc-llayout :is(#statya > .rx-enc-ltoc, #rx-enc-side) a {
    overflow-wrap: anywhere;
    text-underline-offset: 0.18em;
}

.rx-enc-llayout :is(#statya > .rx-enc-ltoc, #rx-enc-side) a:is(:hover, :focus-visible) {
    color: var(--rx-toc-accent) !important;
    text-decoration: underline;
}

.rx-enc-llayout :is(#statya > .rx-enc-ltoc, #rx-enc-side) a:focus-visible {
    outline: 2px solid var(--rx-toc-accent);
    outline-offset: 2px;
}
