/* ==========================================================================
   Hobi — Help Center (scoped). Loads AFTER style.css, reuses its :root tokens.
   ========================================================================== */

.help-main {
  padding: 0 0 40px;
}

/* ---- hub hero + search ---- */
.help-hero {
  text-align: center;
  padding: 56px 0 22px;
}
.help-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.help-hero h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.04;
  text-wrap: balance;
}
.help-hero .help-hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 40ch;
  margin: 14px auto 0;
  text-wrap: balance;
}

.help-search {
  position: relative;
  max-width: 560px;
  margin: 28px auto 0;
}
.help-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--faint);
  pointer-events: none;
}
.help-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px 15px 48px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.help-search input::placeholder {
  color: var(--faint);
}
.help-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(157, 108, 245, 0.16);
}

.help-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  max-width: 640px;
  margin: 15px auto 0;
}
.help-popular span {
  color: var(--faint);
  font-size: 13px;
  align-self: center;
}
.help-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.help-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---- category grid ---- */
.help-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 34px 0 12px;
}
@media (max-width: 900px) {
  .help-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .help-cats {
    grid-template-columns: 1fr;
  }
}
.help-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.help-cat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}
.help-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.help-cat-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(157, 108, 245, 0.14);
  border: 1px solid rgba(157, 108, 245, 0.25);
  color: var(--accent);
}
.help-cat-ico svg {
  width: 20px;
  height: 20px;
}
.help-cat h2 {
  font-size: 18px;
  margin: 0;
}
.help-cat .help-count {
  font-size: 12.5px;
  color: var(--faint);
  margin: -8px 0 14px;
}
.help-cat ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.help-cat li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 9px;
  transition: background 0.13s, color 0.13s;
}
.help-cat li a:hover {
  background: var(--card-hover);
  color: var(--text);
}
.help-cat li a .arr {
  margin-left: auto;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.13s, transform 0.13s;
}
.help-cat li a:hover .arr {
  opacity: 1;
  transform: translateX(2px);
}

.help-noresults {
  display: none;
  text-align: center;
  padding: 40px 0 10px;
  color: var(--muted);
}
.help-noresults.show {
  display: block;
}

/* ---- contact band (hub + article foot) ---- */
.help-contact {
  margin: 38px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  background-image: radial-gradient(
      420px 200px at 88% 0,
      rgba(240, 105, 158, 0.13),
      transparent 60%
    ),
    radial-gradient(420px 200px at 10% 110%, rgba(157, 108, 245, 0.15), transparent 60%);
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.help-contact h2 {
  font-size: 21px;
  margin: 0 0 4px;
}
.help-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.help-contact .help-contact-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Article page
   ========================================================================== */
.help-layout {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 46px;
  padding: 22px 0 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.help-side {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
@media (max-width: 860px) {
  .help-side {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }
}
.help-side-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 18px 0 8px;
}
.help-side-cat:first-child {
  margin-top: 0;
}
.help-side a {
  display: block;
  color: var(--muted);
  padding: 6px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.help-side a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.help-side a.current {
  color: var(--text);
  background: var(--bg-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.help-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.help-crumbs .sep {
  opacity: 0.5;
}

.help-article {
  max-width: 72ch;
}
.help-article h1 {
  font-size: clamp(27px, 4vw, 37px);
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 12px;
}
.help-lede {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 8px;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(240, 105, 158, 0.14);
  border: 1px solid rgba(240, 105, 158, 0.35);
  color: var(--accent-2);
  padding: 4px 11px;
  border-radius: 999px;
  vertical-align: middle;
}

/* platform tabs */
.help-tabs {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin: 14px 0 18px;
}
.help-tabs button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.help-tabs button.active {
  background: var(--card-hover);
  color: var(--text);
}
.help-tabpane {
  display: none;
}
.help-tabpane.active {
  display: block;
}

/* numbered steps */
ol.help-steps {
  counter-reset: s;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 0;
}
ol.help-steps li {
  position: relative;
  padding: 3px 0 3px 46px;
  color: var(--text);
}
ol.help-steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 14px;
  color: #160f1c;
  background: var(--grad);
}

/* note callout */
.help-note {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 14.5px;
  color: var(--muted);
}
.help-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 18px;
  margin-top: 3px;
}
.help-note strong {
  color: var(--text);
}

/* was this helpful */
.help-helpful {
  margin: 34px 0 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.help-helpful strong {
  font-size: 16px;
}
.help-helpful-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.help-hbtn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s;
}
.help-hbtn:hover {
  border-color: var(--accent);
}
.help-hbtn.picked {
  border-color: #58c98f;
  color: #58c98f;
}
.help-hthanks {
  font-size: 13.5px;
  color: #58c98f;
  display: none;
}
.help-hthanks.show {
  display: inline;
}

/* related */
.help-related {
  margin-top: 34px;
}
.help-related h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 12px;
}
.help-rel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .help-rel-grid {
    grid-template-columns: 1fr;
  }
}
.help-rel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.help-rel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.help-rel .arr {
  margin-left: auto;
  color: var(--faint);
}
