/* Návod — jak přidávat obsah (/navod) */

.navod-page {
  max-width: 42rem;
  margin: 0 auto;
}

.navod-toc-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
}

.navod-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .navod-toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

.navod-toc-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-brand, #8b1a1a);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
}

.navod-toc-list a:hover {
  background: var(--color-primary-soft, rgba(139, 26, 26, 0.1));
}

/* Kotvy z obsahu musí skončit pod sticky horní lištou, ne pod ní */
.navod-section {
  scroll-margin-top: calc(
    var(--header-h, 56px) + var(--community-nav-h, 0px) + 0.85rem + env(safe-area-inset-top, 0px)
  );
}

.navod-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.navod-lead {
  margin: 0 0 0.85rem;
  color: var(--color-muted, #475569);
  line-height: 1.45;
}

.navod-steps {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}

.navod-steps li + li {
  margin-top: 0.4rem;
}

.navod-steps--numbered {
  padding-left: 1.35rem;
}

.navod-box {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.navod-box--warn {
  background: rgba(196, 163, 90, 0.14);
  border-color: rgba(196, 163, 90, 0.35);
}

.navod-box-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.navod-box p {
  margin: 0;
  line-height: 1.45;
}

.navod-type-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.navod-type-list li + li {
  margin-top: 0.28rem;
}

.navod-cta {
  margin: 1rem 0 0;
}

.navod-footer-note {
  margin: 0.25rem 0 1.5rem;
  text-align: center;
}

.navod-footer-note code {
  font-size: 0.9em;
}
