.help-icon,
.help-icon-static {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #8aa0b0;
  background: #f7fafb;
  color: #3a4a55;
  font-size: 13px;
  font-weight: 800;
  cursor: help;
  padding: 0;
  vertical-align: middle;
  line-height: 1;
}

.help-icon:hover,
.help-icon:focus {
  border-color: #1c4f8a;
  color: #1c4f8a;
  background: #e8f0f8;
  outline: none;
}

.help-icon-static { cursor: default; }

.help-tip-popup {
  position: fixed;
  z-index: 1000;
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid #c5d0d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 15px;
  line-height: 1.4;
  color: #182026;
}

.help-tip-more {
  display: inline-block;
  margin-top: 8px;
  color: #1c4f8a;
  font-weight: 700;
}

.help-page-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #1c4f8a;
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid #b8cce0;
  border-radius: 8px;
  background: #edf3f8;
  white-space: nowrap;
}

.help-page-link:hover { background: #dce8f4; }

.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; }

.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: #edf3f8;
  color: #1c4f8a;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-index {
  position: sticky;
  top: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #d5dde3;
}

.help-index h1 { margin-top: 0; }

.help-intro { color: #66737c; font-size: 14px; }

.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: #66737c;
  font-weight: 700;
  font-size: 14px;
}

.help-toc a:hover,
.help-toc a.active {
  background: #edf2f4;
  color: #182026;
}

.help-content { display: grid; gap: 14px; }

.help-article {
  background: #fff;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #d5dde3;
}

.help-article h2 { margin: 0 0 12px; font-size: 1.35rem; }
.help-article h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.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: #66737c; }

@keyframes helpFlash {
  0% { box-shadow: 0 0 0 0 rgba(28, 79, 138, 0.35); }
  30% { box-shadow: 0 0 0 6px rgba(28, 79, 138, 0.15); }
  100% { box-shadow: none; }
}

.help-action {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 16px;
}

.help-action .huge-btn,
.help-action .undo-btn,
.help-action .huge,
.help-action .secondary-btn {
  flex: 1;
  margin: 0;
}

.help-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-help {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Door (dark) — large tap targets beside the big buttons */
.door-body .help-action .help-icon {
  width: 52px;
  min-height: 52px;
  height: auto;
  border-radius: 14px;
  font-size: 1.5rem;
  background: #2a343c;
  color: #fff;
  border: 2px solid #5a6a75;
  flex-shrink: 0;
}

.door-body .help-icon {
  width: 32px;
  min-height: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  background: #2a343c;
  color: #fff;
  border: 2px solid #5a6a75;
}

.door-body .help-icon:hover,
.door-body .help-icon:focus,
.door-body .help-action .help-icon:hover,
.door-body .help-action .help-icon:focus {
  background: #c9a227;
  color: #1a1408;
  border-color: #c9a227;
}

.door-body .help-icon-static {
  width: 28px;
  min-height: 28px;
  font-size: 1rem;
  border-radius: 50%;
}

.door-body .help-page-link {
  background: #243039;
  border-color: #3a4a55;
  color: #d7e4f0;
}

.door-body .help-index,
.door-body .help-article {
  background: #1c242c;
  border-color: #3a4a55;
  color: #f4f7f8;
}

.door-body .help-toc a { color: #b7c2c8; }
.door-body .help-toc a:hover,
.door-body .help-toc a.active {
  background: #243039;
  color: #fff;
}

.door-body .help-intro,
.door-body .help-dl dd { color: #b7c2c8; }

.door-body .help-steps > li::before {
  background: #243039;
  color: #d7e4f0;
}

.door-body .tiny.help-nav {
  font-weight: 800;
  color: #c9a227 !important;
}

.admin-top a.help-nav {
  font-weight: 800;
  color: #f0d56e !important;
}

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-index { position: static; }
}
