:root {
  --bg: #f6efe6;
  --panel: #ffffff;
  --panel-soft: #fbf7f2;
  --border: rgba(23, 28, 38, 0.1);
  --text: #171c26;
  --muted: #64707c;
  --muted-soft: #98a2ad;
  --accent: #f2b263;
  --accent-soft: rgba(242, 178, 99, 0.18);
  --teal: #8cbeb2;
  --teal-soft: rgba(140, 190, 178, 0.15);
  --warn: #f28585;
  --shadow: 0 20px 50px rgba(29, 35, 46, 0.08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 8%, rgba(242, 178, 99, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 12%, rgba(140, 190, 178, 0.14), transparent 56%),
    var(--bg);
}

a { color: inherit; }

.help-shell {
  min-height: 100vh;
}

.help-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(246, 239, 230, 0.86);
  border-bottom: 1px solid var(--border);
}

.help-topbar-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.help-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(242,178,99,0.95), rgba(140,190,178,0.9));
  font-weight: 800;
  color: #16181e;
}

.help-brand strong,
.help-brand span {
  display: block;
}

.help-brand strong {
  font-size: 16px;
}

.help-brand span span {
  color: var(--muted);
  font-size: 13px;
}

.help-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
}

.help-layout {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 40px;
}

.help-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
}

.help-sidebar-head {
  display: grid;
  gap: 14px;
}

.help-mobile-toggle {
  display: none;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 700;
}

.help-search {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.help-search input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0 16px;
  color: var(--text);
  font: inherit;
}

.help-nav {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.help-home-link,
.help-nav-links a {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid transparent;
}

.help-home-link {
  padding: 12px 14px;
  background: var(--panel);
  border-color: var(--border);
  font-weight: 800;
}

.help-home-link.is-active,
.help-nav-links a.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.help-nav-group h3 {
  margin: 0 0 10px;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.help-nav-links {
  display: grid;
  gap: 8px;
}

.help-nav-links a {
  padding: 14px;
  background: var(--panel);
  border-color: var(--border);
}

.help-nav-links strong {
  display: block;
  font-size: 14px;
}

.help-nav-links span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.help-empty {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

.help-content {
  min-width: 0;
}

.help-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.help-breadcrumbs a {
  text-decoration: none;
}

.help-article {
  display: grid;
  gap: 18px;
}

.help-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ab6d18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.help-article h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.help-summary {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 820px;
}

.help-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.help-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.help-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.7;
}

.help-list-marker {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.help-list-dot .help-list-marker {
  background: var(--teal);
}

.help-list-count .help-list-marker {
  background: var(--teal);
  color: #142028;
}

.help-list-warn .help-list-marker {
  background: var(--warn);
}

.help-list-tip .help-list-marker {
  background: var(--accent);
}

.help-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-related a {
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  font-weight: 700;
}

@media (max-width: 980px) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }

  .help-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .help-nav {
    display: none;
  }

  .help-sidebar.is-open .help-nav {
    display: grid;
  }
}

@media (max-width: 640px) {
  .help-topbar-inner,
  .help-layout {
    width: min(100%, calc(100% - 24px));
  }

  .help-article h1 {
    font-size: 34px;
  }

  .help-summary {
    font-size: 16px;
  }

  .help-card {
    padding: 18px;
    border-radius: 22px;
  }
}
