/* =============================================================================
   Przewodnik gastro — hub layout (ścieżka + klastry)
   Tokens from /styles.css. No default Tailwind colors, only brand tokens.
   ============================================================================= */

.guide-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-section {
  margin-top: 56px;
}

.guide-section-head {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.guide-section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 8px;
}

.guide-section-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

/* ---- Ścieżka (4 kroki) ------------------------------------------------- */
.guide-path {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.guide-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: var(--navy);
  color: var(--paper);
}

.guide-step-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin: 4px 0 6px;
}

.guide-step-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 12px;
}

.guide-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Light-blue pills, so each link reads as a distinct chip, not a run of text. */
.guide-step-links a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.guide-step-links a:hover {
  background: var(--accent);
  color: var(--navy);
}

/* ---- Klastry (biblioteka) ---------------------------------------------- */
.guide-clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-cluster {
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--cl, var(--gray-300));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.guide-cluster > h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 4px;
}

.guide-cluster > p {
  font-size: 13.5px;
  color: var(--gray-500);
  margin: 0 0 14px;
}

.guide-subgroup {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin: 16px 0 8px;
}

.guide-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-links a {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--navy);
  text-decoration: none;
}

.guide-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.guide-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
  vertical-align: middle;
}

.guide-cluster.c-koszty {
  --cl: #ffb86c;
}
.guide-cluster.c-zakupy {
  --cl: #93b5ff;
}
.guide-cluster.c-marnowanie {
  --cl: #81c796;
}
.guide-cluster.c-operacje {
  --cl: #7891be;
}

/* ---- CTA ---------------------------------------------------------------- */
.guide-cta {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 0 24px;
}

/* CTA sits on a navy box (.article-cta background from blog.css), so text must
   be light — same navy+light contrast pattern as the article/tool CTAs. */
.guide-cta .article-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px;
}

.guide-cta .article-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: #cedaf0;
  max-width: 620px;
  margin: 0 0 28px;
}

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 720px) {
  .guide-clusters {
    grid-template-columns: 1fr;
  }
  .guide-container,
  .guide-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .guide-step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .guide-step-num {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}
