.lys-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lys-article-layout > .board-article-content, .lys-article-layout > article.prose { min-width: 0; width: 100%; box-sizing: border-box; }
.lys-toc { min-width: 0; color: #183b38; font: 400 .875rem/1.7 system-ui, sans-serif; }
.lys-toc details { border-block: 1px solid #d7dfd3; }
.lys-toc summary { padding: .7rem .2rem; min-height: 44px; box-sizing: border-box; cursor: pointer; font-weight: 600; }
.lys-toc nav { max-height: min(60vh, 34rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: .4rem .3rem 1rem; }
.lys-toc ol { list-style: none; margin: 0; padding: 0; }
.lys-toc li { margin: 0; padding: 0; }
.lys-toc a { display: block; padding: .5rem .6rem; color: #4d7265; text-decoration: none; overflow-wrap: anywhere; border-inline-start: 2px solid transparent; }
.lys-toc .lys-toc-level-3 a { padding-inline-start: 1.3rem; font-size: .82rem; }
.lys-toc .lys-toc-level-4 a { padding-inline-start: 2rem; font-size: .8rem; }
.lys-toc a[aria-current] { border-color: #28644e; color: #183b38; background: #eaf0e6; }
.lys-toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.lys-toc a:focus-visible, .lys-toc summary:focus-visible { outline: 2px solid #28644e; outline-offset: 2px; }
.lys-toc-original { display: none !important; }
.board-article-content .lys-toc-target, article.prose .lys-toc-target { scroll-margin-block-start: 5rem; }
@media (min-width: 1100px) {
  .lys-article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
  .lys-toc { position: sticky; top: 1.5rem; max-height: calc(100svh - 3rem); }
  .lys-toc nav { max-height: calc(100svh - 8rem); }
}
@media print {
  .lys-toc { display: none; }
  .lys-article-layout { display: block; }
}
