/* ==========================================================================
   SunTeam v2 — Help center (/help, /help/{slug})
   ========================================================================== */
.hc { --hc: var(--sun-400); }
.hc-hero, .hc-t-hero { position: relative; isolation: isolate; padding-block: clamp(24px, 4vw, 48px) clamp(28px, 4vw, 52px); overflow: hidden; }
.hc-hero-grid, .hc-t-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hc-copy .h-display { margin: 12px 0 10px; }
.hc-copy .lead, .hc-t-copy .lead { color: var(--text-2); line-height: 2; max-width: 560px; }

/* search */
.hc-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 22px; height: 60px; padding: 0 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); max-width: 560px; }
.hc-search:focus-within { box-shadow: var(--sh-2), inset 0 0 0 2px var(--sun-500), 0 0 0 6px rgba(255,212,0,.18); }
.hc-search > .ic { color: var(--text-3); flex: none; }
.hc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: var(--fs-md); }
.hc-search kbd { padding: 2px 8px; border-radius: 6px; background: var(--surface-sunk); color: var(--text-3); font: inherit; font-size: 12px; }
.hc-results { position: absolute; z-index: 20; top: calc(100% + 8px); inset-inline: 0; padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); max-height: 380px; overflow-y: auto; }
.hc-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); outline: 0; }
.hc-results a:hover, .hc-results a:focus { background: var(--surface-2); }
.hc-results a .ic { color: var(--accent-ink); flex: none; }
.hc-results b { display: block; font-weight: 800; }
.hc-results small { color: var(--text-3); font-size: var(--fs-xs); }
.hc-none { margin: 0; padding: 14px; color: var(--text-3); font-size: var(--fs-sm); text-align: center; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hc-chips a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; transition: background .2s, transform .2s; }
.hc-chips a:hover { background: var(--sun-100); color: var(--text); transform: translateY(-1px); }
.hc-chips .ic { color: var(--accent-ink); }

