.help-page {
  max-width: 1250px;
  margin: 0 auto;
  color: #23344b;
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(120deg, #0756a3, #087eae);
  color: white;
  margin-bottom: 24px;
}

.help-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: .85;
}

.help-header h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin: 10px 0;
}

.help-header p {
  margin: 0;
  opacity: .9;
}

.help-header-icon {
  width: 74px;
  height: 74px;
  border: 2px solid #ffffff70;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  flex-shrink: 0;
}

.help-search {
  padding: 24px;
  background: white;
  border: 1px solid #e0e8f0;
  border-radius: 16px;
  margin-bottom: 24px;
}

.help-search label {
  display: block;
  font-weight: 750;
  margin-bottom: 10px;
}

.help-search input {
  min-height: 48px;
  font-size: 15px;
}

.help-search small {
  display: block;
  color: #718096;
  margin-top: 9px;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 20px;
  padding: 22px;
  background: white;
  border: 1px solid #e0e8f0;
  border-radius: 16px;
}

.help-sidebar h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 16px;
}

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

.help-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #34455d;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.help-sidebar a:hover {
  background: #edf5fc;
  color: #0756a3;
}

.help-sidebar a[hidden],
.help-card[hidden],
.help-empty[hidden] {
  display: none !important;
}

.help-articles {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.help-card {
  background: white;
  border: 1px solid #e0e8f0;
  border-radius: 16px;
  padding: 25px;
  scroll-margin-top: 20px;
}

.help-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.help-card-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.help-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf3fc;
  font-size: 24px;
  flex-shrink: 0;
}

.help-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 5px;
}

.help-card p {
  color: #69788a;
  margin: 0;
  font-size: 14px;
}

.help-card ol {
  margin: 0;
  padding-left: 24px;
}

.help-card li {
  padding: 5px 0 5px 6px;
  line-height: 1.65;
  font-size: 14px;
}

.help-open {
  display: inline-block;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 9px;
  background: #edf5fc;
  color: #0756a3;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.help-open:hover {
  background: #dbeafa;
}

.help-empty,
.help-footer-note {
  background: white;
  padding: 25px;
  border: 1px solid #e0e8f0;
  border-radius: 16px;
}

.help-footer-note {
  margin-top: 24px;
}

.help-footer-note p {
  margin: 8px 0 0;
  color: #69788a;
}

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

  .help-sidebar {
    position: static;
  }

  .help-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .help-header {
    padding: 24px;
  }

  .help-header-icon {
    display: none;
  }

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

  .help-card {
    padding: 18px;
  }

  .help-card-heading {
    flex-direction: column;
  }

  .help-open {
    align-self: flex-start;
  }
}

/* Botão Ajuda na navegação */
.product-user .k4w-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  color: #0756a3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-user .k4w-help-link:hover,
.product-user .k4w-help-link.active {
  background: #edf5fc;
}

.product-user .k4w-help-link > span:first-child {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #0756a3;
  color: white;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .product-user .k4w-help-label {
    display: none;
  }

  .product-user .k4w-help-link {
    padding: 7px;
  }
}


/* ============================================================
   K4W AUTO - CENTRO DE AJUDA V3
   ============================================================ */

.help-v3-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.help-v3-category {
  border: 1px solid #dbe5ef;
  background: #fff;
  color: #34455d;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.help-v3-category:hover {
  background: #edf5fc;
  border-color: #a9cce9;
}

.help-v3-category.active {
  background: #0756a3;
  border-color: #0756a3;
  color: #fff;
}

.help-v3-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.help-v3-toolbar h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 4px;
}

.help-v3-toolbar p {
  color: #718096;
  font-size: 13px;
  margin: 0;
}

.help-v3-reset {
  background: transparent;
  border: 0;
  color: #0756a3;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

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

.help-v3-card {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  scroll-margin-top: 25px;
}

.help-v3-card[hidden] {
  display: none !important;
}

.help-v3-card:has(details[open]) {
  grid-column: 1 / -1;
  border-color: #b6d4ef;
  box-shadow: 0 8px 28px rgba(7, 86, 163, .08);
}

.help-v3-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.help-v3-summary::-webkit-details-marker {
  display: none;
}

.help-v3-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eaf3fc;
  border-radius: 12px;
  font-size: 23px;
  flex-shrink: 0;
}

.help-v3-summary-text {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.help-v3-summary-text strong {
  color: #23344b;
  font-size: 15px;
  line-height: 1.4;
}

.help-v3-summary-text > span {
  color: #718096;
  font-size: 13px;
  line-height: 1.5;
}

.help-v3-chevron {
  color: #0756a3;
  font-size: 24px;
  transition: transform .2s;
}

.help-v3-details[open] .help-v3-chevron {
  transform: rotate(180deg);
}

.help-v3-body {
  border-top: 1px solid #e8eef5;
  padding: 24px;
}

.help-v3-body-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.help-v3-body-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.help-v3-body-heading span {
  color: #718096;
  font-size: 12px;
}

.help-v3-steps {
  margin: 0;
  padding-left: 28px;
}

.help-v3-steps li {
  padding: 8px 0 8px 8px;
  line-height: 1.65;
  font-size: 14px;
}

.help-v3-steps li::marker {
  color: #0756a3;
  font-weight: 800;
}

.help-v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e8eef5;
}

.help-v3-copy {
  border: 1px solid #dbe5ef;
  background: #fff;
  color: #34455d;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.help-v3-copy:hover {
  background: #f4f8fc;
}

.help-v3-category:focus-visible,
.help-v3-summary:focus-visible,
.help-v3-copy:focus-visible,
.help-v3-reset:focus-visible {
  outline: 3px solid #75b9f4;
  outline-offset: 3px;
}

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

@media (max-width: 560px) {
  .help-v3-category {
    flex: 1 1 auto;
  }

  .help-v3-summary {
    padding: 17px;
  }

  .help-v3-body {
    padding: 18px;
  }

  .help-v3-toolbar {
    align-items: flex-start;
  }
}

/* Ligações contextuais nos formulários */

.k4w-context-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #edf5fc;
  color: #0756a3;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #d4e5f5;
}

.k4w-context-help:hover {
  background: #dbeafa;
  color: #06457f;
}

.k4w-context-help-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}


/* CPB · Centro de Ajuda V4 · guia visual */
.help-v4-guide{margin:0 0 28px;display:grid;gap:18px}
.help-v4-intro{padding:17px 20px;border-radius:12px;background:#eaf5fc;border-left:4px solid #087eae}
.help-v4-intro strong{font-size:15px;color:#0756a3}
.help-v4-intro p{margin:6px 0 0;color:#34455d}
.help-v4-stage{padding:18px;border:1px solid #dce8f1;border-radius:14px;background:#fbfdff;min-width:0}
.help-v4-stage h4{font-size:17px;margin:0 0 8px;color:#183958}
.help-v4-stage p{margin:0 0 14px;line-height:1.65;color:#455c72}
.help-v4-stage img{display:block;width:100%;height:auto;border:1px solid #dce8f1;border-radius:10px;margin:10px 0 0}
@media(max-width:560px){.help-v4-stage{padding:12px}}
