/*
 * Text pages (Aixor redesign 2026-10-05): the text left, the contents list as an Aixor sidebar
 * widget on the right (open on wide screens, a closed row on narrow ones - the script in
 * patterns/tekstas.php decides).
 */
.rd-textpage .rd-textpage__body { flex: 1 1 auto; min-width: 0; max-width: 820px; }
.rd-textpage .custom-row { gap: 76px; justify-content: space-between; }
.rd-textpage .rd-textpage__rail { width: 380px; }
.rd-toc { display: block; }
.rd-toc > summary { list-style: none; cursor: pointer; }
.rd-toc > summary::-webkit-details-marker { display: none; }
.rd-toc__list { display: flex; flex-direction: column; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.rd-toc__list li { counter-increment: toc; }
.rd-toc__list a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #333; color: var(--secondary); font-size: 16px; line-height: 24px; transition: color .3s, padding .3s; }
.rd-toc__list li:last-child a { border-bottom: 0; }
.rd-toc__list a::before { content: counter(toc, upper-roman) "."; color: var(--tertiary); min-width: 32px; }
.rd-toc__list a:hover, .rd-toc__list a[aria-current="true"] { color: var(--primary); }
.rd-toc__list a[aria-current="true"] { padding-left: 8px; }
.rd-textpage .ax-prose { color: var(--secondary); font-size: 18px; line-height: 30px; }
.rd-textpage .ax-prose h2 { scroll-margin-top: 32px; }
@media (max-width: 1439px) {
  .rd-textpage .custom-row { flex-direction: column-reverse; gap: 40px; }
  .rd-textpage .rd-textpage__rail { width: 100%; }
  .rd-toc__list { margin-top: 20px; }
}
.rd-toc.sidebar-widget { display: block; padding: 40px 34px; }
.rd-toc .rd-toc__label { display: flex; align-items: center; gap: 12px; }
.rd-textpage .ax-text-wrap { padding: 0; }
