/* =========================================================
   Oxelio Help Center — help.css
   Shared by /help (hub) and all /help/[slug]/ article pages
   Requires /style.css to be loaded first (uses its CSS vars)
   ========================================================= */

/* ── Hub: Hero ─────────────────────────────────────────── */
.hc-hero {
  padding: 160px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hc-hero .section-label {
  display: inline-block;
  background: transparent;
  color: var(--sage-light);
  border: 1px solid rgba(122,158,126,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hc-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 14px;
}
.hc-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* Search */
.hc-search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}
.hc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.hc-search {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 14px 20px 14px 46px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.hc-search::placeholder { color: var(--text-muted); }
.hc-search:focus { border-color: var(--sage); }

/* ── Hub: Category grid ─────────────────────────────────── */
.hc-categories { padding: 72px 0 80px; }
.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hc-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.hc-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.hc-card-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--sage);
}
.hc-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.hc-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.hc-articles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hc-articles li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.hc-articles li a:hover { color: var(--sage-light); }
.hc-articles li a svg { flex-shrink: 0; opacity: 0.45; transition: opacity 0.15s; }
.hc-articles li a:hover svg { opacity: 1; }

/* No results state */
.hc-no-results {
  display: none;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.hc-no-results.visible { display: block; }

/* ── Hub: Contact CTA ───────────────────────────────────── */
.hc-contact {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.hc-contact h2 { font-size: 1.6rem; margin-bottom: 10px; }
.hc-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.hc-contact-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Article: Page wrapper ──────────────────────────────── */
.hc-article-page {
  padding-top: 125px;
  min-height: 100vh;
}
.hc-article-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  padding-bottom: 80px;
  gap: 72px;
  align-items: start;
}
.hc-article-content {
  min-width: 0; /* allow content column to shrink below intrinsic width in grid */
}

/* ── Article: Sidebar ───────────────────────────────────── */
.hc-sidebar {
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 32px 0;
  border-right: 1px solid var(--border);
  padding-right: 28px;
}
.hc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
  font-weight: 500;
}
.hc-back-link:hover { color: var(--sage-light); }
.hc-sidebar-cat {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 7px;
  opacity: 0.6;
}
.hc-sidebar-cat:first-of-type { margin-top: 0; }
.hc-sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hc-sidebar-links a {
  display: block;
  font-size: 0.81rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.hc-sidebar-links a:hover { color: var(--text); border-color: var(--border-light); }
.hc-sidebar-links a.active {
  color: var(--sage-light);
  border-color: var(--sage);
  font-weight: 600;
}

/* ── Article: Breadcrumb ────────────────────────────────── */
.hc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  color: var(--text-muted);
  padding: 28px 0 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.hc-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.hc-breadcrumb a:hover { color: var(--sage-light); }
.hc-breadcrumb .sep { opacity: 0.4; }
.hc-breadcrumb .current { color: var(--text); }

/* ── Article: Prose ─────────────────────────────────────── */
.hc-prose {}
.hc-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}
.hc-meta {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0.7;
}
.hc-prose h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.15;
  color: var(--text);
}
.hc-prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.hc-prose h2:first-of-type { margin-top: 32px; }
.hc-prose h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}
.hc-prose h4 {
  font-size: 0.87rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.hc-prose p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 0.915rem;
}
.hc-prose p strong, .hc-prose li strong {
  color: var(--text);
  font-weight: 600;
}
.hc-prose ul, .hc-prose ol {
  color: var(--text-muted);
  font-size: 0.915rem;
  line-height: 1.75;
  padding-left: 1.4em;
  margin-bottom: 16px;
}
.hc-prose li { margin-bottom: 5px; }

/* Tables */
.hc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.hc-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.855rem;
}
.hc-prose thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-2);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hc-prose tbody td {
  padding: 10px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.hc-prose tbody tr:last-child td { border-bottom: none; }
.hc-prose tbody tr:hover td { background: rgba(245,240,232,0.02); }

/* Inline code */
.hc-prose code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.83em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  color: var(--sage-light);
}
/* Code blocks */
.hc-prose pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}
.hc-prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ── Callouts ───────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.65;
}
.callout-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.callout-body { color: var(--text-muted); flex: 1; min-width: 0; }
.callout-body strong { color: var(--text); }
.callout-note {
  background: rgba(122,158,126,0.07);
  border: 1px solid rgba(122,158,126,0.18);
}
.callout-note .callout-icon { color: var(--sage); }
.callout-tip {
  background: rgba(157,196,161,0.07);
  border: 1px solid rgba(157,196,161,0.22);
}
.callout-tip .callout-icon { color: var(--sage-light); }
.callout-warning {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.22);
}
.callout-warning .callout-icon { color: #F5A623; }

/* ── Placeholder blocks ─────────────────────────────────── */
/* ── Images ─────────────────────────────────────────── */
.hc-img-block { margin: 32px 0; }

.hc-img-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(122,158,126,0.55);
  margin-bottom: 10px;
  padding-left: 2px;
}

