:root {
  --colorText: #000;
  --colorBody: #222;
  --colorMuted: #505050;
  --colorBorder: #e4e7ea;
  --colorBorderStrong: #c7ced3;
  --colorSurface: #f7f8f9;
  --colorBrand: #00a339;
  --colorBrandDark: #008a30;
  --fontSans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: var(--colorBody);
  font-family: var(--fontSans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.docHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--colorBorder);
  padding: 16px clamp(20px, 5vw, 40px);
}

.docHeaderLogo {
  display: inline-block;
}

.docHeaderLogo img {
  display: block;
  height: 40px;
  width: auto;
}

.docHeaderLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docHeaderAction {
  font-size: 15px;
  font-weight: 600;
  color: var(--colorBrandDark);
  text-decoration: none;
  white-space: nowrap;
}

.docHeaderAction:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */

.helpLayout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 40px) 120px;
}

/* ---------- Sidebar ---------- */

.helpSidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  /* overflow-y makes this a scroll container, which would clip the nav
     highlight's negative margin — the padding/margin pair gives it room. */
  overflow-y: auto;
  padding-left: 14px;
  margin-left: -14px;
}

.helpNavGroup + .helpNavGroup {
  margin-top: 28px;
}

.helpNavTitle {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colorMuted);
}

.helpNavList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.helpNavList a {
  display: block;
  padding: 8px 14px;
  /* Pull the hit area / highlight left so every label stays flush with the
     group titles. The sidebar's matching padding stops it being clipped. */
  margin-left: -14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--colorBody);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.helpNavList a:hover {
  background: var(--colorSurface);
  color: var(--colorText);
}

.helpNavList a[aria-current="page"] {
  background: rgba(0, 163, 57, 0.1);
  color: var(--colorBrandDark);
  font-weight: 600;
}

/* ---------- Content ---------- */

.helpContent {
  min-width: 0;
  max-width: 680px;
}

.helpBreadcrumb {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--colorMuted);
}

.helpBreadcrumb a {
  color: var(--colorMuted);
  text-decoration: none;
}

.helpBreadcrumb a:hover {
  color: var(--colorText);
  text-decoration: underline;
}

.helpBreadcrumb span {
  padding: 0 6px;
  opacity: 0.6;
}

.helpContent h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2vw + 20px, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--colorText);
}

.helpLead {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--colorMuted);
}

.helpContent h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--colorText);
}

.helpContent h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--colorText);
}

.helpContent p {
  margin: 0 0 16px;
}

.helpContent ul,
.helpContent ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.helpContent li {
  margin-bottom: 8px;
}

.helpContent a {
  color: var(--colorBrandDark);
  font-weight: 500;
}

.helpContent strong {
  color: var(--colorText);
  font-weight: 600;
}

/* Numbered walkthroughs get a little more breathing room. */
.helpSteps li {
  margin-bottom: 12px;
}

/* Screenshots. */
.helpFigure {
  margin: 24px 0 28px;
}

.helpFigure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--colorBorder);
  border-radius: 12px;
}

.helpFigure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--colorMuted);
}

/* Callout — used for "before you delete" style warnings and tips. */
.helpNote {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--colorBorder);
  border-left: 3px solid var(--colorBrand);
  border-radius: 10px;
  background: var(--colorSurface);
}

.helpNote p:last-child {
  margin-bottom: 0;
}

.helpNoteTitle {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--colorText);
}

.helpUpdated {
  margin: 40px 0 0;
  font-size: 14px;
  color: var(--colorMuted);
}

/* ---------- Article index (help home) ---------- */

/* Scoped to .helpContent so it outranks the `.helpContent ul` list indent —
   cards sit flush with the section heading above them. */
.helpContent .helpCards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.helpCards li {
  margin-bottom: 0;
}

.helpCards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 150px;
  padding: 18px 20px;
  border: 1px solid var(--colorBorder);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 400;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.helpCards a:hover {
  border-color: var(--colorBorderStrong);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.helpCardTitle {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--colorText);
  margin-bottom: 4px;
}

.helpCardBlurb {
  display: block;
  font-size: 15px;
  color: var(--colorMuted);
}

/* ---------- Contact footer block ---------- */

.helpContact {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--colorBorder);
}

.helpContact h2 {
  margin-top: 0;
}

/* Scoped to .helpContent so it outranks the `.helpContent a` link colour. */
.helpContent .helpContactButton {
  display: inline-block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--colorBrand);
  border-radius: 10px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 150ms ease;
}

.helpContent .helpContactButton:hover {
  background: var(--colorBrandDark);
  color: #fff;
}

/* ---------- Site footer ---------- */

.helpFooter {
  border-top: 1px solid var(--colorBorder);
  padding: 24px clamp(20px, 5vw, 40px);
}

.helpFooterInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--colorMuted);
}

.helpFooterLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.helpFooterLinks a {
  color: var(--colorMuted);
  text-decoration: none;
}

.helpFooterLinks a:hover {
  color: var(--colorText);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .helpLayout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .helpSidebar {
    position: static;
    max-height: none;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--colorBorder);
  }

  .helpContent {
    max-width: none;
  }
}
