/* Veřejná nápověda — karty na fotce portálu, nic holého na pozadí. */

.napoveda-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.napoveda-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.np-toc-details {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
}

.np-toc-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink, #142033);
  margin-bottom: 0.65rem;
}

.np-toc-group + .np-toc-group {
  margin-top: 0.85rem;
}

.np-toc-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted, #5c6b7a);
}

.np-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.np-toc-link {
  display: block;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-brand, #1d4e89);
  line-height: 1.35;
}

.np-toc-link.is-active {
  background: var(--color-primary-soft, rgb(29 78 137 / 12%));
  font-weight: 700;
}

.np-search {
  margin-top: 1rem;
}

.np-search-label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.np-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.np-search-input {
  flex: 1 1 14rem;
  min-width: 0;
}

.np-search-results {
  margin-top: 0.75rem;
}

.np-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 18rem;
  overflow: auto;
}

.np-search-list a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 72%);
  text-decoration: none;
}

.np-search-title {
  font-weight: 700;
  color: var(--color-brand, #1d4e89);
}

.np-search-meta {
  color: var(--color-muted, #5c6b7a);
  font-size: 0.85rem;
}

.np-article {
  padding: 1.25rem 1.35rem 1.5rem;
}

.np-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #5c6b7a);
}

.np-article-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.np-lead,
.np-p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
}

.np-h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.12rem;
}

.np-ul,
.np-body ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.np-ul li + li,
.np-body ol li + li {
  margin-top: 0.28rem;
}

.np-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.np-step {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.np-step-num {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 750;
  background: var(--color-primary-soft, rgb(29 78 137 / 14%));
  color: var(--color-brand, #1d4e89);
}

.np-step-body {
  padding-top: 0.15rem;
  line-height: 1.45;
}

.np-tip,
.np-warn {
  margin: 0.8rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

.np-tip {
  background: rgb(47 93 74 / 8%);
}

.np-warn {
  background: rgb(138 59 34 / 8%);
}

.np-tip-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.np-tip-body {
  margin: 0;
  line-height: 1.45;
}

.np-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.np-card {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
}

.np-card-title {
  margin: 0 0 0.35rem;
}

.np-group + .np-group {
  margin-top: 1.15rem;
}

.np-group-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.np-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.np-group-list a {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgb(255 255 255 / 62%);
}

.np-group-list a span {
  color: var(--color-muted, #5c6b7a);
  font-size: 0.92rem;
}

.np-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.np-hit {
  background: #ffe08a;
  color: inherit;
  padding: 0 0.1em;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .napoveda-layout {
    grid-template-columns: 1fr;
  }

  .napoveda-main {
    order: 1;
  }

  .np-toc-details {
    order: 2;
    position: static;
    max-height: none;
  }
}
