.help-centre {
  --help-ink: #172033;
  --help-muted: #5d6778;
  --help-line: #dfe4eb;
  --help-soft: #f5f7fa;
  --help-accent: #1769e0;
  color: var(--help-ink);
  background: #fff;
  min-height: 70vh;
}

.help-centre-width {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.help-centre-hero {
  padding: 72px 0 48px;
  background: #f3f7fc;
  border-bottom: 1px solid var(--help-line);
}

.help-centre-hero h1,
.help-guide-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.help-centre-hero p,
.help-guide-header p {
  max-width: 760px;
  margin: 0;
  color: var(--help-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.help-centre-eyebrow,
.help-category-label {
  color: var(--help-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #cbd4df;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(30, 54, 82, .08);
}

.help-search:focus-within {
  border-color: var(--help-accent);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .12);
}

.help-search input {
  width: 100%;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.help-filter-row,
.help-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-filter-row {
  margin-top: 20px;
}

.help-filter {
  padding: 8px 13px;
  border: 1px solid #cbd4df;
  border-radius: 4px;
  background: #fff;
  color: var(--help-ink);
  font-weight: 700;
  cursor: pointer;
}

.help-filter.is-active,
.help-filter:hover {
  border-color: var(--help-accent);
  color: var(--help-accent);
}

.help-centre-body {
  padding: 40px 0 72px;
}

.help-start-path {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1.3fr;
  gap: 40px;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--help-line);
}

.help-start-path h2,
.help-section-heading h2,
.help-guide-content h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.help-start-path ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin: 0;
  padding-left: 22px;
}

.help-start-path a,
.help-guide-row h3 a,
.help-module-card h3 a,
.help-scenario-card h3 a,
.help-breadcrumb a,
.help-guide-sidebar a {
  color: var(--help-ink);
  text-decoration: none;
}

.help-start-path a:hover,
.help-guide-row h3 a:hover,
.help-module-card h3 a:hover,
.help-scenario-card h3 a:hover,
.help-breadcrumb a:hover,
.help-guide-sidebar a:hover {
  color: var(--help-accent);
}

.help-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 18px;
}

.help-section-heading p {
  margin: 8px 0 0;
  color: var(--help-muted);
}

.help-result-count {
  color: var(--help-muted);
  white-space: nowrap;
}

.help-guide-list,
.help-template-list {
  border-top: 1px solid var(--help-line);
}

.help-guide-row,
.help-template-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--help-line);
}

.help-guide-row[hidden] {
  display: none;
}

.help-module-section[hidden],
.help-module-card[hidden],
.help-scenario-card[hidden] {
  display: none;
}

.help-guide-row h3,
.help-template-row h3 {
  margin: 5px 0 6px;
  font-size: 1.08rem;
}

.help-guide-row p,
.help-template-row p {
  max-width: 760px;
  margin: 0;
  color: var(--help-muted);
  line-height: 1.6;
}

.help-guide-row-meta {
  display: grid;
  grid-template-columns: auto auto 40px;
  align-items: center;
  gap: 20px;
  color: var(--help-muted);
  font-size: .82rem;
}

.help-arrow-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--help-line);
  border-radius: 4px;
  color: var(--help-accent);
  text-decoration: none;
  font-size: 1.3rem;
}

.help-template-section {
  margin-top: 64px;
  padding-top: 10px;
}

.help-template-row code,
.help-inline-template code {
  display: block;
  max-width: 700px;
  margin-top: 10px;
  color: #485568;
  white-space: normal;
  overflow-wrap: anywhere;
}

.help-empty-state {
  padding: 32px 0;
  color: var(--help-muted);
}

.help-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-module-stack {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.help-module-section {
  padding: 24px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: #fff;
}

.help-module-section-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.help-module-section-header h3 {
  margin: 5px 0 8px;
  font-size: 1.3rem;
}

.help-module-section-header p {
  max-width: 820px;
  margin: 0;
  color: var(--help-muted);
  line-height: 1.6;
}

.help-module-card {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: #fff;
}

.help-module-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--help-accent);
  font-weight: 800;
}

.help-module-card h3,
.help-scenario-card h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.help-module-card p,
.help-scenario-card p,
.help-module-note li {
  margin: 0;
  color: var(--help-muted);
  line-height: 1.6;
}

.help-chip-row,
.help-scenario-meta,
.help-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-chip-row {
  margin-top: 14px;
}

.help-chip-row span,
.help-scenario-meta span {
  padding: 5px 9px;
  border: 1px solid var(--help-line);
  border-radius: 4px;
  color: #485568;
  font-size: .78rem;
  font-weight: 700;
}

.help-module-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-top: 28px;
}

.help-module-preview {
  margin-bottom: 0;
}

.help-module-note {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: var(--help-soft);
}

.help-module-note ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.help-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.help-scenario-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: #fff;
  color: var(--help-ink);
  text-decoration: none;
}

