/* ==========================================================================
   InventorysHub Help Center — standalone template (only loaded on /help-center/ pages)
   Palette follows the product UI: warm paper, deep plum, soft amber.
   ========================================================================== */
.hc {
  --hc-paper: #faf8f4;
  --hc-paper-2: #f3efe8;
  --hc-card: #ffffff;
  --hc-line: #e8e2d8;
  --hc-ink: #1f1a2b;
  --hc-ink-2: #4a4458;
  --hc-muted: #7a7386;
  --hc-plum: #3d2b5a;
  --hc-plum-2: #5a4682;
  --hc-plum-soft: #efeaf7;
  --hc-amber: #e0823d;
  --hc-amber-soft: #fdf0e5;
  --hc-teal: #2f7d72;
  --hc-teal-soft: #e6f3f0;
  --hc-radius: 18px;
  --hc-shadow: 0 1px 2px rgba(31, 26, 43, .04), 0 8px 24px rgba(31, 26, 43, .06);
  background: var(--hc-paper);
  color: var(--hc-ink);
  font-size: 17px;
  line-height: 1.7;
  padding-top: 0;
}
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc a { color: var(--hc-plum-2); text-decoration: underline; text-decoration-color: rgba(90, 70, 130, .35); text-underline-offset: 3px; }
.hc a:hover { color: var(--hc-plum); text-decoration-color: currentColor; }
.hc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hc h1, .hc h2, .hc h3 { color: var(--hc-ink); letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hc-hero {
  position: relative;
  padding: 45px 0 56px;
  background:
    radial-gradient(600px 260px at 88% 10%, rgba(224, 130, 61, .14), transparent 70%),
    radial-gradient(700px 320px at 8% 0%, rgba(90, 70, 130, .12), transparent 70%),
    linear-gradient(180deg, #f6f2fb 0%, var(--hc-paper) 100%);
  border-bottom: 1px solid var(--hc-line);
  overflow: visible;
}
.hc-hero--article { padding-bottom: 40px; }
.hc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--hc-muted); margin-bottom: 22px; }
.hc-crumbs a { color: var(--hc-muted); text-decoration: none; }
.hc-crumbs a:hover { color: var(--hc-plum); }
.hc-crumbs [aria-current] { color: var(--hc-ink-2); font-weight: 500; }
.hc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hc-hero--article .hc-hero-grid { grid-template-columns: minmax(0, 860px); }
.hc-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--hc-card); border: 1px solid var(--hc-line); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hc-plum); }
.hc-kicker a { color: inherit; text-decoration: none; }
.hc-kicker i { color: var(--hc-amber); }
.hc-title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; font-weight: 700; margin: 0 0 16px; }
.hc-lead { font-size: 19px; color: var(--hc-ink-2); margin: 0; max-width: 760px; }
.hc-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 14px; color: var(--hc-muted); }
.hc-hero-meta i { margin-right: 6px; color: var(--hc-plum-2); }
.hc-plan-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--hc-amber-soft); color: #9a4f17; font-style: normal; font-weight: 600; font-size: 13px; }
.hc-plan-tag i { color: var(--hc-amber) !important; margin: 0 !important; }

/* ---------- Search ---------- */
.hc-search { position: relative; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 22px; padding: 22px; box-shadow: var(--hc-shadow); }
.hc-search-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; color: var(--hc-ink); }
.hc-search-box { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--hc-line); border-radius: 14px; padding: 0 16px; background: var(--hc-paper); transition: border-color .2s, box-shadow .2s; }
.hc-search-box:focus-within { border-color: var(--hc-plum-2); box-shadow: 0 0 0 4px var(--hc-plum-soft); background: #fff; }
.hc-search-box i { color: var(--hc-muted); }
.hc-search-box input { flex: 1; border: 0; outline: 0; background: transparent; height: 52px; font-size: 16px; color: var(--hc-ink); min-width: 0; }
.hc-search-results { position: absolute; left: 22px; right: 22px; top: calc(100% - 10px); z-index: 20; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--hc-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(31, 26, 43, .14); }
.hc-search-results a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--hc-ink); line-height: 1.35; }
.hc-search-results a:hover { background: var(--hc-plum-soft); }
.hc-search-results span { font-size: 13px; color: var(--hc-muted); }
.hc-search-empty { padding: 10px 12px; font-size: 15px; color: var(--hc-ink-2); }