/* Dark mat + glow — same treatment as videos */
.hc-img-wrap {
  border-radius: 10px;
  border: 1px solid rgba(122,158,126,0.55);
  box-shadow:
    0 0 0 1px rgba(122,158,126,0.20),
    0 0 20px rgba(122,158,126,0.30),
    0 0 55px rgba(122,158,126,0.15),
    0 8px 32px rgba(0,0,0,0.6);
  background: #111;
  padding: 6px;
  overflow: hidden;
}

.hc-img-wrap img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

/* ── Alert list (replaces alert table) ───────────────── */
.hc-alert-list { margin: 24px 0; display: flex; flex-direction: column; gap: 20px; }

.hc-alert-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.hc-alert-item:last-child { border-bottom: none; padding-bottom: 0; }

.hc-alert-shot {
  flex-shrink: 0;
  width: 280px;
  background: #111;
  border-radius: 8px;
  padding: 6px;
  border: 1px solid rgba(122,158,126,0.55);
  box-shadow:
    0 0 0 1px rgba(122,158,126,0.20),
    0 0 18px rgba(122,158,126,0.28),
    0 0 48px rgba(122,158,126,0.12),
    0 4px 16px rgba(0,0,0,0.55);
}

.hc-alert-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border-radius: 4px;
}

.hc-alert-info { flex: 1; min-width: 0; }
.hc-alert-info strong { display: block; margin-bottom: 4px; font-size: 0.95rem; color: var(--text); }
.hc-alert-info p { margin: 0 0 6px; font-size: 0.88rem; color: rgba(245,240,232,0.65); line-height: 1.55; }
.hc-alert-info p.hc-alert-resolve { font-size: 0.83rem; color: rgba(122,158,126,0.85); font-style: italic; }

@media (max-width: 680px) {
  .hc-alert-item { flex-direction: column; }
  .hc-alert-shot { width: 100%; }
}

/* ── Videos ─────────────────────────────────────────── */
.hc-video-block { margin: 32px 0; }

.hc-video-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(122,158,126,0.55);
  margin-bottom: 10px;
  padding-left: 2px;
}

.hc-video-wrap {
  border-radius: 10px;
  border: 1px solid rgba(122,158,126,0.55);
  box-shadow:
    0 0 0 1px rgba(122,158,126,0.20),
    0 0 20px rgba(122,158,126,0.30),
    0 0 55px rgba(122,158,126,0.15),
    0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
  background: #000;
}

.hc-video-wrap video {
  display: block;
  width: 100%;
}

.hc-placeholder {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245,240,232,0.015);
}
.hc-placeholder-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 7px;
  margin-top: 1px;
  white-space: nowrap;
}
.hc-placeholder-badge.ss {
  background: rgba(122,158,126,0.1);
  color: var(--sage);
  border: 1px solid rgba(122,158,126,0.2);
}
.hc-placeholder-badge.dg {
  background: rgba(157,196,161,0.08);
  color: var(--sage-light);
  border: 1px solid rgba(157,196,161,0.18);
}
.hc-placeholder-badge.vd {
  background: rgba(245,166,35,0.08);
  color: #F5A623;
  border: 1px solid rgba(245,166,35,0.18);
}
.hc-placeholder-body { flex: 1; min-width: 0; }
.hc-placeholder-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.hc-placeholder-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Related Articles ───────────────────────────────────── */
.hc-related {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hc-related h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.6;
}
.hc-related ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-related ul a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}
.hc-related ul a:hover { color: var(--sage-light); }
.hc-related ul a svg { opacity: 0.4; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hc-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px 60px;
  }
  .hc-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    padding-right: 0;
    margin-bottom: 0;
  }
  .hc-article-page { padding-top: 100px; }
  .hc-breadcrumb { padding-top: 20px; }
}
@media (max-width: 580px) {
  .hc-grid { grid-template-columns: 1fr; }
  .hc-hero { padding: 120px 0 52px; }
  .hc-article-layout { padding: 0 16px 48px; }
  .hc-sidebar-cat { display: none; }
  .hc-back-link { display: flex; }
}