.help-scenario-card:hover {
  border-color: var(--help-accent);
  box-shadow: 0 8px 24px rgba(30, 54, 82, .08);
}

.help-scenario-card strong {
  font-size: 1.02rem;
}

.help-scenario-card span:not(.help-category-label),
.help-scenario-card small {
  color: var(--help-muted);
  line-height: 1.55;
}

.help-scenario-card .home-btn {
  justify-self: start;
  margin-top: 2px;
}

.help-guide-page {
  padding: 34px 0 80px;
}

.help-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--help-muted);
  font-size: .9rem;
}

.help-guide-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--help-line);
}

.help-guide-facts {
  margin: 0;
}

.help-guide-facts div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--help-line);
}

.help-guide-facts dt {
  color: var(--help-muted);
  font-weight: 600;
}

.help-guide-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.help-warning {
  display: flex;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 4px solid #b45309;
  background: #fff8eb;
}

.help-guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 34px;
}

.help-guide-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding-right: 22px;
  border-right: 1px solid var(--help-line);
}

.help-guide-sidebar .home-btn {
  margin-top: 8px;
  text-align: center;
}

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

.help-guide-content section {
  padding: 8px 0 40px;
  scroll-margin-top: 20px;
}

.help-detail-section-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.help-detail-section {
  padding: 18px 20px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: var(--help-soft);
}

.help-detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.help-detail-section ul,
.help-step-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--help-muted);
  line-height: 1.6;
}

.help-step-notes {
  margin-top: 12px;
}

.help-template-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.help-template-shortcuts a {
  padding: 9px 12px;
  border: 1px solid var(--help-line);
  border-radius: 4px;
  color: var(--help-ink);
  text-decoration: none;
  font-weight: 700;
}

.help-check-list,
.help-recovery-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  line-height: 1.65;
}

.help-step-list,
.help-scenario-step-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--help-line);
}

.help-step-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--help-line);
}

.help-scenario-step {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(320px, 1.14fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--help-line);
}

.help-step-copy {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
}

.help-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--help-accent);
  color: #fff;
  font-weight: 800;
}

.help-step-list h3,
.help-scenario-step h3 {
  margin: 1px 0 7px;
  font-size: 1.05rem;
}

.help-step-list p,
.help-scenario-step p {
  margin: 0;
  color: var(--help-muted);
  line-height: 1.7;
}

.help-step-expected,
.help-step-caution {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f3f7fc;
}

.help-step-caution {
  background: #fff8eb;
}

.help-screenshot {
  margin: 6px 0 40px;
}

.help-screenshot img {
  display: block;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: var(--help-soft);
}

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

.help-step-media {
  margin: 0;
}

.help-step-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  background: var(--help-soft);
}

.help-step-image-wrap img {
  display: block;
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top;
}

.help-highlight-box {
  position: absolute;
  left: var(--help-highlight-x, 8%);
  top: var(--help-highlight-y, 18%);
  width: var(--help-highlight-w, 28%);
  height: var(--help-highlight-h, 10%);
  border: 3px solid #d97706;
  border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, .18);
  pointer-events: none;
}

.help-highlight-box span {
  position: absolute;
  left: -3px;
  bottom: calc(100% + 6px);
  max-width: 220px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
}

.help-step-media figcaption {
  margin-top: 8px;
  color: var(--help-muted);
  font-size: .82rem;
}

.help-inline-template {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--help-line);
  border-bottom: 1px solid var(--help-line);
}

.help-related-list {
  margin-top: 16px;
}

.help-related-list a {
  padding: 9px 12px;
  border: 1px solid var(--help-line);
  border-radius: 4px;
  color: var(--help-ink);
  text-decoration: none;
  font-weight: 700;
}

.help-related-list a:hover {
  border-color: var(--help-accent);
  color: var(--help-accent);
}

@media (max-width: 900px) {
  .help-guide-header,
  .help-guide-layout,
  .help-module-overview,
  .help-scenario-step {
    grid-template-columns: 1fr;
  }

  .help-module-grid,
  .help-scenario-grid {
    grid-template-columns: 1fr;
  }

  .help-guide-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--help-line);
  }

  .help-guide-row,
  .help-template-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .help-guide-row-meta {
    grid-template-columns: auto auto 40px;
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .help-centre-width {
    width: min(100% - 28px, 1120px);
  }

  .help-centre-hero {
    padding: 46px 0 32px;
  }

  .help-start-path,
  .help-start-path ol,
  .help-inline-template {
    grid-template-columns: 1fr;
  }

  .help-module-card {
    grid-template-columns: 42px 1fr;
  }

  .help-module-card .help-arrow-link {
    grid-column: 2;
  }

  .help-guide-row-meta {
    grid-template-columns: 1fr 1fr 40px;
    gap: 8px;
  }

  .help-guide-sidebar {
    grid-template-columns: 1fr;
  }

  .help-template-actions .home-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
