/* SmartBeing user manual (homepage) */
.manual-wrap {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.manual-toc {
  flex: 0 0 220px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  background: var(--sb-white);
  border: 1px solid var(--sb-line);
  border-radius: 12px;
  padding: 16px;
}

.manual-toc-title {
  margin: 0 0 10px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--sb-navy);
}

.manual-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-toc-list li + li {
  margin-top: 4px;
}

.manual-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--sb-ink);
  font-size: .9rem;
  line-height: 1.4;
}

.manual-toc a:hover {
  background: #f0f4f8;
}

.manual-toc a.is-active {
  background: #e3f2fd;
  color: var(--sb-navy);
  font-weight: 600;
}

.manual-main {
  flex: 1 1 auto;
  min-width: 0;
}

.manual-intro {
  margin: 0 0 1.25rem;
  color: var(--sb-muted);
  line-height: 1.6;
}

.manual-section {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sb-line);
}

.manual-section > h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--sb-navy);
}

.manual-purpose {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--sb-ink);
}

.manual-sub {
  margin: 1rem 0 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #2a6db0;
  border-radius: 0 8px 8px 0;
}

.manual-sub h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--sb-navy);
}

.manual-sub p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.manual-keys {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.manual-keys li {
  margin: 0.25rem 0;
}

.manual-keys strong {
  font-weight: 600;
}

.manual-screen-area {
  min-height: 120px;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.015) 8px,
    rgba(0, 0, 0, 0.015) 16px
  );
  color: #8a93a0;
  font-size: 0.85rem;
}

.manual-screen-area::before {
  content: attr(data-label);
  display: block;
  font-style: italic;
}

.manual-screen-area.has-image {
  min-height: 0;
  padding: 0.5rem;
  border-style: solid;
  border-color: var(--sb-line);
  background: #fff;
}

.manual-screen-area.has-image::before {
  content: none;
}

.manual-screen-area.has-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .manual-wrap {
    flex-direction: column;
  }

  .manual-toc {
    position: static;
    flex: 1 1 auto;
    max-height: none;
    width: 100%;
  }
}
