/* ─── FoxTrak Help Centre – Shared Styles ─── */

:root {
  --orange: #e8470a;
  --orange-light: #fef0eb;
  --orange-border: #fad5c0;
  --navy: #1a2f3a;
  --bg: #f5f4f0;
  --bg-white: #ffffff;
  --border: #e4e2da;
  --border-hover: #c8c5bc;
  --text: #1a2f3a;
  --text-muted: #3a4a52;
  --text-dim: #6b7a82;
  --text-faint: #8a9399;
  --radius: 12px;
  --sidebar-w: 248px;
  --bg-2: #f0ede6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }



/* ─── BODY LAYOUT ─── */
.hb {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
  align-items: flex-start;
}

/* ─── SIDEBAR ─── */
.hs {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.hs__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.hs__back:hover { color: var(--orange); }

.hs__cat { margin-bottom: 2px; }

.hs__cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
  transition: background 0.1s;
}
.hs__cat-header:hover { background: #ede9e2; }
.hs__cat.open .hs__cat-header { color: var(--orange); }

.hs__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--text-faint);
}
.hs__cat.open .hs__chevron { transform: rotate(180deg); }

.hs__articles {
  display: none;
  padding: 2px 0 6px 10px;
}
.hs__cat.open .hs__articles { display: block; }

.hs__article {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 1px;
  transition: background 0.1s, color 0.1s;
}
.hs__article:hover { background: #ede9e2; color: var(--navy); }
.hs__article.active {
  background: var(--orange-light);
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 600;
}

/* ─── MAIN ─── */
.hm { flex: 1; min-width: 0; }

/* ─── BREADCRUMB ─── */
.hbc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.hbc a { transition: color 0.15s; }
.hbc a:hover { color: var(--orange); }
.hbc__sep { color: var(--border-hover); }

/* ─── ARTICLE ─── */
.ha {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
}

.ha__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ha h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.ha__meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0ede6;
}

.ha p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }

.ha h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.2px;
}

.ha h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

.ha ol, .ha ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.ha li { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 0.25rem; }

.ha strong { font-weight: 700; color: var(--navy); }

.ha code {
  font-family: monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--navy);
}

/* ─── MEDIA (screenshots / GIFs) ─── */
.ha__media {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.25rem 0;
}
.ha__media img {
  display: block;
  width: 100%;
  height: auto;
}
/* Placeholder when no image yet */
.ha__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 180px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ─── TIP CALLOUT ─── */
.ha__tip {
  display: flex;
  gap: 10px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.ha__tip svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.ha__tip p { margin: 0; font-size: 13px; color: #7a3010; line-height: 1.6; }

/* ─── PREV / NEXT NAV ─── */
.ha__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0ede6;
}

.ha__nav-btn {
  flex: 1;
  max-width: 48%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s, transform 0.15s;
}
.ha__nav-btn:hover { border-color: var(--orange); transform: translateY(-1px); }
.ha__nav-btn--next { text-align: right; margin-left: auto; }

.ha__nav-label { font-size: 11px; color: var(--text-faint); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.ha__nav-title { font-size: 13px; color: var(--navy); font-weight: 600; }

/* ─── SCROLLBAR (sidebar) ─── */
.hs::-webkit-scrollbar { width: 4px; }
.hs::-webkit-scrollbar-track { background: transparent; }
.hs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hb { flex-direction: column; padding: 1rem; gap: 1rem; }
  .hs { width: 100%; position: static; max-height: none; }
  .hn__search { display: none; }
  .ha { padding: 1.5rem; }
  .ha h1 { font-size: 18px; }
}

/* ── Article page body — clears fixed nav ── */
body.article-page {
  padding-top: 72px;
}

/* ── Help nav (replaces marketing site nav on help pages) ── */
.hn {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
}
.hn__left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hn__logo img { height: 28px; display: block; }
.hn__divider { width: 1px; height: 16px; background: var(--border); }
.hn__label { font-size: 13px; color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.hn__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1; max-width: 340px;
  cursor: text;
  transition: border-color 0.15s;
}
.hn__search:focus-within { border-color: var(--orange); }
.hn__search svg { color: var(--text-dim); flex-shrink: 0; }
.hn__search input {
  border: none; outline: none; background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; color: var(--navy); width: 100%;
}
.hn__search input::placeholder { color: var(--text-dim); }
.hn__btns { display: flex; gap: 8px; flex-shrink: 0; }
.hn__login {
  font-size: 14px; font-weight: 500; color: var(--navy);
  padding: 6px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.hn__login:hover { border-color: var(--navy); }
.hn__signup {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--orange);
  padding: 6px 20px;
  border-radius: 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.hn__signup:hover { opacity: 0.85; }

body.article-page { padding-top: 56px; }

@media (max-width: 600px) {
  .hn__search { display: none; }
  .hn { padding: 0 1rem; }
}

@media (max-width: 640px) {
  .hn__btns { display: none; }
}