/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--hc-font);
  background: var(--hc-bg);
  color: var(--hc-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.hc-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.hc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.hc-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}
.hc-nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.hc-nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.hc-nav-links { display: flex; gap: 28px; font-size: 13px; }
.hc-nav-links a { color: #888; text-decoration: none; transition: color 0.15s; }
.hc-nav-links a:hover, .hc-nav-links a.active { color: #1a1a1a; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hc-hero {
  padding: 64px 48px 48px;
  text-align: center;
  background: white;
}
.hc-hero h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #0a0a0a;
}
.hc-hero p {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
}

/* ── Search bar (hero) ────────────────────────────────────────────────────── */
.hc-search-wrap { max-width: 600px; margin: 0 auto; position: relative; }
.hc-search-wrap .hc-search__input {
  width: 100%;
  padding: 16px 120px 16px 48px;
  font-size: 15px;
  border: 1.5px solid #e5e5e5;
  border-radius: 16px;
  outline: none;
  background: #fafafa;
  color: #1a1a1a;
  transition: all 0.2s;
  font-family: inherit;
}
.hc-search-wrap .hc-search__input::placeholder { color: #bbb; }
.hc-search-wrap .hc-search__input::-webkit-search-cancel-button { display: none; }
.hc-search-wrap .hc-search__input:focus {
  border-color: var(--hc-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(2, 151, 255, 0.08);
}
.hc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hc-search-ai {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.hc-search-ai:hover { opacity: 0.9; }

.hc-search-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #bbb;
  text-align: center;
}

/* Popular shortcuts */
.hc-popular {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: #bbb;
  flex-wrap: wrap;
}
.hc-popular a {
  color: #888;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f5f5f5;
  font-size: 11px;
  transition: all 0.15s;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-popular a:hover { background: #eee; color: #555; }

/* ── Hero search state (triggered by search.js) ──────────────────────────── */
.hc-hero--searching { padding: 28px 48px 24px; }
.hc-hero--searching h1,
.hc-hero--searching > p:first-of-type { display: none; }
.hc-hero--searching .hc-popular { display: none; }
.hc-hero--searching .hc-search-hint { display: none; }

/* ── Body (below hero) ────────────────────────────────────────────────────── */
.hc-body { padding: 0 48px 64px; background: #fafafa; }

/* ── Category pills ───────────────────────────────────────────────────────── */
.hc-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 32px;
}
.hc-cat-pill {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #eee;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
}
.hc-cat-pill:hover { border-color: var(--hc-primary); color: var(--hc-primary); }
.hc-cat-pill-ct { font-size: 11px; color: #ccc; }
.hc-cat-dot {
  display: inline-block;
  width: 22px; height: 22px; border-radius: 6px;
  flex-shrink: 0; vertical-align: middle;
}
.hc-cat-dot--lg { width: 48px; height: 48px; border-radius: 14px; }
.hc-cat-dot--sm { width: 18px; height: 18px; border-radius: 4px; }

/* ── Category sections ────────────────────────────────────────────────────── */
.hc-section { max-width: 880px; margin: 0 auto; padding-top: 40px; }
.hc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}
.hc-section-link {
  font-size: 13px;
  color: var(--hc-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.hc-section-link:hover { opacity: 0.8; }

/* ── Article cards (homepage grid) ────────────────────────────────────────── */
.hc-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hc-article-card {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hc-article-card:hover { border-color: #ddd; transform: translateY(-1px); }
.hc-article-card__title { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: #1a1a1a; }
.hc-article-card:hover .hc-article-card__title { color: var(--hc-primary); }
.hc-article-card__desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-divider { height: 1px; background: #f0f0f0; max-width: 880px; margin: 40px auto 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.hc-footer {
  text-align: center;
  padding: 32px 48px;
  font-size: 13px;
  color: #999;
  background: #fafafa;
}
.hc-footer a { color: var(--hc-primary); text-decoration: none; }
.hc-footer a:hover { text-decoration: underline; }
.hc-footer a.hc-powered-badge:hover { text-decoration: none; }
.hc-footer-brand { margin-top: 8px; font-size: 12px; color: #ccc; }
.hc-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 400;
  color: #9CA3AF;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.hc-powered-badge__logo { border-radius: 4px; animation: hc-logo-pulse 3s ease-in-out infinite; }
@keyframes hc-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
.hc-powered-badge strong { font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.hc-powered-badge:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Inline search results ────────────────────────────────────────────────── */
.hc-search-results-inner { padding-top: 32px; padding-bottom: 32px; }

/* Results count header */
.hc-results-header { padding: 0 16px; margin-bottom: 12px; }
.hc-results-count { font-size: 13px; color: #9CA3AF; font-weight: 400; }

/* Flat result rows */
.hc-result {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.hc-result:hover { background: #F3F4F6; transform: translateX(4px); box-shadow: -2px 0 0 0 #0297FF; }
.hc-result + .hc-result { border-top: 1px solid #F3F4F6; }

.hc-result-title { font-size: 15px; font-weight: 600; color: #111827; line-height: 1.4; margin-bottom: 4px; }
.hc-result-snippet { font-size: 13px; color: #9CA3AF; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.hc-result-meta { margin-top: 2px; }
.hc-result-category { display: inline-block; font-size: 11px; font-weight: 500; color: #6B7280; background: #F3F4F6; padding: 2px 8px; border-radius: 4px; }

/* Keyword highlighting — subtle accent, not a colored box */
.hc-result mark,
.hc-results mark {
  background: none;
  color: #0297FF;
  font-weight: 600;
  padding: 0;
}

/* Keyboard shortcut hint */
.hc-shortcut-hint { font-size: 12px; color: #D1D5DB; text-align: center; margin-top: 20px; padding: 8px 0; }
.hc-shortcut-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-size: 10px;
  color: #9CA3AF;
  font-family: inherit;
}

/* ── AI Answer Box ────────────────────────────────────────────────────────── */
.hc-ai-box {
  background: #FAFBFF;
  border: 1px solid #EEF0FF;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.hc-ai-label {
  font-size: 11px;
  font-weight: 600;
  color: #764ba2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hc-ai-text {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}
.hc-ai-text p { margin: 0.5em 0; }
.hc-ai-text p:first-child { margin-top: 0; }
.hc-ai-text ol, .hc-ai-text ul { padding-left: 1.4em; margin: 0.5em 0; }
.hc-ai-text a { color: #0297FF; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(2, 151, 255, 0.3); transition: color 0.15s, text-decoration-color 0.15s; }
.hc-ai-text a:hover { color: #0070CC; text-decoration-color: #0070CC; }

/* AI source pills */
.hc-ai-sources { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.hc-ai-source {
  font-size: 11px;
  color: #6B7280;
  background: white;
  border: 1px solid #E5E7EB;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.hc-ai-source:hover { border-color: #0297FF; color: #0297FF; }
/* Thinking state */
.hc-ai-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: #FAFBFF;
  border: 1px solid #EEF0FF;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #6B7280;
}
.hc-ai-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #E5E7EB;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: hc-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* Steps */
.hc-ai-step { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.hc-ai-step__number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.hc-ai-step__text { font-size: 15px; line-height: 1.6; color: #374151; }

/* ── Category Page ────────────────────────────────────────────────────────── */
.hc-category-layout { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: start; }
.hc-category-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.hc-category-header__icon { font-size: 2rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.hc-category-header__title { font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.hc-category-header__desc { font-size: 0.9rem; color: var(--hc-text-secondary); }
.hc-category-main { padding-top: 0; }

/* Article list (category page) */
.hc-article-list { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); overflow: hidden; }
.hc-article-list .hc-article-card { border-radius: 0; border: none; border-bottom: 1px solid var(--hc-border); }
.hc-article-list .hc-article-card:last-child { border-bottom: none; }
.hc-article-list .hc-article-card:hover { background: var(--hc-bg); transform: none; }
.hc-article-card__excerpt { font-size: 0.8125rem; color: var(--hc-text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-article-card__excerpt mark { background: var(--hc-primary-light); color: var(--hc-primary); padding: 0 2px; border-radius: 2px; }
.hc-article-card__meta { font-size: 0.75rem; color: var(--hc-text-secondary); margin-top: 6px; display: block; }

/* Sidebar */
.hc-sidebar { background: var(--hc-card); border: 1px solid var(--hc-border); border-radius: var(--hc-radius); padding: 20px; position: sticky; top: 76px; }
.hc-sidebar__title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hc-text-secondary); margin-bottom: 12px; }
.hc-sidebar__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.hc-sidebar__link { display: block; padding: 7px 10px; border-radius: 8px; font-size: 0.875rem; color: var(--hc-text-secondary); transition: background 0.12s, color 0.12s; }
.hc-sidebar__link:hover { background: var(--hc-bg); color: var(--hc-text); }
.hc-sidebar__link--active { background: var(--hc-primary-light); color: var(--hc-primary); font-weight: 500; }

/* Breadcrumbs */
.hc-breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--hc-text-secondary); margin: 28px 0 24px; flex-wrap: wrap; }
.hc-breadcrumbs a { color: var(--hc-primary); }
.hc-breadcrumbs a:hover { text-decoration: underline; }
.hc-breadcrumbs__sep { color: var(--hc-border); }

/* ── Article Detail (Oneway style) ───────────────────────────────────────── */

/* Animations */
@keyframes hc-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hc-fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
.hc-article-body h2[id],
.hc-article-body h3[id] { scroll-margin-top: 80px; }

/* Breadcrumbs bar */
.hc-breadcrumbs-bar {
  background: var(--hc-card);
  border-bottom: 1px solid var(--hc-border);
  padding: 12px 0;
}
.hc-breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hc-text-secondary);
  flex-wrap: wrap;
}
.hc-breadcrumbs-nav a {
  color: var(--hc-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hc-breadcrumbs-nav a:hover { color: var(--hc-primary); }
.hc-breadcrumbs-nav svg { color: var(--hc-text-secondary); opacity: 0.5; flex-shrink: 0; }
.hc-breadcrumbs-current { font-weight: 500; color: var(--hc-text); }

/* Article header */
.hc-article-header {
  padding-top: 48px;
  padding-bottom: 40px;
  animation: hc-fade-down 0.4s ease-out both;
}
.hc-article-header-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.hc-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hc-category-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hc-article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hc-text);
  margin-bottom: 16px;
}

.hc-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--hc-text-secondary);
}
.hc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hc-meta-item svg { flex-shrink: 0; }
.hc-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hc-border);
}

/* Article body card */
.hc-article-body-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.hc-article-body-card {
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  padding: 40px;
  animation: hc-fade-up 0.4s ease-out 0.05s both;
}

/* Article body content styles */
.hc-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  letter-spacing: -0.01em;
}

.hc-article-body > *:last-child {
  margin-bottom: 0;
}

.hc-article-body h1 { font-size: 28px; font-weight: 700; color: #111827; margin: 40px 0 16px; letter-spacing: -0.02em; line-height: 1.3; }
.hc-article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hc-article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.hc-article-body > h2:first-child,
.hc-article-body > h3:first-child {
  margin-top: 0;
}
.hc-article-body p { font-size: 16px; line-height: 1.8; color: #374151; margin-bottom: 20px; }

/* Strong/bold text */
.hc-article-body strong,
.hc-article-body b {
  font-weight: 600;
  color: #111827;
}

/* Links */
.hc-article-body a {
  color: var(--hc-primary, #0297FF);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(2, 151, 255, 0.3);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.hc-article-body a:hover {
  color: #0070CC;
  text-decoration-color: #0070CC;
}
/* Safety net: links without valid href shouldn't look clickable */
.hc-article-body a:not([href]),
.hc-article-body a[href=""],
.hc-article-body a[href="#"] {
  color: inherit;
  text-decoration: none;
  cursor: text;
}

/* Lists */
.hc-article-body ul,
.hc-article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.hc-article-body ul { list-style: disc; }
.hc-article-body ol { list-style: decimal; }
.hc-article-body li {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 6px;
  padding-left: 4px;
}
.hc-article-body li:last-child {
  margin-bottom: 0;
}
/* Nested lists */
.hc-article-body li ul,
.hc-article-body li ol {
  margin-top: 6px;
  margin-bottom: 6px;
}
/* Bold text inside list items */
.hc-article-body li strong {
  color: #111827;
}

/* Callout blocks */
.hc-article-body [data-type="callout"],
.hc-article-body .callout,
.hc-article-body blockquote {
  border-left: 4px solid var(--hc-primary, #0297FF);
  background: #F0F7FF;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}
.hc-article-body [data-type="callout"] p,
.hc-article-body .callout p,
.hc-article-body blockquote p {
  margin-bottom: 0;
  color: #1E40AF;
}
.hc-article-body [data-type="callout"] a,
.hc-article-body .callout a {
  color: #1E40AF;
  text-decoration-color: rgba(30, 64, 175, 0.4);
}
/* Warning variant */
.hc-article-body [data-variant="warning"],
.hc-article-body .callout-warning {
  border-left-color: #F59E0B;
  background: #FFFBEB;
}
.hc-article-body [data-variant="warning"] p,
.hc-article-body .callout-warning p {
  color: #92400E;
}
.hc-article-body [data-type="callout"][data-variant="success"],
.hc-article-body .callout-success { border-left-color: #10B981; background: #ECFDF5; }
.hc-article-body [data-variant="success"] p,
.hc-article-body .callout-success p { color: #065F46; }
.hc-article-body [data-type="callout"][data-variant="error"],
.hc-article-body .callout-error { border-left-color: #EF4444; background: #FEF2F2; }
.hc-article-body [data-variant="error"] p,
.hc-article-body .callout-error p { color: #991B1B; }

/* Code blocks */
.hc-article-body pre {
  background: #0F172A;
  color: #E2E8F0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid #1E293B;
}
.hc-article-body code { font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Menlo, monospace; }
.hc-article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* Inline code */
.hc-article-body p code,
.hc-article-body li code {
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

/* Images — display:block + margin:auto centers them; max-width prevents overflow */
.hc-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin: 8px auto 28px;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hc-article-body img:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Image alignment — TipTap outputs data-alignment + inline styles */
.hc-article-body img[data-alignment="center"] {
  margin-left: auto;
  margin-right: auto;
}
.hc-article-body img[data-alignment="right"] {
  margin-left: auto;
  margin-right: 0;
}
.hc-article-body img[data-alignment="left"] {
  margin-left: 0;
  margin-right: auto;
}

/* Tables */
.hc-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
.hc-article-body thead {
  background: #F8FAFC;
}
.hc-article-body th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #1E293B;
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}
.hc-article-body td {
  padding: 10px 16px;
  color: #475569;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14px;
  line-height: 1.5;
}
.hc-article-body tr:last-child td { border-bottom: none; }
.hc-article-body tbody tr { transition: background 0.1s ease; }
.hc-article-body tbody tr:hover { background: #F8FAFC; }

/* Video embeds */
.hc-article-body iframe { max-width: 100%; border-radius: 8px; margin-bottom: 16px; }
.hc-article-body .video-embed { margin: 1.5em 0; }
.hc-article-body .video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: none; }

/* Horizontal rules */
.hc-article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #D1D5DB, transparent);
  margin: 40px 0;
}

/* Back to help center */
.hc-article-back {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 64px;
  text-align: center;
  animation: hc-fade-up 0.3s ease-out 0.15s both;
}
.hc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--hc-border);
  background: var(--hc-card);
  color: var(--hc-text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hc-back-btn:hover {
  border-color: var(--hc-primary);
  color: var(--hc-primary);
  background: rgba(2, 151, 255, 0.04);
}

/* Skeleton (reusable) */
.hc-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: hc-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes hc-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Search Page ──────────────────────────────────────────────────────────── */
.hc-search-page { padding-top: 36px; }
.hc-search-page__title { font-size: 1.375rem; font-weight: 600; margin-bottom: 20px; }
.hc-search-page__count { font-size: 0.875rem; color: var(--hc-text-secondary); margin-bottom: 16px; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.hc-404 { text-align: center; padding: 80px 24px; }
.hc-404__icon { font-size: 3rem; margin-bottom: 16px; }
.hc-404__title { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.hc-404__desc { color: var(--hc-text-secondary); margin-bottom: 28px; }

/* ── Button ───────────────────────────────────────────────────────────────── */
.hc-btn { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; font-family: var(--hc-font); border: none; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }
.hc-btn:hover { opacity: 0.85; }
.hc-btn--primary { background: var(--hc-primary); color: #fff; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hc-empty { color: var(--hc-text-secondary); font-size: 0.9375rem; padding: 32px 0; text-align: center; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hc-nav { padding: 12px 20px; }
  .hc-nav-links { gap: 16px; font-size: 12px; }
  .hc-hero { padding: 40px 20px 36px; }
  .hc-hero h1 { font-size: 26px; }
  .hc-hero p { font-size: 14px; margin-bottom: 24px; }
  .hc-search-wrap .hc-search__input { padding: 14px 110px 14px 44px; font-size: 14px; }
  .hc-search-ai { padding: 6px 12px; font-size: 11px; }
  .hc-body { padding: 0 20px 48px; }
  .hc-cats { gap: 8px; padding-top: 24px; }
  .hc-cat-pill { padding: 6px 12px; font-size: 12px; }
  .hc-articles { grid-template-columns: 1fr; }
  .hc-section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hc-category-layout { grid-template-columns: 1fr; }
  .hc-sidebar { display: none; }
  .hc-footer { padding: 24px 20px; }

  /* Article page responsive */
  .hc-article-header { padding-top: 32px; padding-bottom: 28px; }
  .hc-article-header-inner { padding: 0 16px; }
  .hc-article-title { font-size: 28px; }
  .hc-article-body-wrap { padding: 0 16px 24px; }
  .hc-article-body-card { padding: 24px 20px; border-radius: 8px; }
  .hc-article-back { padding: 16px 16px 48px; }
  .hc-breadcrumbs-bar { padding: 10px 0; }
  .hc-breadcrumbs-nav { font-size: 13px; }
}

@media (max-width: 480px) {
  .hc-hero h1 { font-size: 22px; }
  .hc-nav-links { display: none; }
  .hc-popular { flex-wrap: wrap; }
  .hc-container { padding: 0 16px; }

  /* Article page small screens */
  .hc-article-body-wrap { padding: 0 12px 20px; }
  .hc-article-body-card { padding: 16px; border-left: none; border-right: none; border-radius: 0; }
  .hc-article-header-inner { padding: 0 12px; }
}
