/* Salescheck.io Help Center — shared styles for every page under /help/ */

:root {
  --hc-bg: #ffffff;
  --hc-bg-subtle: #f6f8fa;
  --hc-text: #1b1f23;
  --hc-text-muted: #57606a;
  --hc-border: #eaeef2;
  --hc-accent: #0969da;
  --hc-accent-bg: #ddf4ff;
  --hc-warn-bg: #fff8c5;
  --hc-warn-border: #9a6700;
  --hc-green: #1a7f37;
  --hc-yellow: #9a6700;
  --hc-red: #cf222e;
  --hc-radius: 10px;
  --hc-shadow: 0 1px 2px rgba(27, 31, 35, 0.06), 0 4px 12px rgba(27, 31, 35, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--hc-text);
  background: var(--hc-bg);
  line-height: 1.55;
}

a { color: inherit; }

.hc-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.hc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--hc-bg);
  border-bottom: 1px solid var(--hc-border);
}

.hc-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hc-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--hc-text);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.hc-logo img { width: 24px; height: 24px; border-radius: 6px; }
.hc-logo small { font-weight: 500; color: var(--hc-text-muted); margin-left: 0.15rem; }

.hc-app-link {
  white-space: nowrap;
  text-decoration: none;
  color: var(--hc-accent);
  font-size: 0.88rem;
  font-weight: 600;
}
.hc-app-link:hover { text-decoration: underline; }

/* Search */

.hc-search-box { position: relative; flex: 1; max-width: 480px; margin-left: auto; }

.hc-search-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  font-size: 0.92rem;
  background: var(--hc-bg-subtle);
  color: var(--hc-text);
}
.hc-search-input:focus { outline: 2px solid var(--hc-accent); outline-offset: 1px; background: var(--hc-bg); }

.hc-hero .hc-search-box { max-width: 560px; margin: 1.5rem auto 0; }
.hc-hero .hc-search-input { padding: 0.9rem 1.15rem; font-size: 1.02rem; border-radius: 10px; }

.hc-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  box-shadow: var(--hc-shadow);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 40;
  text-align: left;
}
.hc-search-results.open { display: block; }
.hc-search-results a {
  display: block;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--hc-text);
  border-bottom: 1px solid var(--hc-border);
  font-size: 0.92rem;
}
.hc-search-results a:last-child { border-bottom: none; }
.hc-search-results a:hover { background: var(--hc-bg-subtle); }
.hc-search-results a .cat { display: block; font-size: 0.76rem; color: var(--hc-text-muted); margin-top: 0.15rem; }
.hc-search-empty { padding: 0.85rem 0.9rem; color: var(--hc-text-muted); font-size: 0.88rem; }

/* Hero (index page only) */

.hc-hero {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--hc-border);
  background: var(--hc-bg-subtle);
}
.hc-hero h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.hc-hero p.lead { color: var(--hc-text-muted); margin: 0; font-size: 1.05rem; }

/* Category grid (index page) */

.hc-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  padding: 2.5rem 0 3rem;
}

.hc-category-card {
  display: block;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 1.5rem;
  background: var(--hc-bg);
  box-shadow: var(--hc-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hc-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 31, 35, 0.09);
  border-color: var(--hc-accent);
}
.hc-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--hc-accent-bg);
  color: var(--hc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.hc-category-icon svg { width: 22px; height: 22px; }
.hc-category-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.hc-category-card p { margin: 0 0 0.85rem; color: var(--hc-text-muted); font-size: 0.9rem; }
.hc-category-count { font-size: 0.78rem; color: var(--hc-text-muted); font-weight: 600; }

/* Breadcrumb */

.hc-breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--hc-text-muted);
}
.hc-breadcrumb a { text-decoration: none; color: var(--hc-text-muted); }
.hc-breadcrumb a:hover { text-decoration: underline; color: var(--hc-accent); }
.hc-breadcrumb .sep { margin: 0 0.4rem; }
.hc-breadcrumb .current { color: var(--hc-text); }

/* Two-column layout for category + article pages */

.hc-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hc-sidebar { position: sticky; top: 76px; }
.hc-sidebar h4 {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--hc-text-muted);
  margin: 1.4rem 0 0.5rem;
}
.hc-sidebar h4:first-child { margin-top: 0; }
.hc-sidebar a {
  display: block;
  padding: 0.4rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 6px;
  color: var(--hc-text);
  text-decoration: none;
  font-size: 0.87rem;
}
.hc-sidebar a:hover { background: var(--hc-bg-subtle); }
.hc-sidebar a.active { background: var(--hc-accent-bg); color: var(--hc-accent); font-weight: 600; }

/* Category page article list */

.hc-category-header h1 { font-size: 1.6rem; margin: 0 0 0.35rem; }
.hc-category-header p.subtitle { color: var(--hc-text-muted); margin: 0 0 1.75rem; }

.hc-article-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--hc-bg);
}
.hc-article-list-item:hover { border-color: var(--hc-accent); background: var(--hc-bg-subtle); }
.hc-article-list-item strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.hc-article-list-item .desc { color: var(--hc-text-muted); font-size: 0.85rem; }
.hc-article-list-item .chevron { color: var(--hc-text-muted); flex: none; font-size: 1.1rem; }

/* Article body (shared with the original setup guides) */

.hc-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hc-accent);
  background: var(--hc-accent-bg);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.hc-article h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.hc-article .subtitle { color: var(--hc-text-muted); margin: 0 0 1.75rem; font-size: 1rem; }
.hc-article h2 { font-size: 1.15rem; margin-top: 2.5rem; border-top: 1px solid var(--hc-border); padding-top: 1.5rem; }
.hc-article .step { display: flex; gap: 1rem; margin: 1.25rem 0; align-items: flex-start; }
.hc-article .step-number {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--hc-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-article .step-body { flex: 1; }
.hc-article .step-body p { margin: 0.25rem 0 0; color: #444; }
.hc-article .note { background: var(--hc-bg-subtle); border-left: 3px solid var(--hc-accent); padding: 0.75rem 1rem; font-size: 0.9rem; margin: 1rem 0; }
.hc-article .warn { background: var(--hc-warn-bg); border-left: 3px solid var(--hc-warn-border); padding: 0.75rem 1rem; font-size: 0.9rem; margin: 1rem 0; }
.hc-article code { background: var(--hc-bg-subtle); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
.hc-article ul, .hc-article ol { padding-left: 1.3rem; }
.hc-article li { margin: 0.35rem 0; }
.hc-article table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; }
.hc-article th, .hc-article td { border: 1px solid var(--hc-border); padding: 0.5rem 0.7rem; text-align: left; }
.hc-article th { background: var(--hc-bg-subtle); }
.tier-green { color: var(--hc-green); font-weight: 600; }
.tier-yellow { color: var(--hc-yellow); font-weight: 600; }
.tier-red { color: var(--hc-red); font-weight: 600; }

.hc-article .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.hc-article .badge {
  display: inline-block;
  background: var(--hc-bg-subtle);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
}

.hc-article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hc-border); }
.hc-help-more { font-size: 0.9rem; color: var(--hc-text-muted); }
.hc-help-more a { color: var(--hc-accent); }

/* Footer */

.hc-footer {
  margin-top: 2rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--hc-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--hc-text-muted);
}
.hc-footer a { color: var(--hc-text-muted); text-decoration: underline; }

@media (max-width: 760px) {
  .hc-layout { grid-template-columns: 1fr; }
  .hc-sidebar { display: none; }
  .hc-search-box { max-width: none; }
  .hc-header-inner { flex-wrap: wrap; }
}