/* art */
.hc-hero-art, .hc-t-art { position: relative; display: flex; justify-content: center; }
.hl-art { width: min(400px, 100%); height: auto; overflow: visible; }
.hl-phone { animation: hl-bob 6s ease-in-out infinite; transform-origin: center; }
.hl-orbit { animation: hl-spin 40s linear infinite; transform-origin: 160px 150px; }
.hl-float { animation: hl-bob 7s ease-in-out infinite; }
.hl-float.b { animation-delay: -3s; }
.hl-pulse { animation: hl-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hl-pop { animation: hl-pop 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hl-bar { animation: hl-grow 1.2s var(--ease) both; animation-delay: var(--d); transform-box: fill-box; transform-origin: bottom; }
.hl-fill { animation: hl-fill 2.2s var(--ease) both; transform-box: fill-box; transform-origin: right; }
.hl-flow { animation: hl-dash 1s linear infinite; }
@keyframes hl-bob { 50% { transform: translateY(-8px); } }
@keyframes hl-spin { to { transform: rotate(360deg); } }
@keyframes hl-pulse { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes hl-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes hl-grow { from { transform: scaleY(0); } }
@keyframes hl-fill { from { transform: scaleX(0); } }
@keyframes hl-dash { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .hl-art * { animation: none !important; } }
.hc-count { position: absolute; bottom: 8%; inset-inline-start: 4%; display: flex; flex-direction: column; align-items: center; padding: 12px 18px; border-radius: 18px; background: #111318; color: #fff; box-shadow: var(--sh-3); }
.hc-count b { font-size: 1.6rem; font-weight: 900; color: var(--sun-400); line-height: 1.2; }
.hc-count span { font-size: var(--fs-xs); color: rgba(255,255,255,.7); }

/* beginner path */
.hc-path { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: #111318; color: #fff; overflow: hidden; position: relative; }
.hc-path::before { content: ""; position: absolute; width: 420px; height: 420px; inset: -60% auto auto -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,212,0,.28), transparent); }
.hc-path-head { position: relative; margin-bottom: 20px; }
.hc-path-head .h-2 { color: #fff; margin-top: 8px; }
.hc-path-head p { color: rgba(255,255,255,.7); margin-top: 6px; }
.hc-path .eyebrow { color: var(--sun-400); }
.hc-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: s; }
.hc-steps li { animation: hc-in .6s var(--ease) both; animation-delay: var(--d); }
.hc-steps a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.hc-steps a:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.hc-step-n { position: absolute; top: 12px; inset-inline-end: 14px; color: rgba(255,255,255,.35); font-size: 1.4rem; font-weight: 900; }
.hc-step-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--hc); color: #111318; }
.hc-steps b { font-weight: 800; line-height: 1.6; }
.hc-steps small { color: rgba(255,255,255,.55); font-size: var(--fs-xs); }
@keyframes hc-in { from { opacity: 0; transform: translateY(12px); } }

/* categories */
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.hc-cat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--text); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.hc-cat::after { content: ""; position: absolute; width: 140px; height: 140px; inset: auto -40px -60px auto; border-radius: 50%; background: var(--hc); opacity: .14; transition: transform .4s var(--ease); }
.hc-cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-strong); }
.hc-cat:hover::after { transform: scale(1.3); }
.hc-cat-ic { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 17px; background: color-mix(in srgb, var(--hc) 22%, transparent); color: color-mix(in srgb, var(--hc) 70%, #111318); }
.hc-cat b { font-size: var(--fs-lg); font-weight: 900; }
.hc-cat small { color: var(--text-3); line-height: 1.8; font-size: var(--fs-sm); }
.hc-cat em { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; color: var(--text-2); font-style: normal; font-weight: 800; font-size: var(--fs-sm); }

/* topic cards */
.hc-sec { scroll-margin-top: 90px; }
.hc-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hc-sec-ic { width: 52px; height: 52px; display: grid; place-items: center; flex: none; border-radius: 16px; background: var(--hc); color: #111318; box-shadow: 0 10px 24px -12px var(--hc); }
.hc-sec-head p { color: var(--text-3); margin-top: 2px; font-size: var(--fs-sm); }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.hc-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) 28px; gap: 14px; align-items: start; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: box-shadow .2s, transform .2s; }
.hc-card:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.hc-card-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--hc) 20%, transparent); color: color-mix(in srgb, var(--hc) 65%, #111318); }
.hc-card-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hc-card-t b { font-weight: 800; line-height: 1.6; }
.hc-card-t > small { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.hc-who { padding: 1px 9px; border-radius: var(--r-pill); font-style: normal; font-size: 11px; font-weight: 800; }
.hc-who.g { background: var(--sky-soft); color: var(--sky); }
.hc-who.m { background: var(--amber-soft); color: var(--accent-ink); }
.hc-who.c { background: var(--mint-soft); color: var(--mint); }
.hc-time { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-style: normal; font-size: 11.5px; }
.hc-card-go { align-self: center; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunk); color: var(--text-2); transition: background .2s, color .2s; }
.hc-card:hover .hc-card-go { background: var(--sun-400); color: #111318; }

/* glossary */
.hc-gloss { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.hc-gloss > div { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hc-gloss dt { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: var(--fs-md); }
.hc-gloss dt span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--sun-100); color: var(--accent-ink); }
.hc-gloss dd { margin: 8px 0 0; color: var(--text-2); line-height: 2; font-size: var(--fs-sm); }

/* support cta */
.hc-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--sun-200), var(--sun-400)); color: #111318; }
.hc-cta p { margin-top: 6px; color: rgba(17,19,24,.7); }
.hc-cta .h-2 { color: #111318; }
.hc-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-cta .btn-ghost { background: rgba(255,255,255,.5); }

/* ---------- topic page ---------- */
.hc-t-cat { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--hc) 22%, transparent); color: color-mix(in srgb, var(--hc) 60%, #111318); font-weight: 800; font-size: var(--fs-sm); }
.hc-t-copy .h-1 { margin: 10px 0 8px; }
.hc-t-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; }
.hc-t-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hc-t-meta .ic { color: var(--accent-ink); }
.hc-t-cta { margin-top: 22px; }
.hc-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.hc-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hc-box { padding: 18px 22px; border-radius: 20px; }
.hc-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-md); font-weight: 900; }
.hc-box ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 2; color: var(--text-2); }
.hc-box.before { background: var(--sky-soft); } .hc-box.before h2 { color: var(--sky); }
.hc-box.tips { background: var(--mint-soft); } .hc-box.tips h2 { color: var(--mint); }
.hc-box.warn { background: var(--amber-soft); } .hc-box.warn h2 { color: var(--accent-ink); }
.hc-steps-sec .h-2, .hc-faq .h-2 { margin-bottom: 16px; }
.hc-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.hc-timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; inset-inline-start: 19px; width: 3px; border-radius: 3px; background: linear-gradient(var(--hc), color-mix(in srgb, var(--hc) 20%, transparent)); }
.hc-timeline > li { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; transition-delay: var(--d); }
.hc-tl-dot { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--hc); color: #111318; font-weight: 900; box-shadow: 0 0 0 5px var(--bg, #FBFAF6); }
.hc-tl-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.hc-tl-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--surface-sunk); color: var(--text); }
.hc-tl-card h3 { margin: 2px 0 4px; font-size: var(--fs-md); font-weight: 900; }
.hc-tl-card p { margin: 0; color: var(--text-2); line-height: 2; }
.hc-tl-card p b { color: var(--text); }
.hc-tl-card .hl, .hc-box .hl, .faq-a .hl { padding: 0 4px; border-radius: 4px; background: var(--sun-200); color: #111318; }
.hc-tl-tip { display: flex; gap: 6px; margin-top: 8px !important; padding: 8px 12px; border-radius: 12px; background: var(--sun-50); font-size: var(--fs-sm); }
.hc-tl-tip .ic { flex: none; margin-top: 5px; color: var(--accent-ink); }
.hc-tl-done .hc-tl-dot { background: var(--mint); color: #fff; }
.hc-tl-done .hc-tl-card { grid-template-columns: 1fr; background: var(--mint-soft); box-shadow: none; }
.hc-tl-done b { font-weight: 900; }
.hc-go { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 24px; border-radius: 22px; background: #111318; color: #fff; }
.hc-go div { display: flex; flex-direction: column; }
.hc-go b { font-size: var(--fs-lg); font-weight: 900; }
.hc-go span { color: rgba(255,255,255,.65); font-size: var(--fs-sm); }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-pn a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: box-shadow .2s; }
.hc-pn a:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-strong); }
.hc-pn a.next { justify-content: flex-end; text-align: left; grid-column: 2; }
.hc-pn small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.hc-pn b { font-weight: 800; font-size: var(--fs-sm); }
.hc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.hc-side-card { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hc-side-card > b { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 900; }
.hc-side-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-side-card a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.6; }
.hc-side-card a:hover { background: var(--surface-2); color: var(--text); }
.hc-side-card a.is-on { background: color-mix(in srgb, var(--hc) 20%, transparent); color: var(--text); font-weight: 800; }
.hc-side-card a .ic { flex: none; color: var(--text-3); }
.hc-side-back { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 16px; background: var(--surface-sunk); color: var(--text); font-weight: 800; }

