/* Niepołomicki Bartnik: opis lewo + spis prawo; bez paska przewijania wewnątrz spisu. */
.woocommerce .nb-st-layout,
.nb-st-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 204px);
  gap: clamp(28px, 5.5vw, 72px);
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.nb-st-layout *, .nb-st-layout *::before, .nb-st-layout *::after { box-sizing: border-box; }
.nb-st-layout .nb-st-description { min-width: 0; max-width: 720px; }
.nb-st-layout .nb-st-article { font-size: inherit; line-height: 1.7; color: inherit; overflow-wrap: break-word; }
.nb-st-layout .nb-st-article > :first-child { margin-top: 0; }
.nb-st-layout .nb-st-article h2 {
  scroll-margin-top: 112px;
  color: #103c34;
  font-size: clamp(19px, 1.75vw, 23px);
  line-height: 1.35;
  font-weight: 700;
  margin: 27px 0 12px;
}
.nb-st-layout .nb-st-article h2:not(:first-child) { border-top: 1px solid #ece9e1; padding-top: 24px; }
.nb-st-layout .nb-st-article h3 { color: #164539; scroll-margin-top: 112px; }
.nb-st-layout .nb-st-article p { margin: 0 0 16px; }
.nb-st-layout .nb-st-article ul, .nb-st-layout .nb-st-article ol { margin: 12px 0 22px 22px; padding: 0; }
.nb-st-layout .nb-st-article li { margin-bottom: 7px; }
.nb-st-layout .nb-st-article a { overflow-wrap: anywhere; }
.nb-st-layout .nb-st-sidebar { border-left: 1px solid #e6e3da; padding-left: 16px; min-width: 0; align-self: stretch; }
/* Kluczowa zmiana v1.1.0: brak overflow-y:auto i max-height. Nawet jeśli CSS
   motywu lub cache zachował poprzednie deklaracje, wymuś brak suwaka. */
.woocommerce .nb-st-layout .nb-st-sticky,
.nb-st-layout .nb-st-sticky {
  position: sticky;
  top: var(--nb-st-stick-offset, 96px);
  padding-top: 12px;
  padding-bottom: 20px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto;
  scrollbar-width: none;
}
.nb-st-layout .nb-st-sticky::-webkit-scrollbar { display: none; }
.nb-st-layout .nb-st-label { font-size: 10px; font-weight: 750; letter-spacing: .10em; color: #9a752f; margin: 0 0 10px; }
.nb-st-layout .nb-st-toc-list { padding: 0; margin: 0; list-style: none; counter-reset: none; max-height: none !important; overflow: visible !important; }
.nb-st-layout .nb-st-toc-list li { list-style: none; margin: 0 0 4px; padding: 0; }
.nb-st-layout .nb-st-toc-link {
  display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 7px;
  text-decoration: none !important; color: #56685f; border-radius: 7px; border-left: 2px solid transparent;
  padding: 8px 7px 8px 3px; font-size: 12px; font-weight: 400; line-height: 1.5;
  transition: background-color .15s ease, color .15s ease;
}
.nb-st-layout .nb-st-toc-link:hover, .nb-st-layout .nb-st-toc-link:focus-visible { background: #f7f7f0; color: #164a3a; }
.nb-st-layout .nb-st-toc-link.is-active { background: #f4f3eb; color: #193e33; border-left-color: #c99845; }
.nb-st-layout .nb-st-toc-number { color: #a78655; font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.nb-st-layout .nb-st-toc-text { overflow-wrap: anywhere; }
.nb-st-layout .nb-st-back { display: inline-block; color: #215a41; text-decoration: none !important; font-size: 12px; font-weight: 600; margin-top: 15px; padding: 16px 3px 3px; border-top: 1px solid #e6e3da; width: 100%; }
.nb-st-layout .nb-st-back:hover, .nb-st-layout .nb-st-back:focus-visible { text-decoration: underline !important; }
.nb-st-layout .nb-st-mobile-toc { display: none; }
@media (max-width: 860px) {
  .woocommerce .nb-st-layout, .nb-st-layout { display: block; }
  .nb-st-layout .nb-st-description { max-width: none; }
  .nb-st-layout .nb-st-sidebar { display: none; }
  .nb-st-layout .nb-st-mobile-toc {
    display: block; margin: 0 0 22px; padding: 11px 14px; background: #f8f7f1;
    border: 1px solid #e4e2d8; border-radius: 9px;
  }
  .nb-st-layout .nb-st-mobile-toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: #25493d; font-size: 14px; font-weight: 700; }
  .nb-st-layout .nb-st-mobile-toc summary::-webkit-details-marker { display: none; }
  .nb-st-layout .nb-st-mobile-toc[open] summary { margin-bottom: 10px; }
  /* Mobilnie również nie ma wewnętrznego paska przewijania. */
  .nb-st-layout .nb-st-mobile-toc .nb-st-toc-list { max-height: none !important; overflow: visible !important; }
  .nb-st-layout .nb-st-mobile-toc .nb-st-toc-link { padding: 8px 9px; }
}
@media (prefers-reduced-motion: reduce) { .nb-st-layout .nb-st-toc-link { transition: none; } }
