/* Pusat bantuan (/help, /help/:slug). Mengikuti token tema aplikasi; tampil mandiri (tanpa login) atau di dalam shell. */
.hc-page { --hc-line: var(--line, color-mix(in oklab, var(--ink) 12%, transparent)); --hc-soft: color-mix(in oklab, var(--ink) 4.5%, transparent); }
.hc-page.is-standalone { min-height: 100dvh; }
.hc-main { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 28px) 96px; }
.hc-top-title { color: inherit; text-decoration: none; }
.hc-top-title:hover { color: var(--ink); }
.hc-topbar .hc-top-title { text-align: left; }
.hc-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hc-line); }
.hc-btn-ghost:hover { background: var(--hc-soft); }

/* Hero + pencarian */
.hc-hero { text-align: center; padding: clamp(8px, 3vw, 28px) 0 clamp(22px, 4vw, 34px); }
.hc-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.hc-hero p { margin: 0 auto 22px; max-width: 56ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.hc-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; height: 54px; padding: 0 10px 0 18px; border-radius: 16px;
  border: 1px solid var(--hc-line); background: var(--surface); color: var(--ink-3); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .45);
  transition: border-color var(--t-fast, 120ms) ease, box-shadow var(--t-fast, 120ms) ease; }
.hc-search:focus-within { border-color: color-mix(in oklab, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent), 0 10px 30px -22px rgba(0, 0, 0, .45); color: var(--ink-2); }
.hc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
/* Gaya input global aplikasi (bingkai, cincin fokus) tidak berlaku di dalam kotak pencarian ini. */
.hc-page .hc-search input, .hc-page .hc-search input:focus, .hc-page .hc-search input:focus-visible {
  -webkit-appearance: none; appearance: none; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin: 0; border-radius: 0 !important; min-height: 0; }
.hc-search input::-webkit-search-cancel-button { display: none; }
.hc-search input::placeholder { color: var(--ink-3); }
.hc-clear { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; }
.hc-clear:hover { background: var(--hc-soft); color: var(--ink); }
.hc-search.is-compact { height: 44px; max-width: none; margin: 30px 0 0; border-radius: 12px; box-shadow: none; padding-left: 14px; }
.hc-search.is-compact input { font-size: 15px; }

/* Kategori */
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hc-cat { padding: 18px 18px 14px; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--surface); scroll-margin-top: 80px; }
.hc-cat h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.hc-cat-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: color-mix(in oklab, var(--accent) 13%, transparent); }
.hc-cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hc-cat li a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.hc-cat li a:hover { color: var(--ink); background: var(--hc-soft); }

/* Hasil pencarian & daftar artikel */
.hc-results { max-width: 720px; margin: 0 auto; }
.hc-count { margin: 0 0 10px; color: var(--ink-3); font-size: 13.5px; }
.hc-list { display: flex; flex-direction: column; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.hc-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: background var(--t-fast, 120ms) ease; }
.hc-link + .hc-link { border-top: 1px solid var(--hc-line); }
.hc-link:hover { background: var(--hc-soft); }
.hc-link > .ic:last-child, .hc-link > svg:last-child { flex: none; color: var(--ink-3); }
.hc-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-link-title { font-weight: 650; font-size: 15px; line-height: 1.35; }
.hc-link-sub { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--hc-soft); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.hc-noresult { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px dashed var(--hc-line); border-radius: 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.hc-noresult b { color: var(--ink); }

/* Artikel */
.hc-article { max-width: 720px; margin: 0 auto; }
.hc-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: var(--ink-3); font-size: 13.5px; }
.hc-crumbs a { color: var(--ink-2); text-decoration: none; }
.hc-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hc-article-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--hc-line); }
.hc-article-head h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.hc-lead { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.hc-prose { font-size: 15.5px; line-height: 1.72; }
.hc-prose h2 { font-size: 1.22rem; margin-top: 1.7em; }
.hc-prose h3 { font-size: 1.06rem; }
.hc-prose li + li { margin-top: .3em; }
.hc-updated { margin: 28px 0 0; color: var(--ink-3); font-size: 13px; }
.hc-related { margin-top: 34px; }
.hc-related h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }

/* Belum menemukan jawaban */
.hc-more { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 34px auto 0; max-width: 980px; padding: 20px 22px; border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--hc-line)); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }
.hc-article .hc-more { max-width: none; }
.hc-more-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: color-mix(in oklab, var(--accent) 15%, transparent); }
.hc-more-text { flex: 1 1 260px; min-width: 0; }
.hc-more-text h2 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.hc-more-text p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.hc-more-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Jawaban asisten bantuan (/support): markdown + artikel sumber */
.support-message .prose { font-size: 15px; line-height: 1.65; margin-top: 5px; }
.support-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.support-sources a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.support-sources a:hover { color: var(--ink); border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.experience-help-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; }

@media (max-width: 640px) {
  .hc-grid { grid-template-columns: 1fr; gap: 10px; }
  .hc-search { height: 50px; border-radius: 14px; padding-left: 14px; }
  .hc-link { padding: 13px 14px; }
  .hc-tag { display: none; }
  .hc-more { padding: 18px 16px; }
  .hc-more-actions { width: 100%; }
  .hc-more-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hc-hide-xs { display: none; }
  .hc-page.is-standalone .sh-top-title { display: none; }
}