/* ---------- Sections ---------- */
.hc-section { padding: 64px 0; }
.hc-section--soft { background: var(--hc-paper-2); border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); }
.hc-section--article { padding-top: 44px; }
.hc-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.hc-section-head--left { text-align: left; margin: 0 0 24px; }
.hc-section-head h2 { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.hc-section-head p { color: var(--hc-ink-2); margin: 0; }

/* Category cards */
.hc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.hc-cat-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--hc-radius); text-decoration: none !important; color: var(--hc-ink) !important; box-shadow: var(--hc-shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.hc-cat-card:hover { transform: translateY(-3px); border-color: #d8cdea; box-shadow: 0 16px 36px rgba(61, 43, 90, .12); }
.hc-cat-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--hc-plum-soft); color: var(--hc-plum); font-size: 20px; }
.hc-cat-card:nth-child(3n+2) .hc-cat-icon { background: var(--hc-amber-soft); color: #b8602a; }
.hc-cat-card:nth-child(3n+3) .hc-cat-icon { background: var(--hc-teal-soft); color: var(--hc-teal); }
.hc-cat-name { font-size: 20px; font-weight: 700; }
.hc-cat-desc { font-size: 15px; color: var(--hc-ink-2); line-height: 1.55; flex: 1; }
.hc-cat-count { font-size: 14px; font-weight: 600; color: var(--hc-plum-2); }
.hc-cat-count i { margin-left: 6px; transition: transform .2s; }
.hc-cat-card:hover .hc-cat-count i { transform: translateX(4px); }

/* Popular + checklist */
.hc-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.hc-popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-popular a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 14px; text-decoration: none; color: var(--hc-ink); font-weight: 600; line-height: 1.35; }
.hc-popular a:hover { border-color: #d8cdea; }
.hc-popular small { display: block; font-weight: 400; color: var(--hc-muted); font-size: 13px; margin-top: 2px; }
.hc-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--hc-plum); color: #fff; font-size: 15px; }
.hc-start-card { background: var(--hc-plum); color: #efe9f8; border-radius: 22px; padding: 32px; box-shadow: 0 20px 40px rgba(61, 43, 90, .25); }
.hc-start-card h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.hc-start-card p { margin: 0 0 18px; color: #d9cfeb; }
.hc-checklist { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 10px; }
.hc-checklist li { counter-increment: c; display: flex; gap: 12px; align-items: baseline; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.hc-checklist li::before { content: counter(c); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--hc-amber); color: #fff; font-size: 13px; font-weight: 700; }
.hc-start-card a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.hc-start-card a:hover, .hc-start-card a:focus { color: #ffd0a8; text-decoration-color: #ffd0a8; }
.hc-band-card--accent a:not(.hc-btn) { color: #fff; }
.hc-band-card--accent a:not(.hc-btn):hover { color: #ffd0a8; }

/* Explore links */
.hc-explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hc-explore a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 14px; text-decoration: none; color: var(--hc-ink); font-weight: 600; font-size: 15px; }
.hc-explore a i { color: var(--hc-amber); width: 20px; text-align: center; }
.hc-explore a:hover { border-color: #d8cdea; color: var(--hc-plum); }

/* ---------- Layouts with sidebar ---------- */
.hc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.hc-layout--article { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; }
@media (min-width: 992px) {
  .hc-layout--article .hc-side-group ul { margin-left: 10px; padding-left: 6px; }
  .hc-layout--article .hc-side-group li a { padding-left: 8px; padding-right: 6px; }
}

.hc-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--hc-radius); padding: 14px; font-size: 14.5px; line-height: 1.4; }
.hc-side-toggle { display: none; }
.hc-side-home { display: flex; gap: 10px; align-items: center; padding: 10px 10px; border-radius: 10px; text-decoration: none !important; color: var(--hc-ink) !important; font-weight: 600; }
.hc-side-home i { color: var(--hc-plum-2); }
.hc .hc-side-group { border: 0; border-top: 1px solid var(--hc-line); border-radius: 0; margin: 0; padding: 0; background: none; box-shadow: none; }
.hc-side-group summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 12px 10px; font-weight: 600; color: var(--hc-ink); border-radius: 10px; }
.hc-side-group summary::-webkit-details-marker { display: none; }
.hc-side-group summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 11px; color: var(--hc-muted); transition: transform .2s; }
.hc-side-group[open] summary::after { transform: rotate(180deg); }
.hc-side-group summary i { width: 18px; text-align: center; color: var(--hc-plum-2); }
.hc-side-group ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; border-left: 2px solid var(--hc-paper-2); margin-left: 18px; }
.hc-side-group li a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--hc-ink-2); }
.hc-side-group li a:hover { background: var(--hc-paper); color: var(--hc-plum); }
.hc-side-group li a[aria-current] { background: var(--hc-plum-soft); color: var(--hc-plum); font-weight: 600; }

