/* User Guide page — relies on home.css for shared nav/footer/theme */

.guide-hero {
  padding: 40px 20px 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.guide-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.guide-hero p {
  color: var(--text2);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

.guide-section {
  padding: 10px 20px 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

/* Unstyled wrapper that stretches to the full row height (matching
   .guide-content's height), giving the TOC's fixed positioning (handled
   in JS below, since position:sticky is broken here — home.css sets
   overflow-x:hidden on html/body, which per the CSS spec forces
   overflow-y to compute as auto too, creating a scroll container that
   breaks sticky for any descendant) room to work throughout the scroll. */
.guide-toc-wrap {
  align-self: stretch;
  position: relative;
}

.guide-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.guide-toc.is-fixed {
  position: fixed;
  top: 90px;
}

.guide-toc.is-bottom {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100% !important;
}

.guide-toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}

.guide-toc-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 8px;
  border-radius: 6px;
  transition: 0.15s;
}

.guide-toc-link:hover {
  background: var(--surface2);
  color: var(--text);
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.guide-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  scroll-margin-top: 90px;
}

.guide-block h2 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text);
}

.guide-block p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-list li {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.guide-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.guide-tool {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-tool strong {
  font-size: 14px;
  color: var(--text);
}

.guide-tool span {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.5;
}

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

  .guide-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .guide-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guide-hero {
    padding: 24px 16px 10px;
  }

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

  .guide-hero p {
    font-size: 13.5px;
  }

  .guide-section {
    padding: 8px 16px 40px;
  }

  .guide-block {
    padding: 16px 18px;
    scroll-margin-top: 70px;
  }

  .guide-block h2 {
    font-size: 17px;
  }

  .guide-block p,
  .guide-list li,
  .guide-tool span {
    font-size: 14px;
  }
}
