@import url("/css/pages/default.css");

.help-page {
  flex: 1;
  min-height: 0;
}

.help-main {
  width: 100%;
  max-width: none;
  padding: 32px;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: calc(var(--app-topbar-height, 64px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  background: #ffffff;
}

.help-hero h1 {
  margin: 0 0 8px;
}

.help-hero p {
  margin: 0;
  color: #41484c;
  font-size: 16px;
  line-height: 24px;
}

.help-tour-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: #306177;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 12px 24px rgba(48, 97, 119, 0.2);
}

.help-tour-btn:hover {
  background: #255265;
}

.help-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #41484c;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}

.help-toc a:hover {
  background: rgba(173, 222, 247, 0.2);
  color: #00658f;
}

.help-toc a.is-active {
  background: rgba(173, 222, 247, 0.35);
  color: #00658f;
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-section {
  padding: 24px;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  background: #ffffff;
  scroll-margin-top: calc(var(--app-topbar-height, 64px) + 24px);
}

.help-section h2 {
  margin: 0 0 12px;
  color: #191c1d;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.help-section h3 {
  margin: 20px 0 8px;
  color: #33647a;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.help-section h4 {
  margin: 14px 0 6px;
  color: #191c1d;
  font-size: 14px;
  font-weight: 600;
}

.help-section p,
.help-section li {
  color: #41484c;
  font-size: 14px;
  line-height: 22px;
}

.help-section ul,
.help-steps {
  margin: 8px 0 0;
  padding-left: 20px;
}

.help-steps li {
  margin-bottom: 8px;
}

.help-steps li:last-child {
  margin-bottom: 0;
}

.help-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #00658f;
  border-radius: 0 8px 8px 0;
  background: rgba(173, 222, 247, 0.15);
  color: #41484c;
  font-size: 13px;
  line-height: 20px;
}

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

  .help-sidebar {
    position: static;
  }
}
