/* ============================================================
   BMP360 Help Center — Main Stylesheet
   Product:    MoreTech BMP360
   Company:    MoreTech-LB  (moretech-lb.net)
   Version:    2026.2 — Mobile-First Rebuild
   ============================================================ */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --brand-primary:    #1a56db;
  --brand-dark:       #1e3a5f;
  --brand-mid:        #1d4ed8;
  --brand-accent:     #0ea5e9;
  --brand-light:      #eff6ff;
  --brand-lighter:    #f8faff;
  --brand-gradient:   linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  --text-primary:     #111827;
  --text-secondary:   #374151;
  --text-muted:       #6b7280;
  --text-faint:       #9ca3af;
  --border-color:     #e5e7eb;
  --border-light:     #f3f4f6;
  --bg-page:          #f9fafb;
  --bg-white:         #ffffff;
  --bg-sidebar:       #fafafa;
  --success:          #10b981;
  --warning:          #f59e0b;
  --danger:           #ef4444;
  --info:             #3b82f6;
  --shadow-xs:        0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:        0 1px 4px rgba(0,0,0,.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:        0 20px 60px rgba(0,0,0,.14);
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;
  --sidebar-width:    272px;
  --navbar-height:    60px;
  --transition:       all .2s ease;
  --transition-slow:  all .35s ease;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
}
::selection { background: #bfdbfe; color: var(--brand-dark); }
a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-mid); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   READING PROGRESS BAR
============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  z-index: 2000;
  transition: width .1s linear;
}

/* ============================================================
   NAVBAR
   FIX: Hamburger removed — was showing on mobile but had no
        working panel. Clicking did nothing. Confusing UX.
        Mobile navigation now handled by .hc-mobile-subnav.
============================================================ */
.hc-navbar {
  background: var(--brand-gradient);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  gap: .6rem;
}

.hc-back-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
}
.hc-back-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  text-decoration: none;
  transform: translateX(-2px);
}
.hc-back-btn i { font-size: .75rem; }

.hc-navbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

.hc-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.hc-logo-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.28);
  line-height: 1.5;
}
.hc-logo-text {
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
}
.hc-nav-spacer { flex: 1; }

.hc-nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.hc-nav-links a {
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  padding: .38rem .7rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.hc-nav-links a:hover,
.hc-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.16);
  text-decoration: none;
}
.hc-nav-search-btn {
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 20px !important;
  padding: .38rem .9rem !important;
}
.hc-nav-search-btn:hover { background: rgba(255,255,255,.24) !important; }

/* HAMBURGER — PERMANENTLY DISABLED */
.hc-mobile-toggle  { display: none !important; }
.hc-mobile-overlay { display: none !important; }

