/* Help article — rebuilt from measurements of skincash.gg/help/<topic>/<article> */

.ha-page { position: relative }
.ha-page *, .ha-page *::before, .ha-page *::after { box-sizing: border-box }

.ha-content { width: 100%; max-width: var(--content-width, 1792px); margin: 0 auto; padding: 64px }

/* ---- breadcrumbs ---- */
.ha-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px }
.ha-crumb, .ha-sep {
  color: rgba(255, 255, 255, .4); font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; line-height: 1.5;
}
.ha-crumb { display: inline-flex; align-items: center; gap: 4px; transition: color .15s cubic-bezier(.4, 0, .2, 1) }
.ha-crumb svg { width: 12px; height: 12px }
.ha-crumb.accent { color: rgb(var(--c)) }
.ha-crumb.current { color: rgba(255, 255, 255, .6) }
a.ha-crumb:hover { color: #3dff9e }

/* ---- layout ---- */
.ha-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; margin-top: 32px }
.ha-article { min-width: 0 }

/* ---- header ---- */
.ha-header { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .06) }
.ha-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px }
.ha-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(var(--c), .25); border-radius: 6px; padding: 2px 8px;
  background: rgba(var(--c), .063); color: rgb(var(--c));
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: border-color .15s cubic-bezier(.4, 0, .2, 1);
}
.ha-chip:hover { border-color: rgba(var(--c), .6) }
.ha-chip svg { width: 12px; height: 12px }
.ha-fact { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .3); font-size: 10px }
.ha-fact svg { width: 12px; height: 12px }
.ha-title { margin: 0; color: #fff; font-size: 32px; font-weight: 800; line-height: 1.25 }
.ha-lead { margin: 12px 0 0; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.625 }

/* ---- body ---- */
.ha-body { display: flex; flex-direction: column; gap: 20px }
.ha-p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.625 }
.ha-h2 { margin: 16px 0 0; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.5; scroll-margin-top: 112px }
.ha-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 4px; list-style: none }
.ha-list li {
  position: relative; padding-left: 20px;
  color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.625;
}
.ha-list li::before {
  content: ''; position: absolute; left: 0; top: 9.1px;
  width: 6px; height: 6px; border-radius: 9999px; background: rgba(61, 255, 158, .7);
}
.ha-list b { color: #fff; font-weight: 700 }

.ha-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 4px; list-style: none }
.ha-steps li { position: relative; min-height: 20px; padding-left: 32px; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.625 }
.ha-steps li > span {
  position: absolute; left: 0; top: 0; display: flex; width: 20px; height: 20px; align-items: center; justify-content: center;
  border: 1px solid rgba(61, 255, 158, .3); border-radius: 6px; background: rgba(61, 255, 158, .1);
  color: #3dff9e; font-size: 10px; font-weight: 700; line-height: 1;
}
.ha-note { display: flex; gap: 12px; border: 1px solid; border-radius: 8px; padding: 12px 16px }
.ha-note > svg { width: 16px; height: 16px; flex: none; margin-top: 2px }
.ha-note > div { display: flex; min-width: 0; flex-direction: column; gap: 4px }
.ha-note strong { font-size: 12px; font-weight: 700; line-height: 18px }
.ha-note p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.625 }
.ha-note.info { border-color: rgba(61, 255, 158, .2); background: rgba(61, 255, 158, .05) }
.ha-note.info > svg, .ha-note.info strong { color: #3dff9e }
.ha-note.warn { border-color: rgba(239, 68, 68, .2); background: rgba(239, 68, 68, .05) }
.ha-note.warn > svg, .ha-note.warn strong { color: #fca5a5 }
.ha-note.tip { border-color: rgba(250, 204, 21, .2); background: rgba(250, 204, 21, .05) }
.ha-note.tip > svg, .ha-note.tip strong { color: #fde047 }
.ha-code { overflow-x: auto; margin: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; padding: 16px; background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.6 }

/* ---- feedback ---- */
.ha-feedback {
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 20px;
  background: linear-gradient(#131316, #0e0e11);
}
.ha-feedback-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px }
.ha-feedback-title { color: #fff; font-size: 13px; font-weight: 700 }
.ha-feedback-sub { margin-top: 4px; color: rgba(255, 255, 255, .4); font-size: 11px }
.ha-feedback-buttons { display: flex; gap: 8px }
.ha-feedback-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; padding: 8px 12px;
  background: rgba(255, 255, 255, .02); color: rgba(255, 255, 255, .6);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-family: inherit; cursor: pointer; transition: border-color .15s, color .15s;
}
.ha-feedback-btn svg { width: 12px; height: 12px }
.ha-feedback-btn:hover { border-color: rgba(61, 255, 158, .3); color: #3dff9e }
.ha-feedback-btn[data-vote="no"]:hover { border-color: rgba(239, 68, 68, .3); color: #fca5a5 }

/* ---- related ---- */
.ha-related { margin-top: 48px }
.ha-related-title {
  margin: 0 0 16px; color: rgba(255, 255, 255, .4);
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.ha-related-list { display: flex; flex-direction: column; gap: 8px }
.ha-related-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 16px 20px;
  background: linear-gradient(#131316, #0e0e11); text-decoration: none;
  box-shadow: inset 2px 0 0 0 rgb(var(--c));
  animation: ha-related-in .32s cubic-bezier(.2, .7, .2, 1) both;
  transition: border-color .15s cubic-bezier(.4, 0, .2, 1);
}
.ha-related-row:nth-child(2) { animation-delay: 60ms }
.ha-related-row:nth-child(3) { animation-delay: 120ms }
.ha-related-row:hover { border-color: rgba(255, 255, 255, .15) }
.ha-related-copy { min-width: 0 }
.ha-related-name { display: block; overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis }
.ha-related-text { display: block; margin-top: 2px; color: rgba(255, 255, 255, .4); font-size: 11px }
.ha-related-row > svg { width: 16px; height: 16px; flex: none; color: rgba(255, 255, 255, .3); transition: transform .15s, color .15s }
.ha-related-row:hover > svg { transform: translateX(2px); color: #3dff9e }

/* ---- support call to action ---- */
.ha-cta {
  position: relative; overflow: hidden; margin-top: 64px;
  border: 1px solid rgba(61, 255, 158, .2); border-radius: 16px; padding: 32px;
  background: linear-gradient(to bottom right, rgba(61, 255, 158, .08), rgba(61, 255, 158, .02), transparent);
}
.ha-cta-glow { position: absolute; width: 192px; height: 192px; border-radius: 9999px; filter: blur(64px); pointer-events: none }
.ha-cta-glow.one { right: -60px; top: -80px; background: rgba(61, 255, 158, .2) }
.ha-cta-glow.two { left: -60px; bottom: -80px; background: rgba(61, 255, 158, .1) }
.ha-cta-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.ha-cta-copy { display: flex; align-items: flex-start; gap: 16px; min-width: 0 }
.ha-cta-icon {
  display: grid; width: 48px; height: 48px; flex: none; place-items: center;
  border: 1px solid rgba(61, 255, 158, .3); border-radius: 12px; background: rgba(61, 255, 158, .1); color: #3dff9e;
}
.ha-cta-icon svg { width: 20px; height: 20px }
.ha-cta-title { margin: 0; color: #fff; font-size: 18px; font-weight: 800 }
.ha-cta-lead { max-width: 448px; margin: 4px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.6 }
.ha-cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(61, 255, 158, .3); border-radius: 8px; padding: 10px 20px;
  background: rgba(61, 255, 158, .1); color: #3dff9e;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.ha-cta-button svg { width: 16px; height: 16px }
.ha-cta-button:hover { border-color: rgba(61, 255, 158, .5); background: rgba(61, 255, 158, .2); transform: translateY(-1px) }

/* ---- table of contents ---- */
.ha-toc { position: sticky; top: 96px }
.ha-toc-title {
  margin-bottom: 12px; color: rgba(255, 255, 255, .4);
  font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.ha-toc-nav { display: flex; flex-direction: column; gap: 6px }
.ha-toc-nav a {
  padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .5); font-size: 11px; line-height: 1.5; text-decoration: none;
  transition: color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1);
}
.ha-toc-nav a:hover, .ha-toc-nav a.active { border-left-color: #3dff9e; color: #3dff9e }

@keyframes ha-related-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ha-grid { grid-template-columns: minmax(0, 1fr) }
  .ha-aside { display: none }
}
@media (max-width: 767px) {
  .ha-content { padding: 48px 24px }
  .ha-meta { flex-wrap: wrap }
  .ha-title { font-size: 24px }
  .ha-feedback-row, .ha-cta-row { flex-direction: column; align-items: flex-start }
  .ha-cta { padding: 24px }
  .ha-cta-title { font-size: 16px }
  .ha-cta-lead { font-size: 12px }
}
@media (prefers-reduced-motion: reduce) {
  .ha-crumb, .ha-chip, .ha-related-row, .ha-feedback-btn, .ha-cta-button, .ha-toc-nav a { transition: none; animation: none }
}
