/* Poradniki NavBoost — wspólne wzmocnienia UX (TOC, dostępność) */

#guide-toc a.guide-toc-active {
  color: #ddd6fe;
  font-weight: 700;
  background: rgba(91, 33, 182, 0.22);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  margin: -0.125rem -0.375rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  #guide-toc a,
  #scroll-progress-poradnik {
    transition: none !important;
  }
}


#guide-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0;
}

#guide-toc a::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
  color: #94a3b8;
}

#guide-toc a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

article h2:not(:first-of-type) {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.35rem;
}

article p,
article ul,
article ol,
article table {
  margin-bottom: 1rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.guide-inline-cta {
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.15), rgba(30, 41, 59, 0.5));
  border-radius: 0.9rem;
  padding: 1rem;
}

.guide-inline-cta-actions,
.guide-aside-cta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.guide-btn-primary,
.guide-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-btn-primary {
  background: #7c3aed;
  color: #ffffff;
  border: 1px solid #8b5cf6;
}

.guide-btn-primary:hover {
  background: #6d28d9;
}

.guide-btn-secondary {
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: rgba(30, 41, 59, 0.65);
}

.guide-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.75);
}

.guide-table {
  border-collapse: collapse;
  width: 100%;
}

.guide-table th,
.guide-table td {
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #c4b5fd;
  font-weight: 700;
}

.guide-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.3);
}
