/* Poradnik (/aplikacja-wspinaczkowa/): jedna kolumna do czytania (ok. 70 znaków), spis treści na górze,
   od 1024 px przyklejony z lewej. Układ jak regulamin (legal.css), bez ruchu: tekst widoczny od razu.
   Tylko tokeny z base.css. */

.guide { padding-block: var(--s-10) var(--s-16); }
@media (min-width: 48rem) {
  .guide { padding-top: var(--s-12); }
}

/* ---------- Nagłówek ---------- */

.guide-head { max-width: 70ch; }
.guide-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); color: var(--c-text-2); }
.guide-crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--c-text-2); }
.guide-crumbs a { color: var(--c-text); }
.guide-head h1 {
  margin-top: var(--s-6);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}
.guide-intro { margin-top: var(--s-6); }
.guide-intro p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text-2);
  text-wrap: pretty;
}
.guide-intro p + p { margin-top: var(--s-4); }

/* ---------- Układ: spis treści + treść ---------- */

.guide-layout {
  margin-top: var(--s-10);
  display: grid;
  gap: var(--s-10);
}
@media (min-width: 64rem) {
  .guide-layout {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: var(--s-12);
    align-items: start;
  }
  .guide-toc {
    position: sticky;
    top: calc(var(--nav-h) + var(--s-6));
  }
}

.guide-toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-5) var(--s-4) var(--s-4);
}
.guide-toc__h {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text);
}
ol.guide-toc__list { list-style: none; padding: 0; margin-top: var(--s-3); counter-reset: toc; }
.guide-toc__list li { counter-increment: toc; }
.guide-toc__list a {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  gap: var(--s-2);
  align-items: baseline;
  min-height: 32px;
  padding-block: var(--s-1);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--c-text);
  text-decoration: none;
}
.guide-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--c-accent);
}
@media (hover: hover) and (pointer: fine) {
  .guide-toc__list a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
}

/* ---------- Treść ---------- */

.guide-body { max-width: 70ch; min-width: 0; }
.guide-body p, .guide-body li { text-wrap: pretty; overflow-wrap: break-word; line-height: 1.6; }
.guide-section { scroll-margin-top: calc(var(--nav-h) + var(--s-4)); }
.guide-section + .guide-section { margin-top: var(--s-12); }
.guide-section > * + * { margin-top: var(--s-4); }
.guide-section__h {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  text-wrap: balance;
}
.guide-body strong { color: var(--c-text); }

.guide-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.guide-list > li { position: relative; padding-left: 1.25em; }
.guide-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--c-accent);
}

ol.guide-steps { list-style: none; padding: 0; display: grid; gap: var(--s-3); counter-reset: step; }
.guide-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25em;
}
.guide-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--c-accent);
}

/* Blok o Cuzce: wyróżniony tłem, jedno główne CTA. */
.guide-cuzca {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}
.guide-cuzca .guide-section__h { border-top: 0; padding-top: 0; }
.guide-cuzca__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-6);
}
@media (min-width: 48rem) {
  .guide-cuzca { padding: var(--s-8); }
}

.guide-section .faq { margin-top: var(--s-6); }

@media (max-width: 29.99rem) {
  .guide-meta { flex-direction: column; }
  .guide-meta > [aria-hidden="true"] { display: none; }
}
