/* Guide page + embed mode inside homepage modal */

.guide-page {
  min-height: 100vh;
}

.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(10px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.guide-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.guide-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.guide-article {
  line-height: 1.6;
  color: var(--text);
}

.guide-article h1 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.guide-lead {
  font-size: 1.05rem;
  color: #dbeafe;
}

.guide-article h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--cyan-2);
}

.guide-article h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.02rem;
}

.guide-article p,
.guide-article li {
  color: #e2e8f0;
}

.guide-article ul,
.guide-article ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.25rem;
}

.guide-article li + li {
  margin-top: 0.35rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.guide-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.guide-article th,
.guide-article td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.guide-article th {
  background: rgba(15, 35, 65, 0.9);
  color: #e0f2fe;
  font-weight: 600;
}

.guide-article tr:last-child td {
  border-bottom: 0;
}

.guide-article tbody tr:nth-child(even) td {
  background: rgba(8, 18, 36, 0.45);
}

.guide-footer-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-page.is-embed .guide-topbar {
  display: none;
}

.guide-page.is-embed {
  background: transparent;
}

.guide-page.is-embed .guide-wrap {
  padding: 0.4rem 0.2rem 1.2rem;
}

.guide-page.is-embed .bg-grid,
.guide-page.is-embed #particles {
  display: none;
}

@media print {
  .guide-topbar,
  .bg-grid,
  #particles {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .guide-article,
  .guide-article p,
  .guide-article li,
  .guide-article h1,
  .guide-article h2,
  .guide-article h3 {
    color: #111 !important;
  }
}
