body {
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  color: #111827;
  margin: 0;
}

/* Layout */
.guide-container {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.guide-sidebar {
  position: sticky;
  top: 80px;
  flex: 0 0 22%;
  max-width: 260px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 1.5em 1.2em;
  height: calc(100vh - 80px);
  box-shadow: 2px 0 4px rgba(0,0,0,0.03);
}

.guide-sidebar h2 {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #374151;
  font-weight: 600;
}

.guide-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.guide-sidebar li {
  margin-bottom: 0.8em;
}

.guide-sidebar a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.guide-sidebar a:hover,
.guide-sidebar a.active {
  color: #1e40af;
}

.guide-sidebar a.active {
  font-weight: 600;
  color: #1e40af;
  border-left: 3px solid #2563eb;
  padding-left: 6px;
  background-color: #f0f4ff;
  border-radius: 4px;
}


/* Main content */
.guide-content {
  flex: 1;
  padding: 2.5em 4em;
  overflow-x: hidden;
}

.guide-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.8em 2em;
  margin-bottom: 2em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.guide-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.guide-section h2 {
  font-size: 1.4em;
  color: #111827;
  margin-bottom: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.guide-section p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0.6em;
}

.guide-section ol {
  padding-left: 1.4em;
  margin-top: 0.6em;
}

.guide-section li {
  margin: 0.3em 0;
}

.guide-section img {
  display: block;
  margin: 1.2em auto;
  max-width: 70%;     /* zmniejsza wszystkie screeny do 80% szerokości sekcji */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Figure and caption styling */
.guide-figure {
  margin: 1.5em auto;
  text-align: center;
}

.guide-figure img {
  max-width: 70%;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.caption {
  font-size: 0.9em;
  color: #6b7280;
  margin-top: 0.5em;
  text-align: center;
}


/* Footer */
.guide-footer {
  text-align: center;
  padding: 2em 0;
  color: #4b5563;
  font-size: 0.95em;
}

.guide-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(90deg, #6366f1, #22c1c3);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: none;
  z-index: 2000;
  transition: background 0.2s ease, transform 0.2s ease;
}

#backToTop:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #4f46e5, #14b8a6);
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-container {
    flex-direction: column;
  }
  .guide-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    height: auto;
  }
  .guide-content {
    padding: 1.5em;
  }
}

kbd {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  color: #1f2937;
}

.tip {
  background: #f3f4f6;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 0.9em 1.1em;
  margin-top: 1.2em;
  color: #374151;
  font-size: 0.95em;
  line-height: 1.5;
}

.guide-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 18px;
}

.guide-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-lang-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 0.32em 0.8em;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.guide-lang-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.guide-lang-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

@media (max-width: 1024px) {
  .guide-toolbar-actions {
    padding-right: 12px;
  }
}