/* ════════════════════════════════════════════════════════════
   CHIPZ guide — strategy guide page (design-locked, present ticket).
   Left-rail nav + main content. Reuse base/tokens/components; page-specific here.
   ════════════════════════════════════════════════════════════ */

/* Guide layout: left rail navigation + main content flexbox */
.guide-container {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  gap: 3rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--space-lg);
  position: relative;
}

/* ── LEFT RAIL NAVIGATION ── */
.guide-nav {
  flex: 0 0 200px;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.guide-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.guide-nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-interface);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  left: 0;
}

.guide-nav-link:hover {
  color: var(--color-text);
  padding-left: 1.2rem;
}

.guide-nav-link.active {
  color: var(--color-cyan-base);
  border-left-color: var(--color-cyan-base);
  background: rgba(31, 227, 255, 0.08);
  padding-left: 1.2rem;
  text-shadow: 0 0 12px rgba(31, 227, 255, 0.4);
}

/* ── MAIN CONTENT ── */
.guide-main {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

/* Intro section */
.guide-intro {
  margin-bottom: 3rem;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-hairline);
}

.guide-intro-text {
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-cyan-base);
  text-shadow: 0 0 20px rgba(31, 227, 255, 0.3);
  line-height: 1.3;
  margin: 0;
  font-style: italic;
}

/* Section styling */
.guide-section {
  margin-bottom: 4rem;
  scroll-margin-top: 140px;
}

.guide-section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-ice);
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
  line-height: 1.1;
}

.guide-section-subtitle {
  font-family: var(--font-interface);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-dim);
  font-style: italic;
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-cyan-base);
}

/* Subsections within sections */
.guide-subsection {
  font-family: var(--font-interface);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-lime-base);
  margin: var(--space-lg) 0 var(--space-sm);
  text-shadow: 0 0 12px rgba(166, 255, 60, 0.2);
}

/* Paragraph text */
.guide-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}

/* Inline code */
.guide-section code {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  background: rgba(31, 227, 255, 0.12);
  color: var(--color-cyan-base);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
}

/* Ordered lists */
.guide-list-ordered {
  list-style: decimal;
  list-style-position: inside;
  padding-left: 0;
  margin: 0 0 var(--space-lg);
}

.guide-list-ordered li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-left: 0;
}

.guide-list-ordered strong {
  font-weight: 700;
  color: var(--color-ice);
}

/* Tip sheet container and button */
.guide-tip-sheet-container {
  margin: var(--space-xl) 0;
  text-align: center;
}

.guide-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, rgba(31, 227, 255, 0.15), rgba(166, 255, 60, 0.1));
  border: 1.5px solid var(--color-cyan-base);
  border-radius: var(--radius-pill);
  color: var(--color-cyan-base);
  font-family: var(--font-interface);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 16px rgba(31, 227, 255, 0.2);
  text-shadow: 0 0 8px rgba(31, 227, 255, 0.3);
}

.guide-btn:hover {
  background: linear-gradient(135deg, rgba(31, 227, 255, 0.25), rgba(166, 255, 60, 0.15));
  box-shadow: 0 0 24px rgba(31, 227, 255, 0.4), 0 0 12px rgba(166, 255, 60, 0.2);
  color: var(--color-ice);
}

/* Tip sheet section */
.guide-tips-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-hairline);
}

.guide-tips-subtitle {
  font-size: 1rem;
  color: var(--color-text-dim);
  margin: 0 0 var(--space-lg);
  font-style: italic;
}

.guide-tips-content {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
}

.guide-tips-content pre {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-dim);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive: collapse left nav on smaller screens */
@media (max-width: 1024px) {
  .guide-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem var(--space-lg);
  }

  .guide-nav {
    flex: 1;
    position: relative;
    top: auto;
  }

  .guide-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .guide-nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .guide-main {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-container {
    padding: 1.5rem var(--space-sm);
  }

  .guide-section-title {
    font-size: 1.6rem;
  }

  .guide-tips-content {
    padding: var(--space-md);
  }

  .guide-tips-content pre {
    font-size: 0.75rem;
  }
}
