:root {
  --guide-primary: #182052;
  --guide-accent: #03d0ad;
  --guide-muted: #6e7f93;
  --guide-bg: #f1f7f1;
  --guide-card-bg: #ffffff;
  --guide-border: #e5e7eb;
}

.guide-page {
  min-height: 100vh;
  background: var(--guide-bg);
  color: var(--guide-primary);
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}

.guide-hero {
  background: linear-gradient(135deg, #182052 0%, #2a3a8c 100%);
  color: #ffffff;
  padding: 72px 16px 64px;
  text-align: center;
}

.guide-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.guide-logo {
  height: 56px;
  margin-bottom: 20px;
}

.guide-hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}

.guide-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 24px;
}

.guide-hero-actions {
  margin-top: 24px;
}

.guide-back-link {
  display: inline-block;
  background: var(--guide-accent);
  color: var(--guide-primary);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.guide-back-link:hover {
  background: #02b897;
}

.guide-layout {
  max-width: 1200px;
  margin: -32px auto 0;
  padding: 0 16px 64px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 24px;
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(24, 32, 82, 0.06);
}

.guide-toc h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guide-muted);
  margin-bottom: 16px;
}

.guide-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-toc-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--guide-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.guide-toc-link:hover,
.guide-toc-link.is-active {
  background: rgba(3, 208, 173, 0.15);
  color: var(--guide-primary);
  font-weight: 700;
}

.guide-content {
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 30px rgba(24, 32, 82, 0.08);
}

.guide-section {
  scroll-margin-top: 32px;
}

.guide-section + .guide-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px dashed var(--guide-border);
}

.guide-section h2 {
  font-size: 28px;
  color: var(--guide-primary);
  margin-bottom: 16px;
}

.guide-section h3 {
  font-size: 18px;
  color: var(--guide-primary);
  margin-bottom: 8px;
}

.guide-section p {
  color: #384060;
  margin-bottom: 12px;
}

.guide-section ul,
.guide-section ol {
  padding-left: 20px;
  color: #384060;
  margin-bottom: 12px;
}

.guide-section li {
  margin-bottom: 6px;
}

.guide-section a {
  color: #006c58;
  font-weight: 600;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.guide-step {
  display: flex;
  gap: 16px;
  background: #f7fbf7;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  padding: 18px 20px;
}

.guide-step-number {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--guide-accent);
  color: var(--guide-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.guide-card {
  background: #f7fbf7;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  padding: 20px;
}

.guide-card h3 {
  margin-bottom: 10px;
}

.guide-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.guide-feature {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(24, 32, 82, 0.08);
}

.guide-feature h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.guide-tip {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(3, 208, 173, 0.12);
  border-radius: 10px;
  color: var(--guide-primary);
}

.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.guide-faq-item {
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  padding: 14px 18px;
  background: #f7fbf7;
}

.guide-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--guide-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--guide-muted);
  margin-left: 12px;
}

.guide-faq-item[open] summary::after {
  content: "−";
}

.guide-faq-item p {
  margin-top: 10px;
  color: #384060;
}

.guide-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.guide-cta-btn {
  background: var(--guide-accent);
  color: var(--guide-primary);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--guide-primary);
  transition: background 0.2s ease;
}

.guide-cta-btn:hover {
  background: #02b897;
}

.guide-cta-link {
  color: var(--guide-primary);
  font-weight: 600;
  text-decoration: underline;
}

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

  .guide-toc {
    position: static;
  }

  .guide-content {
    padding: 32px 24px;
  }

  .guide-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 540px) {
  .guide-hero {
    padding: 56px 16px 56px;
  }

  .guide-hero h1 {
    font-size: 26px;
  }

  .guide-subtitle {
    font-size: 16px;
  }

  .guide-section h2 {
    font-size: 22px;
  }

  .guide-content {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .guide-step {
    flex-direction: column;
  }
}