/* Category guide list */
.hc-list-title { font-size: 22px; margin: 0 0 18px; }
.hc-guide-list { display: grid; gap: 12px; }
.hc-guide { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 16px; text-decoration: none !important; color: var(--hc-ink) !important; transition: border-color .2s, transform .2s; }
.hc-guide:hover { border-color: #d8cdea; transform: translateX(3px); }
.hc-guide-num { flex: none; font-size: 22px; font-weight: 700; color: #cfc5e0; width: 36px; }
.hc-guide-body { flex: 1; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.hc-guide-body strong { font-size: 18px; }
.hc-guide-body > span { font-size: 15px; color: var(--hc-ink-2); }
.hc-guide-body .hc-plan-tag { align-self: flex-start; margin-top: 4px; }
.hc-guide > i { color: var(--hc-muted); }
.hc-explore-box { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--hc-teal-soft); border: 1px solid #cfe6e1; }
.hc-explore-box h2 { font-size: 18px; margin: 0 0 6px; }
.hc-explore-box p { margin: 0; font-size: 16px; }

/* ---------- Article ---------- */
.hc-article { min-width: 0; }
.hc-article p, .hc-article li { color: var(--hc-ink-2); }
.hc-article strong { color: var(--hc-ink); }
.hc-h2 { font-size: 27px; font-weight: 700; margin: 8px 0 16px; scroll-margin-top: 110px; }
.hc-sec { margin-top: 46px; scroll-margin-top: 110px; }
.hc-sec ul, .hc-sec ol { padding-left: 22px; }
.hc-before { background: var(--hc-card); border: 1px solid var(--hc-line); border-left: 5px solid var(--hc-teal); border-radius: 14px; padding: 18px 22px; margin-bottom: 36px; scroll-margin-top: 110px; }
.hc-before h2 { font-size: 18px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.hc-before h2 i { color: var(--hc-teal); }
.hc-before ul { margin: 0; padding-left: 20px; }
.hc-before li { margin: 4px 0; }

.hc-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.hc-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding-bottom: 34px; }
.hc-step:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, #d8cdea 0 6px, transparent 6px 12px); }
.hc-step-num { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--hc-plum); color: #fff; font-weight: 700; font-size: 20px; box-shadow: 0 8px 18px rgba(61, 43, 90, .25); }
.hc-step-body { background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: var(--hc-radius); padding: 22px 24px; box-shadow: var(--hc-shadow); min-width: 0; }
.hc-step-body h3 { font-size: 20px; font-weight: 700; margin: 2px 0 8px; }
.hc-step-body p:last-child { margin-bottom: 0; }
.hc-step-body ul { padding-left: 20px; }

.hc-shot { margin: 18px 0 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hc-line); background: #fff; box-shadow: 0 14px 34px rgba(31, 26, 43, .10); }
.hc-shot-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--hc-paper-2); border-bottom: 1px solid var(--hc-line); }
.hc-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c7; }
.hc-shot-bar span:nth-child(1) { background: #ef8f80; }
.hc-shot-bar span:nth-child(2) { background: #f1c56a; }
.hc-shot-bar span:nth-child(3) { background: #8cc98f; }
.hc-shot-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--hc-muted); background: #fff; padding: 2px 12px; border-radius: 6px; }
.hc-shot img { display: block; width: 100%; height: auto; }
.hc-shot--narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.hc-shot figcaption { font-size: 14px; color: var(--hc-muted); padding: 10px 14px; border-top: 1px solid var(--hc-line); background: #fff; }

.hc-note { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15.5px; }
.hc-note i { margin-top: 5px; }
.hc-note--tip { background: var(--hc-amber-soft); color: #6f3d14 !important; }
.hc-note--tip i { color: var(--hc-amber); }
.hc-note--info { background: var(--hc-plum-soft); color: var(--hc-plum) !important; }
.hc-note--warn { background: #fdecec; color: #8a2a2a !important; }
.hc-note span, .hc-note span * { color: inherit; }

.hc-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0; background: #fff; border: 1px solid var(--hc-line); border-radius: 14px; overflow: hidden; font-size: 15.5px; }
.hc-table th, .hc-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hc-line); vertical-align: top; line-height: 1.5; }
.hc-table th { background: var(--hc-paper-2); color: var(--hc-ink); font-weight: 700; }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-table-wrap { overflow-x: auto; }

.hc-faq { display: grid; gap: 10px; }
.hc .hc-faq details { margin: 0; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 14px; padding: 4px 18px; }
.hc-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--hc-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--hc-plum-2); }
.hc-faq details[open] summary::after { content: "−"; }
.hc-faq details > div { padding: 0 0 14px; }
.hc-faq details > div p { margin: 0; }

.hc-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hc-related-grid a { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 16px; text-decoration: none !important; color: var(--hc-ink) !important; line-height: 1.4; }
.hc-related-grid a:hover { border-color: #d8cdea; }
.hc-related-grid small { color: var(--hc-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.hc-related-grid strong { flex: 1; font-size: 16px; }
.hc-related-grid span { color: var(--hc-plum-2); font-size: 14px; font-weight: 600; }

/* Right rail */
.hc .hc-layout--article .hc-sec { margin-top: 48px; padding-top: 0; padding-bottom: 0; }
.hc-learn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; padding: 16px 20px; background: var(--hc-teal-soft); border: 1px solid #cfe6e1; border-radius: 16px; }
.hc-learn-title { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--hc-muted); }
.hc-learn ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.hc-learn li { margin: 0; }
.hc-learn a { color: var(--hc-teal); font-size: 15px; font-weight: 600; text-decoration: none; }
.hc-learn a i { font-size: 11px; margin-left: 3px; }
.hc-learn a:hover { text-decoration: underline; }

/* ---------- Bottom band ---------- */
.hc-band { padding: 56px 0 72px; border-top: 1px solid var(--hc-line); background: var(--hc-paper-2); }
.hc-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hc-band-card { display: flex; gap: 18px; padding: 28px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 20px; }
.hc-band-card--accent { background: linear-gradient(135deg, #3d2b5a, #5a4682); border: 0; color: #e8e1f4; }
.hc-band-card--accent .hc-band-title { color: #fff; }
.hc-band-card--accent p { color: #d9cfeb; }
.hc-band-icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--hc-amber-soft); color: var(--hc-amber); font-size: 20px; }
.hc-band-card--accent .hc-band-icon { background: rgba(255, 255, 255, .12); color: #ffd0a8; }
.hc-band-title { font-size: 21px; margin: 0 0 6px; }
.hc-band-card p { margin: 0 0 14px; font-size: 16px; }
.hc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: var(--hc-amber); color: #fff !important; font-weight: 600; text-decoration: none !important; font-size: 15px; }
.hc-btn:hover { background: #cc6f2b; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hc-hero { padding-top: 30px; }
  .hc-hero-grid, .hc-two, .hc-band-grid { grid-template-columns: 1fr; gap: 28px; }
  .hc-layout, .hc-layout--article { grid-template-columns: 1fr; gap: 24px; }
  .hc-side { position: static; max-height: none; padding: 0; border: 0; background: transparent; }
  .hc-side-toggle { display: flex; width: 100%; align-items: center; gap: 10px; justify-content: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--hc-line); background: var(--hc-card); font-weight: 600; color: var(--hc-ink); }
  .hc-side-nav { display: none; margin-top: 10px; background: var(--hc-card); border: 1px solid var(--hc-line); border-radius: 14px; padding: 12px; }
  .hc-side-nav.is-open { display: block; }
  .hc-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hc { font-size: 16px; }
  .hc-wrap { padding: 0 16px; }
  .hc-section { padding: 44px 0; }
  .hc-lead { font-size: 17px; }
  .hc-step { grid-template-columns: 1fr; gap: 10px; }
  .hc-step::before { display: none; }
  .hc-step-num { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
  .hc-step-body { padding: 18px; }
  .hc-search { padding: 16px; }
  .hc-guide { padding: 16px; gap: 12px; }
  .hc-guide-num { display: none; }
}
