:root {
  --ink: #17212b;
  --muted: #617084;
  --line: #d9e1e8;
  --paper: #f6f7f8;
  --panel: #fff;
  --brand: #245e83;
  --brand-dark: #183f5a;
  --green: #4f7d57;
  --copper: #b86b38;
  --soft: #eef3f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--brand); }

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

.help-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.help-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-dark), var(--green));
  color: #fff;
}

.help-brand small {
  display: block;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.help-search { margin: 18px 0; }

.help-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.help-search input:focus {
  outline: 2px solid rgba(36, 94, 131, .22);
  border-color: var(--brand);
}

.search-results {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.search-results.is-visible { display: block; }

.search-results a,
.search-empty {
  display: block;
  padding: 10px;
  border-top: 1px solid #edf0f4;
  text-decoration: none;
}

.search-results a:first-child,
.search-empty:first-child { border-top: 0; }
.search-results strong { display: block; color: var(--ink); }
.search-results span, .search-empty { color: var(--muted); font-size: 14px; }

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

.help-nav h2 {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-nav a {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.help-nav a:hover,
.help-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: #eef3f1;
}

.help-main {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a { color: inherit; }

.hero,
.help-card,
.note,
.warning,
.tip,
.support-box,
.screenshot-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero {
  padding: 24px;
  border-left: 6px solid var(--green);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

p { margin: 0 0 12px; }

.lead {
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.help-card {
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}

a.help-card:hover {
  border-color: #b8c6d4;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(23, 33, 43, .08);
}

.help-card strong { display: block; margin-bottom: 4px; }
.help-card span { color: var(--muted); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.toc a,
.status-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.facts div {
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #fbfcfe;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.note,
.warning,
.tip,
.support-box {
  margin: 16px 0;
  padding: 14px 16px;
}

.note { border-left: 4px solid var(--brand); }
.warning { border-left: 4px solid var(--copper); background: #fff8f1; }
.tip { border-left: 4px solid var(--green); background: #f5faf7; }
.support-box { border-left: 4px solid #7b6f47; background: #fffdf4; }

.steps {
  margin: 16px 0;
  padding-left: 22px;
}

.steps li { margin-bottom: 10px; }

table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: #eef3f7; }
.status-table td:first-child { width: 170px; font-weight: 700; }

.screenshot-frame {
  margin: 18px 0;
  padding: 10px;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.screenshot-frame figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.placeholder-shot {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed #a8b5c3;
  border-radius: 6px;
  background: linear-gradient(135deg, #f7f9fb, #eef3f7);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-decoration: none;
}

code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef2f7;
  color: #223041;
}

@media (max-width: 900px) {
  .help-shell { grid-template-columns: 1fr; }
  .help-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .help-main { width: min(100% - 28px, 1050px); padding-top: 24px; }
}
