.help-icon,
.help-icon-static {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7fafb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: help;
  padding: 0;
  vertical-align: middle;
  line-height: 1;
}

.help-icon:hover,
.help-icon:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #edf7f5;
  outline: none;
}

.help-icon-static {
  cursor: default;
}

.help-nav-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

.help-nav-link:hover {
  color: var(--ink);
  background: #edf2f4;
}

.help-tip-popup {
  position: fixed;
  z-index: 1000;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  pointer-events: auto;
}

.help-tip-more {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 700;
}

.help-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
  background: #edf7f5;
  white-space: nowrap;
}

.help-page-link:hover {
  background: #dff1ed;
  color: #0f5c55;
}

.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.page-head-row h1 {
  margin: 0;
}

.page-head-row.compact {
  margin-bottom: 10px;
}

.page-head-row.compact h1 {
  font-size: 20px;
}

.help-steps {
  counter-reset: help-step;
  list-style: none;
  padding-left: 0;
}

.help-steps > li {
  counter-increment: help-step;
  margin: 0 0 14px;
  padding-left: 34px;
  position: relative;
}

.help-steps > li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf7f5;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.help-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-index {
  position: sticky;
  top: 76px;
}

.help-index h1 {
  margin-top: 0;
}

.help-intro {
  color: var(--muted);
  font-size: 13px;
}

.help-toc {
  display: grid;
  gap: 4px;
  margin: 14px 0 16px;
}

.help-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.help-toc a:hover,
.help-toc a.active {
  background: #edf2f4;
  color: var(--ink);
}

.help-content {
  display: grid;
  gap: 14px;
}

.help-article h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.help-article h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.help-article p,
.help-article li {
  color: var(--ink);
}

.help-article ol,
.help-article ul {
  padding-left: 20px;
}

.help-article.help-highlight {
  animation: helpFlash 2.5s ease;
}

.help-dl dt {
  font-weight: 800;
  margin-top: 12px;
}

.help-dl dd {
  margin: 4px 0 0;
  color: var(--muted);
}

@keyframes helpFlash {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35); }
  30% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15); }
  100% { box-shadow: var(--shadow); }
}

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-index {
    position: static;
  }
}

@media print {
  .help-index {
    display: none;
  }
}
