.kp-help {
  --kp-help-text: #213b3e;
  --kp-help-muted: #526a6e;
  --kp-help-border: #d8e6e4;
  --kp-help-green: #006b70;
  --kp-help-orange: #ff6700;
  color: var(--kp-help-text);
}

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

.kp-help-hero {
  padding: 64px 0 54px;
  background: linear-gradient(135deg, #eef8f7 0%, #ffffff 70%);
}

.kp-help-kicker {
  margin: 0 0 10px;
  color: var(--kp-help-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.kp-help-hero h1,
.kp-help-article-header h1 {
  margin: 0;
  color: #102f32;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.kp-help-hero > .kp-help-shell > p:not(.kp-help-kicker),
.kp-help-article-header p {
  max-width: 780px;
  margin: 17px 0 0;
  color: var(--kp-help-muted);
  font-size: 18px;
  line-height: 1.65;
}

.kp-help-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 820px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid #c9dcda;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 49, 52, 0.07);
}

.kp-help-search input[type="search"] {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--kp-help-text);
  font-size: 16px;
}

.kp-help-search input[type="search"]::placeholder {
  color: #71878a;
  opacity: 1;
}

.kp-help-search button,
.kp-help-primary {
  display: inline-flex;
  min-width: 112px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  background: var(--kp-help-orange);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.kp-help-sections {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 58px;
}

.kp-help-section-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--kp-help-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 49, 52, 0.05);
  grid-column: span 2;
}

.kp-help-section-card:nth-last-child(2):nth-child(4) {
  grid-column: 2 / span 2;
}

.kp-help-section-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.kp-help-section-card h2 a {
  color: #143538;
  text-decoration: none;
}

.kp-help-section-card > p {
  margin: 0 0 18px;
  color: var(--kp-help-muted);
  font-size: 16px;
  line-height: 1.6;
}

.kp-help-section-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.kp-help-section-card li + li {
  margin-top: 9px;
}

.kp-help-section-card li a,
.kp-help-content a:not(.kp-help-primary):not(.kp-help-secondary):not(.kp-help-secondary-button) {
  color: #9e4307;
  text-decoration-line: underline;
  text-decoration-color: rgba(217, 87, 0, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kp-help-section-card li a:hover,
.kp-help-content a:not(.kp-help-primary):not(.kp-help-secondary):not(.kp-help-secondary-button):hover {
  color: #743104;
  text-decoration-color: currentColor;
}

.kp-help-more {
  margin-top: auto;
  color: var(--kp-help-green);
  font-weight: 850;
  text-decoration: none;
}

.kp-help-article {
  padding: 36px 0 64px;
}

.kp-help-article-shell {
  max-width: 1080px;
}

.kp-help-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #657a7e;
  font-size: 14px;
}

.kp-help-breadcrumbs a {
  color: var(--kp-help-green);
}

.kp-help-article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--kp-help-border);
}

.kp-help-content {
  padding: 30px 0;
  border-bottom: 1px solid var(--kp-help-border);
  color: var(--kp-help-text);
  font-size: 17px;
  line-height: 1.75;
}

.kp-help-content > :first-child {
  margin-top: 0;
}

.kp-help-content > :last-child {
  margin-bottom: 0;
}

.kp-help-child-list {
  margin-top: 38px;
}

.kp-help-child-list h2 {
  margin-bottom: 18px;
  color: #143538;
}

.kp-help-support,
.kp-help-footer-cta > .kp-help-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 26px;
  border: 1px solid #bfd8d5;
  border-radius: 18px;
  background: #eff8f7;
}

.kp-help-support strong {
  display: block;
  margin-bottom: 5px;
  font-size: 19px;
}

.kp-help-support span {
  color: var(--kp-help-muted);
}

.kp-help-support-actions {
  display: flex;
  min-width: 270px;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.kp-help-support-actions > a {
  width: 100%;
  min-height: 48px;
}

.kp-help-secondary-button,
.kp-help-actions .kp-help-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 12px;
  background: var(--kp-help-green);
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

.kp-help-primary:hover,
.kp-help-primary:focus-visible {
  background: var(--kp-help-green);
  color: #ffffff;
}

.kp-help-secondary-button:hover,
.kp-help-secondary-button:focus-visible,
.kp-help-actions .kp-help-secondary:hover,
.kp-help-actions .kp-help-secondary:focus-visible {
  background: var(--kp-help-orange);
  color: #ffffff;
}

.kp-help-material-list {
  display: grid;
  gap: 12px;
}

.kp-help-material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--kp-help-border);
  border-radius: 16px;
  background: #eff8f7;
}

.kp-help-material-card h3 {
  margin: 0 0 7px;
  color: #153638;
  font-size: 18px;
  line-height: 1.4;
}

.kp-help-material-card p {
  margin: 0;
  color: var(--kp-help-muted);
  font-size: 17px;
  line-height: 1.65;
}

.kp-help-material-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #bfd2d0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--kp-help-green);
  font-weight: 800;
  text-decoration: none;
}

.kp-help-footer-cta {
  padding: 8px 0 64px;
}

.kp-help-footer-cta > .kp-help-shell {
  margin-top: 0;
}

.kp-help-footer-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.kp-help-footer-cta p:not(.kp-help-kicker) {
  max-width: 700px;
  margin: 0;
  color: var(--kp-help-muted);
}

.kp-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.kp-help-actions .kp-help-primary,
.kp-help-actions .kp-help-secondary {
  min-width: 220px;
}

.kp-help-results {
  padding-top: 40px;
  padding-bottom: 64px;
}

.kp-help-results-count {
  color: var(--kp-help-muted);
}

.kp-help-results-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.kp-help-results-list article,
.kp-help-empty {
  padding: 24px;
  border: 1px solid var(--kp-help-border);
  border-radius: 16px;
  background: #ffffff;
}

.kp-help-results-list h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.kp-help-results-list h2 a {
  color: #143538;
}

.kp-help-results-list p,
.kp-help-empty p {
  color: var(--kp-help-muted);
  line-height: 1.65;
}

.kp-help-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.kp-term {
  position: relative;
  display: inline-block;
}

.kp-term-trigger {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--kp-help-orange);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: help;
}

.kp-term-trigger:hover,
.kp-term-trigger:focus-visible,
.kp-term-trigger[aria-expanded="true"] {
  background: rgba(217, 87, 0, 0.1);
  outline: 0;
}

.kp-term-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  left: 0;
  width: min(300px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid var(--kp-help-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 49, 52, 0.18);
  color: var(--kp-help-text);
  font-size: 14px;
  line-height: 1.5;
}

.kp-term-popover a {
  display: block;
  margin-top: 8px;
  color: var(--kp-help-green);
  font-weight: 800;
}

.kp-term-popover-right {
  right: 0;
  left: auto;
}

@media (max-width: 900px) {
  .kp-help-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kp-help-section-card,
  .kp-help-section-card:nth-last-child(2):nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .kp-help-material-card {
    grid-template-columns: 1fr;
  }

  .kp-help-material-link {
    justify-self: start;
  }

  .kp-help-sections {
    grid-template-columns: 1fr;
  }

  .kp-help-section-card {
    min-height: 0;
  }

  .kp-help-support,
  .kp-help-footer-cta > .kp-help-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .kp-help-support-actions {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .kp-help-hero {
    padding: 44px 0 38px;
  }

  .kp-help-search {
    grid-template-columns: 1fr;
  }

  .kp-help-search button {
    width: 100%;
  }

  .kp-help-directory-list {
    grid-template-columns: 1fr;
  }

  .kp-term-popover {
    position: fixed;
    top: auto;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
  }
}
