/* Contents list for blog posts (assets/js/post-toc.js). */
html { scroll-padding-top: 84px; scroll-padding-bottom: 48px; }

.has-js-toc .article-body nav.toc,
.has-js-toc .article-container > .toc { display: none; }

.side-toc { display: none; }
@media (min-width: 1200px) {
  .content { max-width: 1044px !important; }
  .post-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    gap: 44px;
    max-width: 1014px;
    margin: 0 auto;
  }
  .post-layout .article-container { margin: 0; }
  .side-toc {
    display: block;
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 46px 4px 16px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.25) transparent;
  }
  .side-toc::-webkit-scrollbar { width: 6px; }
  .side-toc::-webkit-scrollbar-track { background: transparent; }
  .side-toc::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.25); border-radius: 3px; }
  .toc-mobile { display: none; }
}
.side-toc-title {
  font: 700 0.72rem 'Roboto', sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 10px;
}
.side-toc ol, .toc-mobile ol { list-style: none; padding: 0; margin: 0; }
.side-toc > ol { border-left: 1px solid rgba(251, 191, 36, 0.15); }
.side-toc li a {
  display: block;
  padding: 4px 0 4px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font: 0.78rem/1.4 'Roboto', sans-serif;
  color: #8f8f8f !important;
  text-decoration: none;
}
.side-toc li ol { display: none; margin: 2px 0 6px; }
.side-toc li.is-open > ol { display: block; }
.side-toc li ol a { padding-left: 22px; font-size: 0.74rem; }
.side-toc li a:hover { color: #fcd34d !important; }
.side-toc li a.is-current { color: #fbbf24 !important; border-left-color: #fbbf24; }

.toc-mobile {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 4px;
  margin: 0 0 32px;
  font-family: 'Roboto', sans-serif;
}
.toc-mobile summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fbbf24;
}
.toc-mobile summary:focus-visible { outline: 2px solid #fbbf24; outline-offset: -2px; }
.toc-mobile > ol { padding: 0 16px 14px; }
.toc-mobile li a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #d4d4d4 !important;
  text-decoration: none;
}
.toc-mobile li ol { padding-left: 14px; }
.toc-mobile li ol a { font-size: 0.84rem; color: #a8a8a8 !important; }

