/* =========================================================
   AcquityData Help Center — Stylesheet
   Brand: Navy #0f1f3d / Accent Blue #2563eb / White
   Font: Inter (Google Fonts)
   ========================================================= */

:root {
  --navy: #0f1f3d;
  --navy-light: #16294d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef3ff;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --bg-soft: #f8fafc;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 61, 0.12);
  --max-width: 1180px;
  --sidebar-width: 268px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; display: block; }

ul, ol { padding-left: 1.4rem; }
ul li, ol li { margin-bottom: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Top Navbar
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 30px;
  width: auto;
}

.navbar-logo-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.25);
}

.navbar-product-tag {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.breadcrumb-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--muted-light); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* =========================================================
   Layout shell: sidebar + content
   ========================================================= */

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 40px;
  align-items: start;
}

.shell.no-sidebar {
  grid-template-columns: 1fr;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 22px;
}

.sidebar-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 0 0 8px;
  padding: 0 10px;
}

.sidebar-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-group a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.sidebar-group a:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.sidebar-group a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  border-left: 2px solid var(--blue);
}

.sidebar-group-link {
  display: block;
  padding: 6px 10px 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.sidebar-close {
  display: none;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
}

/* =========================================================
   Article content
   ========================================================= */

.content {
  min-width: 0;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-intro {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-light);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  letter-spacing: -0.005em;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
}

.article-body p {
  margin: 0 0 16px;
  color: #334155;
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--navy);
}

.step-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 22px;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-list .step-title {
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #1e3a6e;
}

.callout strong { color: var(--navy); }

.callout.tip { background: #f0fdf4; border-left-color: var(--green); color: #14532d; }
.callout.tip strong { color: #14532d; }

.callout.note { background: #fffbeb; border-left-color: var(--amber); color: #78350f; }
.callout.note strong { color: #78350f; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

.article-body th, .article-body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.article-body th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy);
}

.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-links h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 8px; }
.related-links a { font-weight: 500; font-size: 14.5px; }

/* =========================================================
   Was this helpful?
   ========================================================= */

.helpful-box {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.helpful-box p {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

.helpful-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.helpful-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.helpful-buttons button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.helpful-buttons button.selected-yes {
  background: #f0fdf4;
  border-color: var(--green);
  color: #15803d;
}

.helpful-buttons button.selected-no {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

.helpful-thanks {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  display: none;
}

.helpful-thanks.show { display: block; }

/* =========================================================
   Homepage — Hero
   ========================================================= */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #142a52 60%, #16294d 100%);
  padding: 72px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero p.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  margin: 0 0 32px;
  line-height: 1.55;
}

.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 15.5px;
  font-family: inherit;
  box-shadow: var(--shadow-lg);
  outline: none;
}

.search-box input:focus {
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37,99,235,0.4);
}

.search-box .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-light);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: left;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.search-results-dropdown.show { display: block; }

.search-results-dropdown a {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.search-results-dropdown a:last-child { border-bottom: none; }

.search-results-dropdown a:hover { background: var(--bg-soft); }

.search-result-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.search-result-collection {
  font-size: 12.5px;
  color: var(--muted);
}

.search-empty {
  padding: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-stat {
  text-align: center;
}

.trust-stat .num {
  display: block;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.trust-stat .label {
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  font-weight: 500;
}

/* =========================================================
   Homepage — Collections grid
   ========================================================= */

.section {
  padding: 56px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collection-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c7d6f2;
}

.collection-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}

.collection-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.collection-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.collection-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}

/* Popular articles */

.popular-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.popular-item:hover {
  background: var(--blue-soft);
  border-color: #c7d6f2;
}

.popular-item .pop-icon {
  color: var(--blue);
  flex-shrink: 0;
}

.popular-item-text h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}

.popular-item-text span {
  font-size: 12.5px;
  color: var(--muted);
}

/* =========================================================
   Collection index page (articles list)
   ========================================================= */

.collection-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.collection-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.collection-header .collection-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
}

.collection-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.collection-header p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
  max-width: 640px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.article-list-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--ink);
}

.article-list-item a:hover {
  background: var(--bg-soft);
}

.article-list-item-title {
  font-weight: 600;
  font-size: 15px;
}

.article-list-item-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}

.article-list-item .chevron {
  color: var(--muted-light);
  flex-shrink: 0;
}

/* =========================================================
   Back to top button
   ========================================================= */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 90;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand img { height: 28px; margin-bottom: 12px; }

.footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}

@media (max-width: 860px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-height: none;
    background: var(--white);
    z-index: 200;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-close span {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
  }

  .sidebar-close button {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,31,61,0.5);
    z-index: 199;
  }

  .sidebar-overlay.show { display: block; }
}

@media (max-width: 720px) {
  .collections-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 52px 20px 64px; }
  .trust-strip { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-last-child(2) { display: block; }
  .article-header h1 { font-size: 26px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .navbar-right .btn-ghost { display: none; }
  .collection-header-top { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
