/* Help page — tabbed guides */

.help-intro {
  margin: 0 0 20px;
  color: var(--muted, #9a9aa8);
  font-size: 0.95rem;
  max-width: 52rem;
}

.help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3a3a48;
}

.help-tabs [role="tab"] {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(243, 206, 19, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text, #f0f0f4);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.help-tabs [role="tab"]:hover {
  background: rgba(243, 206, 19, 0.12);
}

.help-tabs [role="tab"][aria-selected="true"] {
  background: rgba(243, 206, 19, 0.28);
  color: var(--accent, #f3ce13);
  border-color: rgba(243, 206, 19, 0.65);
  font-weight: 600;
}

.help-tabpanel {
  display: none;
}

.help-tabpanel.is-active {
  display: block;
}

.help-tabpanel > section {
  margin-bottom: 18px;
}

.help-tabpanel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent, #f3ce13);
}

.help-tabpanel h3 {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  color: var(--text, #f0f0f4);
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.help-step {
  background: var(--panel, #1e1e26);
  border: 1px solid var(--border, rgba(243, 206, 19, 0.35));
  border-radius: 10px;
  padding: 14px 16px;
}

.help-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.help-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(243, 206, 19, 0.25);
  color: var(--accent, #f3ce13);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-step-header .help-step-title {
  margin: 0;
  font-size: 1rem;
  color: var(--accent, #f3ce13);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.help-step p {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.help-step p:last-child {
  margin-bottom: 0;
}

.help-figure {
  margin: 12px 0 0;
}

.help-img-slot {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #3a3a48;
  background: #0a0a10;
  min-height: 200px;
}

.help-img-slot img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  vertical-align: middle;
}

.help-img-slot.is-missing img {
  display: none;
}

.help-img-placeholder {
  display: none;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted, #9a9aa8);
  font-size: 0.85rem;
  line-height: 1.4;
}

.help-img-slot.is-missing .help-img-placeholder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-img-placeholder strong {
  color: var(--accent, #f3ce13);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.help-fig-cap {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted, #9a9aa8);
}

.help-cta-row {
  margin-top: 10px;
}

a.help-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(243, 206, 19, 0.5);
  background: rgba(243, 206, 19, 0.15);
  color: var(--accent, #f3ce13);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

a.help-cta:hover {
  background: rgba(243, 206, 19, 0.28);
}

.help-tab-footer {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(243, 206, 19, 0.4);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
}

.help-tab-footer a[data-help-tab] {
  cursor: pointer;
  font-weight: 600;
}

.help-prose ul,
.help-prose ol {
  margin: 8px 0;
  padding-left: 1.35rem;
  font-size: 0.92rem;
}

.help-prose li {
  margin-bottom: 6px;
}

.help-prose pre {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0e0e14;
  border: 1px solid #3a3a48;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

.help-trouble {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 10px 0;
}

.help-trouble th,
.help-trouble td {
  border: 1px solid #3a3a48;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.help-trouble th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent, #f3ce13);
}

.help-diagram {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0e0e14;
  border: 1px solid #3a3a48;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

.help-examples {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.help-example-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
}

.help-example-card strong {
  color: var(--accent, #f3ce13);
}

@media (max-width: 520px) {
  .help-tabs [role="tab"] {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 8px 8px;
  }
}