[data-theme="dark"] .hc-tl-dot { box-shadow: 0 0 0 5px #0B0C0F; }
[data-theme="dark"] .hc-cta { color: #111318; }

@media (max-width: 960px) {
  .hc-hero-grid, .hc-t-grid { grid-template-columns: 1fr; }
  .hc-hero-art { order: -1; max-width: 300px; margin-inline: auto; }
  .hc-t-art { display: none; }
  .hc-body { grid-template-columns: 1fr; }
  .hc-side { position: static; }
}
@media (max-width: 560px) {
  .hc-search { height: 54px; }
  .hc-search kbd { display: none; }
  .hc-tl-card { grid-template-columns: 1fr; }
  .hc-tl-ic { display: none; }
  .hc-pn { grid-template-columns: 1fr; }
  .hc-pn a.next { grid-column: 1; }
  .hc-card { grid-template-columns: 42px minmax(0, 1fr); }
  .hc-card-go { display: none; }
}
[data-theme="dark"] .hc-tl-tip { background: rgba(255,212,0,.1); color: var(--text-2); }
[data-theme="dark"] .hc-tl-card .hl, [data-theme="dark"] .hc-box .hl, [data-theme="dark"] .faq-a .hl { background: rgba(255,212,0,.25); color: var(--text); }
