/* R424: brede hulpkop met zoekfunctie binnen de hulponderwerpen. */
.help-content {
  align-items: flex-start;
  flex-wrap: wrap;
}

.help-content > .help-hero {
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: 0;
}

.help-content > #content-inner {
  min-width: 0;
  flex: 1 1 0;
}

.help-content > .help-sidebar {
  width: 300px;
  flex: 0 0 300px;
}

.site-shell-r420 .help-hero {
  align-items: center;
  justify-content: space-between;
}

.help-hero-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.help-page-search {
  width: min(390px, 38%);
  flex: 0 0 min(390px, 38%);
  margin: 0;
}

.help-page-search > label {
  display: block;
  margin: 0 0 7px;
  color: var(--site-page-accent-dark, #3F5F2E);
  font-size: var(--base-font-size, 16px);
  font-weight: 700;
}

.help-page-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.help-page-search-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 46px 0 42px;
  border: 1px solid var(--site-page-accent-border, #C6D5BB);
  border-radius: 7px;
  background: var(--color-surface-main, #fff);
  color: var(--color-text, #242424);
  font: inherit;
  box-shadow: none;
}

.help-page-search-field input:focus {
  border-color: var(--site-page-accent, #557A3E);
  outline: 3px solid color-mix(in srgb, var(--site-page-accent, #557A3E) 18%, transparent);
  outline-offset: 0;
}

.help-page-search-field input::-webkit-search-cancel-button {
  display: none;
}

.help-page-search-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 18px;
  color: var(--site-page-accent, #557A3E);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  pointer-events: none;
}

.help-page-search-icon::before {
  content: "\f002";
}

.help-page-search-field button {
  position: absolute;
  right: 6px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 30px;
}

.help-page-search-status {
  min-height: 22px;
  margin: 7px 0 0;
  color: var(--site-page-muted, #646B75);
  font-size: var(--base-font-size, 16px);
  line-height: 1.4;
}

.help-link-card[hidden],
.help-section[hidden],
.help-search-empty[hidden] {
  display: none !important;
}

.site-shell-r420 .help-search-empty {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--color-surface-main, #fff);
  box-shadow: var(--base-shadow, 0 2px 6px rgba(0, 0, 0, .12));
}

.help-search-empty > .help-page-search-icon {
  position: static;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--site-page-accent-soft, #F0F5EC);
  font-size: 20px;
}

.help-search-empty h2 {
  margin: 0 0 5px;
  color: var(--site-page-accent, #557A3E);
  font-size: calc(var(--base-font-size, 16px) + 4px);
}

.help-search-empty p {
  margin: 0 0 12px;
  color: var(--site-page-muted, #646B75);
  font-size: var(--base-font-size, 16px);
}

@media (max-width: 900px) {
  .site-shell-r420 .help-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .help-page-search {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 700px) {
  .help-content > .help-sidebar {
    width: 100%;
    flex-basis: 100%;
  }

  .help-hero-heading {
    align-items: flex-start;
  }

  .site-shell-r420 .help-hero-mark {
    display: grid;
  }
}

@media (max-width: 480px) {
  .help-hero-heading {
    gap: 10px;
  }

  .site-shell-r420 .help-hero-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 38px;
  }

  .help-page-search-field input {
    padding-left: 40px;
  }
}

/* R425: sitebrede paginaszoeker met resultaten direct onder het veld. */
.site-shell-r420 .help-hero {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.help-page-search {
  width: min(440px, 42%);
  flex: 0 0 min(440px, 42%);
}

.help-page-search-field {
  z-index: 5;
}

.help-page-search-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 100;
  max-height: min(460px, 62vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--site-page-accent-border, #C6D5BB);
  border-radius: 8px;
  background: var(--color-surface-main, #fff);
  color: var(--color-text, #242424);
  box-shadow: 0 14px 34px rgba(30, 48, 26, .22);
  overscroll-behavior: contain;
}

.help-page-search-results[hidden] {
  display: none !important;
}

.help-page-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--color-text, #242424);
  text-decoration: none;
}

.help-page-search-result + .help-page-search-result {
  border-top: 1px solid color-mix(in srgb, var(--site-page-accent-border, #C6D5BB) 62%, transparent);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.help-page-search-result:hover,
.help-page-search-result.is-active,
.help-page-search-result:focus-visible {
  background: var(--site-page-accent-soft, #F0F5EC);
  color: var(--color-text, #242424);
  outline: 0;
}

.help-page-search-result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--site-page-accent-soft, #F0F5EC) 78%, #fff);
  font-size: 20px;
  line-height: 1;
}

.help-page-search-result-copy {
  min-width: 0;
}

.help-page-search-result-copy strong,
.help-page-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-page-search-result-copy strong {
  margin: 0 0 3px;
  color: var(--site-page-accent-dark, #3F5F2E);
  font-size: var(--base-font-size, 16px);
  line-height: 1.3;
  white-space: nowrap;
}

.help-page-search-result-copy small {
  color: var(--site-page-muted, #646B75);
  font-size: calc(var(--base-font-size, 16px) - 1px);
  line-height: 1.35;
  white-space: nowrap;
}

.help-page-search-result-meta {
  max-width: 118px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--site-page-accent-soft, #F0F5EC);
  color: var(--site-page-accent-dark, #3F5F2E);
  font-size: calc(var(--base-font-size, 16px) - 2px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.help-page-search-no-results {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  color: var(--site-page-muted, #646B75);
}

.help-page-search-no-results > span {
  font-size: 21px;
  line-height: 1;
}

.help-page-search-no-results strong,
.help-page-search-no-results small {
  display: block;
}

.help-page-search-no-results strong {
  margin-bottom: 4px;
  color: var(--site-page-accent-dark, #3F5F2E);
  font-size: var(--base-font-size, 16px);
}

.help-page-search-no-results small {
  font-size: calc(var(--base-font-size, 16px) - 1px);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .help-page-search {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .help-page-search-results {
    right: -2px;
    left: -2px;
    max-height: 56vh;
  }

  .help-page-search-result {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .help-page-search-result-icon {
    width: 38px;
    height: 38px;
  }

  .help-page-search-result-meta {
    display: none;
  }
}
