:root {
  --bg: #f4f6fa;
  --paper: #ffffff;
  --text: #1a2332;
  --muted: #5a6578;
  --accent: #1e5a9e;
  --accent-soft: #e8f1fb;
  --border: #d8dee8;
  --sidebar: #0f1a38;
  --sidebar-text: #c5d8f5;
  --sidebar-active: #1c3870;
  --warn-bg: #fff8e6;
  --warn-border: #e6c200;
  --ok-bg: #eef9f0;
  --ok-border: #3d9a55;
  --hot: #c44a2f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font: 16px/1.65 "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.help-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 100vh;
}

.help-nav {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 20px 14px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.help-brand {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0 0 4px;
  text-decoration: none;
}
.help-brand:hover { text-decoration: none; opacity: 0.92; }

.help-brand-sub {
  font-size: 0.78rem;
  opacity: 0.72;
  margin: 0 0 18px;
}

.help-nav-group {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8ab4e8;
  margin: 16px 8px 8px;
}

.help-nav a.nav-item {
  display: block;
  color: var(--sidebar-text);
  padding: 9px 12px;
  border-radius: 8px;
  margin: 2px 0;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}
.help-nav a.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.help-nav a.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  outline: 1px solid #4a80d4;
}

.help-main {
  padding: 28px 32px 72px;
  max-width: 880px;
}

.help-hero {
  background: linear-gradient(135deg, #0f2d52, #1e5a9e 55%, #2a7ad4);
  color: #fff;
  padding: 28px 26px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.help-hero h1 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 700;
}
.help-hero p {
  margin: 0;
  opacity: 0.93;
  max-width: 42em;
}
.help-hero .meta {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.75;
}

.help-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.help-card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 8px;
}
.help-card h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
}

.help-card p { margin: 0 0 10px; }
.help-card ul, .help-card ol { margin: 0 0 12px; padding-left: 1.25rem; }
.help-card li { margin: 4px 0; }

table.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 10px 0 14px;
}
table.help-table th,
table.help-table td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  vertical-align: top;
  text-align: left;
}
table.help-table th {
  background: var(--accent-soft);
  color: var(--accent);
}

code, .path {
  font: 0.88em Consolas, "Cascadia Mono", monospace;
  background: #f0f3f7;
  padding: 2px 5px;
  border-radius: 4px;
}

.note, .warn, .ok {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.95rem;
}
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.ok { background: var(--ok-bg); border: 1px solid var(--ok-border); }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: st;
  margin: 0 0 12px;
}
.steps > li {
  counter-increment: st;
  padding-left: 2.7rem;
  position: relative;
  margin-bottom: 14px;
}
.steps > li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.help-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.help-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
}
.help-cta:hover { filter: brightness(1.06); }
.help-cta.secondary {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.help-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .help-shell { grid-template-columns: 1fr; }
  .help-nav {
    position: relative;
    height: auto;
    max-height: none;
  }
  .help-main { padding: 18px 16px 56px; }
}