/* ── Mobile Sub-Nav (replaces hamburger, no JS needed) ── */
.hc-mobile-subnav {
  display: none;
  background: rgba(20, 46, 90, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: var(--navbar-height);
  z-index: 999;
}
.hc-mobile-subnav::-webkit-scrollbar { display: none; }
.hc-mobile-subnav-inner {
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  white-space: nowrap;
  min-width: max-content;
}
.hc-mobile-subnav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 500;
  padding: .55rem .75rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.hc-mobile-subnav a:hover,
.hc-mobile-subnav a.active {
  color: #fff;
  border-bottom-color: var(--brand-accent);
  text-decoration: none;
}
.hc-mobile-subnav a i { font-size: .72rem; }

/* ============================================================
   HERO
============================================================ */
.hc-hero {
  background: var(--brand-gradient);
  color: #fff;
  padding: 3.5rem 1.5rem 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hc-hero-inner { position: relative; }

/* FIX: pill was wrapping URL onto second line on mobile */
.hc-hero-brand-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .4rem;
  font-size: .74rem;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}
.hc-hero-brand-pill i { font-size: .7rem; color: rgba(255,255,255,.55); flex-shrink: 0; }
.hc-hero-brand-pill a {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.hc-hero-brand-pill a:hover { color: #fff; }
.hc-hero-brand-pill .pill-sep {
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
}

.hc-hero h1 {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: .6rem;
  line-height: 1.2;
}
.hc-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hc-searchbar-wrap { max-width: 600px; margin: 0 auto; }
.hc-searchbar {
  display: flex;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid transparent;
  transition: var(--transition);
}
.hc-searchbar:focus-within { border-color: var(--brand-accent); }
.hc-searchbar input {
  flex: 1;
  border: none;
  outline: none;
  padding: .85rem 1.2rem;
  font-size: .9rem;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}
.hc-searchbar input::placeholder { color: var(--text-faint); }
.hc-searchbar button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: .85rem 1.4rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.hc-searchbar button:hover { background: var(--brand-dark); }

.hc-popular-tags {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.hc-popular-tags span { color: rgba(255,255,255,.55); font-size: .78rem; flex-shrink: 0; }
.hc-popular-tags a {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}
.hc-popular-tags a:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }

/* ============================================================
   STATS BAR
   FIX: flex with flex-wrap was breaking into 3 messy rows.
        Desktop: single flex row. Mobile: 2-column grid.
============================================================ */
.hc-stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: .7rem 0;
}
.hc-stats-bar .hc-stats-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hc-stats-bar .hc-stats-inner::-webkit-scrollbar { display: none; }
.hc-stats-bar .stat {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.hc-stats-bar .stat i { color: var(--brand-primary); font-size: .8rem; }
.hc-stats-bar .stat strong { color: var(--text-secondary); }
.hc-stat-brand { border-left: 1px solid var(--border-color); padding-left: 1.5rem; }
.hc-stat-brand a { color: var(--brand-primary); font-weight: 600; }
.hc-stat-brand a:hover { color: var(--brand-dark); text-decoration: underline; }

/* ============================================================
   QUICK-START STRIP
   FIX: flex-wrap creating chaotic paragraph on mobile.
        Mobile: stacked label + horizontally scrollable links.
============================================================ */
.hc-quickstart-strip {
  background: var(--brand-lighter);
  border-bottom: 1px solid #dbeafe;
  padding: .6rem 0;
}
.hc-qs-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hc-qs-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .79rem;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.hc-qs-label i { color: var(--warning); font-size: .82rem; }
.hc-qs-label span { color: var(--text-muted); font-weight: 400; }
.hc-qs-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.hc-qs-links a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
  font-weight: 500;
  color: var(--brand-primary);
  background: rgba(26,86,219,.07);
  border: 1px solid rgba(26,86,219,.18);
  border-radius: 20px;
  padding: .24rem .7rem;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.hc-qs-links a:hover {
  background: var(--brand-light);
  border-color: var(--brand-primary);
  color: var(--brand-dark);
  text-decoration: none;
}
.hc-qs-links a i { font-size: .7rem; }

/* ============================================================
   SECTIONS
   FIX: 3.5rem padding was creating huge grey voids on mobile.
============================================================ */
.hc-section { padding: 3rem 0; }
.hc-section-alt { background: var(--bg-white); }
.hc-section-title { text-align: center; margin-bottom: 2rem; }
.hc-section-title h2 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.hc-section-title p { color: var(--text-muted); margin-top: .35rem; font-size: .92rem; }

/* ============================================================
   CATEGORY CARDS
============================================================ */
.hc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  align-items: start;
}
.hc-cat-card[data-href] { cursor: pointer; }
.hc-cat-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: var(--transition);
  color: inherit;
}
.hc-cat-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 20px rgba(26,86,219,.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.hc-cat-card-header { display: flex; align-items: center; gap: .8rem; }
.hc-cat-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hc-cat-card h5 { font-size: .96rem; font-weight: 700; margin: 0; color: var(--text-primary); line-height: 1.3; }
.hc-cat-card .desc { font-size: .81rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.hc-cat-card .articles-preview {
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: .6rem;
}
.hc-cat-card .articles-preview li a {
  font-size: .79rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: .35rem; padding: 3px 0;
}
.hc-cat-card .articles-preview li a:hover { color: var(--brand-primary); text-decoration: none; }
.hc-cat-card .articles-preview li a::before { content: '›'; color: var(--text-faint); font-size: .9em; flex-shrink: 0; }
.hc-cat-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; padding-top: .5rem; }
.hc-article-count {
  background: var(--brand-light); color: var(--brand-primary);
  font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 20px;
}

.ic-blue   { background: #eff6ff; color: #1a56db; }
.ic-teal   { background: #f0fdfa; color: #0d9488; }
.ic-green  { background: #ecfdf5; color: #059669; }
.ic-orange { background: #fff7ed; color: #ea580c; }
.ic-purple { background: #f5f3ff; color: #7c3aed; }
.ic-indigo { background: #eef2ff; color: #4338ca; }
.ic-sky    { background: #f0f9ff; color: #0284c7; }
.ic-pink   { background: #fdf2f8; color: #db2777; }
.ic-yellow { background: #fefce8; color: #ca8a04; }
.ic-red    { background: #fef2f2; color: #dc2626; }
.ic-slate  { background: #f1f5f9; color: #475569; }
.ic-cyan   { background: #ecfeff; color: #0891b2; }

/* ============================================================
   POPULAR ARTICLES
============================================================ */
.hc-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .55rem;
}
.hc-article-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .8rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .83rem;
  transition: var(--transition); text-decoration: none;
}
.hc-article-link:hover {
  border-color: var(--brand-primary); color: var(--brand-primary);
  background: var(--brand-light); text-decoration: none;
  transform: translateX(2px);
}
.hc-article-link i { color: var(--text-faint); font-size: .78rem; flex-shrink: 0; }
.hc-article-link:hover i { color: var(--brand-primary); }

/* ============================================================
   SUPPORT CTA
============================================================ */
.hc-support-card {
  background: var(--brand-gradient); color: #fff;
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; margin-top: 2.5rem;
  position: relative; overflow: hidden;
}
.hc-support-card::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hc-support-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.3rem; position: relative;
}
.hc-support-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .45rem; position: relative; }
.hc-support-card p { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 1.35rem; position: relative; }
.hc-support-actions {
  display: flex; justify-content: center;
  gap: .65rem; flex-wrap: wrap; position: relative;
}
.hc-btn-white {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--brand-primary);
  padding: .6rem 1.35rem; border-radius: 50px;
  font-weight: 700; font-size: .85rem;
  transition: var(--transition); text-decoration: none;
}
.hc-btn-white:hover { background: #f0f6ff; box-shadow: var(--shadow-md); text-decoration: none; color: var(--brand-dark); }
.hc-btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.hc-btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; box-shadow: var(--shadow-md); }

/* ============================================================
   FOOTER
============================================================ */
.hc-footer { background: var(--brand-dark); color: rgba(255,255,255,.7); padding: 3rem 0 0; }
.hc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.hc-footer-logo { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.hc-footer-logo-badge {
  background: rgba(255,255,255,.15); color: #fff;
  font-weight: 800; font-size: .8rem; letter-spacing: 1px;
  padding: 3px 9px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.22);
}
.hc-footer-logo-text { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 500; }
.hc-footer-brand p {
  font-size: .79rem; color: rgba(255,255,255,.5);
  line-height: 1.65; margin-bottom: .8rem;
}
.hc-footer-brand p a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; }
.hc-footer-brand p a:hover { color: #fff; }
.hc-footer-parent {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: .28rem .8rem;
}
.hc-footer-parent-link {
  display: inline-flex; align-items: center; gap: .28rem;
  color: rgba(255,255,255,.75) !important; font-weight: 600;
  font-size: .76rem; text-decoration: none !important; transition: var(--transition);
}
.hc-footer-parent-link:hover { color: #fff !important; }
.hc-footer-parent-link i { font-size: .7rem; }
.hc-footer-col h6 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.9); margin-bottom: .8rem;
}
.hc-footer-col a {
  display: block; font-size: .8rem; color: rgba(255,255,255,.5);
  margin-bottom: .32rem; transition: var(--transition);
}
.hc-footer-col a:hover { color: #fff; text-decoration: none; }
.hc-footer-back-link {
  display: inline-flex !important; align-items: center; gap: .32rem;
  margin-top: .45rem; color: var(--brand-accent) !important;
  font-size: .78rem !important; font-weight: 500;
}
.hc-footer-back-link:hover { color: #fff !important; }
.hc-footer-bottom-wrap { background: rgba(0,0,0,.15); border-top: 1px solid rgba(255,255,255,.08); }
.hc-footer-bottom {
  padding: 1.1rem 0; display: flex; justify-content: space-between;
  align-items: center; font-size: .76rem; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: .65rem;
}
.hc-footer-bottom a { color: rgba(255,255,255,.45); }
.hc-footer-bottom a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ============================================================
   BACK TO TOP
============================================================ */
#back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--brand-primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px);
  transition: var(--transition); z-index: 500; pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--brand-dark); }

/* ============================================================
   DOC LAYOUT
============================================================ */
.hc-doc-layout { display: flex; min-height: calc(100vh - var(--navbar-height)); background: var(--bg-page); }
.hc-sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: var(--bg-sidebar); border-right: 1px solid var(--border-color);
  position: sticky; top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto; overflow-x: hidden;
  padding: 1.5rem 0 3rem;
  scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
  transition: transform .3s ease;
}
.hc-sidebar::-webkit-scrollbar { width: 4px; }
.hc-sidebar::-webkit-scrollbar-track { background: transparent; }
.hc-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.hc-sidebar-home { display: flex; align-items: center; gap: .5rem; padding: .5rem 1.25rem; color: var(--text-muted); font-size: .8rem; margin-bottom: .5rem; }
.hc-sidebar-home:hover { color: var(--brand-primary); text-decoration: none; }
.hc-sidebar-section { margin-bottom: .25rem; }
.hc-sidebar-section-title { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-faint); padding: .7rem 1.25rem .3rem; display: flex; align-items: center; gap: .4rem; }
.hc-sidebar-nav { list-style: none; }
.hc-sidebar-nav li a { display: flex; align-items: center; gap: .5rem; padding: .4rem 1.25rem; color: var(--text-secondary); font-size: .845rem; border-left: 3px solid transparent; transition: var(--transition); line-height: 1.4; }
.hc-sidebar-nav li a:hover { color: var(--brand-primary); background: var(--brand-light); border-left-color: rgba(26,86,219,.3); text-decoration: none; }
.hc-sidebar-nav li a.active { color: var(--brand-primary); background: var(--brand-light); border-left-color: var(--brand-primary); font-weight: 600; }
.hc-sidebar-nav li a i { font-size: .76rem; width: 14px; text-align: center; flex-shrink: 0; opacity: .7; }
.hc-sidebar-nav li a.active i { opacity: 1; }
.hc-sidebar-divider { height: 1px; background: var(--border-color); margin: .7rem 1.25rem; }
.hc-sidebar-search { padding: .7rem 1.25rem; margin-bottom: .25rem; }
.hc-sidebar-search input { width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: .42rem .75rem .42rem 2rem; font-size: .79rem; color: var(--text-primary); background: var(--bg-white); outline: none; transition: var(--transition); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .6rem center; }
.hc-sidebar-search input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.hc-sidebar-search input::placeholder { color: var(--text-faint); }

.hc-article-wrapper { flex: 1; min-width: 0; display: flex; }
.hc-article-main { flex: 1; min-width: 0; padding: 2.25rem 2.5rem 4rem; max-width: 800px; }
.hc-article-toc-col { width: 220px; min-width: 220px; padding: 2.25rem 1rem 2.25rem 0; position: sticky; top: var(--navbar-height); height: calc(100vh - var(--navbar-height)); overflow-y: auto; }

.hc-breadcrumb { display: flex; align-items: center; gap: .32rem; flex-wrap: wrap; font-size: .77rem; color: var(--text-muted); margin-bottom: 1.5rem; padding: .55rem .8rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.hc-breadcrumb a { color: var(--text-muted); }
.hc-breadcrumb a:hover { color: var(--brand-primary); }
.hc-breadcrumb span.current { color: var(--text-primary); font-weight: 500; }
.hc-breadcrumb-sep { color: var(--border-color); font-size: .85em; }

.hc-article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.hc-article-header h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.25; margin-bottom: .7rem; color: var(--text-primary); }
.hc-article-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .77rem; color: var(--text-muted); }
.hc-badge-cat { background: var(--brand-light); color: var(--brand-primary); font-weight: 600; font-size: .71rem; padding: 2px 9px; border-radius: 20px; }
.hc-badge-new { background: #ecfdf5; color: #065f46; font-weight: 600; font-size: .71rem; padding: 2px 9px; border-radius: 20px; }
.hc-article-meta .sep { color: var(--border-color); }

.hc-article-body { color: var(--text-secondary); }
.hc-article-body h2 { font-size: 1.28rem; font-weight: 700; color: var(--text-primary); margin-top: 2.5rem; margin-bottom: .8rem; padding-top: 2rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border-color); scroll-margin-top: calc(var(--navbar-height) + 1rem); }
.hc-article-body h3 { font-size: 1.03rem; font-weight: 700; color: var(--brand-dark); margin-top: 1.5rem; margin-bottom: .55rem; scroll-margin-top: calc(var(--navbar-height) + 1rem); }
.hc-article-body p { margin-bottom: .88rem; line-height: 1.75; }
.hc-article-body ul, .hc-article-body ol { padding-left: 1.35rem; margin-bottom: .88rem; }
.hc-article-body li { margin-bottom: .28rem; }
.hc-article-body strong { color: var(--text-primary); font-weight: 600; }
.hc-article-body code { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 1px 6px; border-radius: 4px; font-size: .875em; font-family: 'Fira Code','Consolas',monospace; color: #1e40af; }

.hc-callout { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 1.2rem 0; font-size: .87rem; line-height: 1.6; }
.hc-callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.hc-callout strong { display: block; margin-bottom: .12rem; }
.hc-callout-tip     { background: #eff6ff; border-left: 3px solid #3b82f6; }
.hc-callout-tip strong { color: #1d4ed8; }
.hc-callout-note    { background: #fffbeb; border-left: 3px solid #f59e0b; }
.hc-callout-note strong { color: #92400e; }
.hc-callout-success { background: #ecfdf5; border-left: 3px solid #10b981; }
.hc-callout-success strong { color: #065f46; }
.hc-callout-warn    { background: #fef2f2; border-left: 3px solid #ef4444; }
.hc-callout-warn strong { color: #991b1b; }

.hc-steps { counter-reset: hc-step; list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.hc-steps li { counter-increment: hc-step; display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .8rem; padding: .7rem .95rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: .89rem; }
.hc-steps li::before { content: counter(hc-step); min-width: 26px; height: 26px; background: var(--brand-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.hc-table { width: 100%; border-collapse: collapse; font-size: .87rem; margin: 1rem 0 1.2rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-color); }
.hc-table th { background: var(--bg-page); color: var(--text-secondary); font-weight: 600; font-size: .77rem; text-transform: uppercase; letter-spacing: .5px; padding: .62rem 1rem; border-bottom: 1px solid var(--border-color); text-align: left; }
.hc-table td { padding: .62rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); vertical-align: top; }
.hc-table tr:last-child td { border-bottom: none; }
.hc-table tr:hover td { background: var(--brand-lighter); }
.hc-status { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.hc-status-paid    { background: #ecfdf5; color: #065f46; }
.hc-status-draft   { background: #f1f5f9; color: #475569; }
.hc-status-overdue { background: #fef2f2; color: #991b1b; }
.hc-status-sent    { background: #eff6ff; color: #1d4ed8; }

.hc-toc { position: sticky; top: calc(var(--navbar-height) + 1.5rem); }
.hc-toc-title { font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: .7rem; }
.hc-toc-nav { list-style: none; }
.hc-toc-nav li a { display: block; font-size: .79rem; color: var(--text-muted); padding: .24rem .5rem; border-left: 2px solid var(--border-color); transition: var(--transition); line-height: 1.4; }
.hc-toc-nav li a:hover { color: var(--brand-primary); border-left-color: var(--brand-primary); text-decoration: none; }
.hc-toc-nav li a.toc-active { color: var(--brand-primary); border-left-color: var(--brand-primary); font-weight: 600; }
.hc-toc-nav li.toc-h3 a { padding-left: 1.1rem; font-size: .74rem; }

.hc-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.hc-article-nav a { display: flex; flex-direction: column; padding: .95rem 1.2rem; background: var(--bg-white); border: 1.5px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); color: inherit; text-decoration: none; gap: .22rem; }
.hc-article-nav a:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.hc-article-nav a.nav-next { text-align: right; }
.hc-article-nav .nav-label { font-size: .71rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; display: flex; align-items: center; gap: .3rem; }
.hc-article-nav a.nav-next .nav-label { justify-content: flex-end; }
.hc-article-nav .nav-title { font-size: .88rem; color: var(--brand-primary); font-weight: 600; line-height: 1.3; }
.hc-article-nav a.single { grid-column: 1 / -1; text-align: center; align-items: center; }

.hc-feedback { margin-top: 2.5rem; padding: 1.2rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); text-align: center; }
.hc-feedback p { font-size: .88rem; color: var(--text-secondary); margin-bottom: .7rem; }
.hc-feedback-btns { display: flex; justify-content: center; gap: .5rem; }
.hc-feedback-btn { display: flex; align-items: center; gap: .38rem; padding: .42rem .95rem; border-radius: var(--radius-sm); font-size: .81rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border-color); background: var(--bg-white); color: var(--text-secondary); transition: var(--transition); }
.hc-feedback-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.hc-feedback-btn.yes:hover { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.hc-feedback-btn.no:hover  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.hc-feedback-thanks { display: none; font-size: .84rem; color: var(--success); font-weight: 600; }

.hc-related { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--brand-lighter); border: 1px solid #dbeafe; border-radius: var(--radius-md); }
.hc-related h5 { font-size: .84rem; font-weight: 700; margin-bottom: .7rem; color: var(--text-primary); }
.hc-related a { display: flex; align-items: center; gap: .45rem; color: var(--text-secondary); font-size: .84rem; padding: .32rem 0; border-bottom: 1px solid #dbeafe; }
.hc-related a:last-child { border-bottom: none; }
.hc-related a:hover { color: var(--brand-primary); text-decoration: none; }
.hc-related a i { color: var(--brand-accent); font-size: .74rem; }

.hc-search-hero { background: var(--brand-gradient); padding: 2.5rem 0; }
.hc-search-hero h2 { color: #fff; font-size: 1.45rem; margin-bottom: 1rem; }
.hc-search-input-wrap { display: flex; max-width: 640px; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hc-search-input-wrap input { flex: 1; border: none; outline: none; padding: .78rem 1.2rem; font-size: .9rem; color: var(--text-primary); min-width: 0; }
.hc-search-input-wrap button { background: var(--brand-primary); color: #fff; border: none; padding: .78rem 1.3rem; font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.hc-search-input-wrap button:hover { background: var(--brand-dark); }

.hc-search-filters { display: flex; gap: .38rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hc-filter-btn { padding: .32rem .8rem; border-radius: 20px; font-size: .78rem; border: 1.5px solid var(--border-color); background: var(--bg-white); color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.hc-filter-btn:hover, .hc-filter-btn.active { background: var(--brand-light); border-color: var(--brand-primary); color: var(--brand-primary); font-weight: 600; }
.hc-result-item { display: block; padding: 1.05rem 1.2rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: .55rem; transition: var(--transition); color: inherit; }
.hc-result-item:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.hc-result-item h6 { font-size: .93rem; font-weight: 600; color: var(--brand-primary); margin-bottom: .22rem; }
.hc-result-item p { font-size: .83rem; color: var(--text-secondary); margin: 0 0 .32rem; line-height: 1.5; }
.hc-result-meta { display: flex; align-items: center; gap: .48rem; font-size: .74rem; color: var(--text-muted); }
.hc-result-item mark { background: #fef3c7; color: #92400e; padding: 0 2px; border-radius: 2px; font-style: normal; }
.hc-no-results { text-align: center; padding: 3.5rem 2rem; color: var(--text-muted); }
.hc-no-results .nr-icon { font-size: 3rem; margin-bottom: 1rem; }
.hc-result-count { font-size: .83rem; color: var(--text-muted); margin-bottom: 1rem; }
.hc-result-count strong { color: var(--text-primary); }

.hc-search-suggestions { margin-top: 2rem; padding: 1.2rem 1.35rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.hc-suggestions-label { font-size: .84rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .7rem; display: flex; align-items: center; gap: .38rem; }
.hc-suggestions-label i { color: var(--warning); font-size: .84rem; }

.hc-faq-group { margin-bottom: 2rem; }
.hc-faq-group h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.hc-accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: .38rem; overflow: hidden; }
.hc-accordion-btn { width: 100%; text-align: left; background: var(--bg-white); border: none; padding: .88rem 1.05rem; font-size: .88rem; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .7rem; transition: var(--transition); }
.hc-accordion-btn:hover { background: var(--brand-lighter); color: var(--brand-primary); }
.hc-accordion-btn.open { background: var(--brand-light); color: var(--brand-primary); }
.hc-accordion-btn .hc-chevron { transition: transform .25s ease; flex-shrink: 0; color: var(--text-faint); font-size: .78rem; }
.hc-accordion-btn.open .hc-chevron { transform: rotate(180deg); color: var(--brand-primary); }
.hc-accordion-body { display: none; padding: .88rem 1.05rem; background: var(--bg-white); border-top: 1px solid var(--border-color); font-size: .87rem; color: var(--text-secondary); line-height: 1.7; }
.hc-accordion-body.open { display: block; }

/* ============================================================
   PAGE HERO  (categories.html + inner pages)
============================================================ */
.hc-page-hero { background: var(--brand-gradient); padding: 2.25rem 0 1.75rem; position: relative; overflow: hidden; }
.hc-page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hc-page-hero-inner { display: flex; align-items: center; gap: 1rem; position: relative; }
.hc-page-hero-icon { width: 50px; height: 50px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; flex-shrink: 0; }
.hc-page-hero h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: .18rem; line-height: 1.2; }
.hc-page-hero p { color: rgba(255,255,255,.72); font-size: .9rem; margin: 0; }

/* ============================================================
   RESPONSIVE — TABLET  (≤ 991px)
============================================================ */
@media (max-width: 991px) {
  .hc-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hc-footer-brand { grid-column: 1 / -1; }
  .hc-article-toc-col { display: none; }
  .hc-article-main { max-width: 100%; padding: 1.5rem 1.25rem 3rem; }
  .hc-sidebar { position: fixed; top: var(--navbar-height); left: 0; height: calc(100vh - var(--navbar-height)); z-index: 950; transform: translateX(-100%); box-shadow: var(--shadow-xl); background: var(--bg-white); }
  .hc-sidebar.mobile-open { transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 767px)
============================================================ */
@media (max-width: 767px) {

  /* Nav */
  .hc-nav-links     { display: none; }
  .hc-back-label    { display: none; }
  .hc-navbar-divider{ display: none; }
  .hc-mobile-subnav { display: block; }

  /* Hero */
  .hc-hero { padding: 2.25rem 1rem 2rem; }
  .hc-hero h1 { font-size: 1.65rem; }
  .hc-hero p  { font-size: .92rem; }

  /* FIX: pill was wrapping URL to second line on mobile */
  .hc-hero-brand-pill .pill-sep,
  .hc-hero-brand-pill a { display: none; }
  .hc-hero-brand-pill { padding: .25rem .75rem; margin-bottom: .75rem; }

  /* FIX: Stats bar grid — was flex-wrapping into 3 messy rows */
  .hc-stats-bar .hc-stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .65rem;
    overflow-x: unset;
  }
  .hc-stat-brand {
    grid-column: 1 / -1;
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: .45rem;
    margin-top: .1rem;
  }
  .hc-stats-bar .stat { font-size: .76rem; }

  /* FIX: Quick-start — was chaotic paragraph on mobile */
  .hc-quickstart-strip { padding: .75rem 0; }
  .hc-qs-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .hc-qs-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%; gap: .32rem;
    padding-bottom: 2px;
  }
  .hc-qs-links::-webkit-scrollbar { display: none; }
  .hc-qs-links a { flex-shrink: 0; }

  /* FIX: Section padding was creating huge grey voids */
  .hc-section { padding: 1.75rem 0; }
  .hc-section-title { margin-bottom: 1.35rem; }
  .hc-section-title h2 { font-size: 1.35rem; }

  /* Single column grids */
  .hc-cat-grid { grid-template-columns: 1fr; gap: .7rem; }
  .hc-popular-grid { grid-template-columns: 1fr; }

  /* Support CTA */
  .hc-support-actions { flex-direction: column; align-items: stretch; }
  .hc-support-actions .hc-btn-white { justify-content: center; }
  .hc-support-card { padding: 2rem 1.25rem; }
  .hc-support-card h3 { font-size: 1.1rem; }

  /* Footer — centered & balanced on mobile */
  .hc-footer { padding: 2rem 0 0; }
  .hc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    text-align: center;
  }
  .hc-footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .hc-footer-logo { justify-content: center; }
  .hc-footer-parent { justify-content: center; }
  .hc-footer-col a { text-align: center; }
  .hc-footer-back-link { justify-content: center; }
  .hc-footer-bottom-wrap .hc-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
    padding: .9rem 0;
    font-size: .72rem;
  }

  /* Article nav */
  .hc-article-nav { grid-template-columns: 1fr; }
  .hc-article-nav a.nav-next { text-align: left; }
  .hc-article-nav a.nav-next .nav-label { justify-content: flex-start; }

  /* Page hero */
  .hc-page-hero { padding: 1.75rem 0 1.25rem; }
  .hc-page-hero h1 { font-size: 1.3rem; }
  .hc-page-hero-icon { width: 40px; height: 40px; font-size: 1.05rem; }

  /* Search */
  .hc-search-hero { padding: 1.75rem 0; }
  .hc-search-hero h2 { font-size: 1.2rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  .hc-article-main { padding: 1rem .85rem 3rem; }
  .hc-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .hc-footer-col a { text-align: center; }
  .hc-footer-back-link { justify-content: center; }
  .hc-footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
  .hc-hero h1 { font-size: 1.45rem; }
  .hc-searchbar input { padding: .75rem .9rem; font-size: .85rem; }
  .hc-searchbar button { padding: .75rem 1rem; font-size: .82rem; }
}

/* ============================================================
   UTILITY
============================================================ */
.text-muted { color: var(--text-muted) !important; }
.mt-0 { margin-top: 0 !important; }
