/** Public help: compact hierarchy, task links and readable articles. */
.mel-help-shell__main, .mel-help-contact {
  max-width: var(--mel-public-shell, 1360px);
  margin: 32px auto 56px;
  padding: 0 clamp(16px, 3vw, var(--mel-public-gutter, 28px));
}

.mel-help-shell .mel-help-page, .mel-help-shell .mel-help-home {
  padding: 0;
  background: transparent;
}

.mel-help-shell .mel-help-home__hero {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #e6e2ef;
  border-radius: 24px;
  background: linear-gradient(115deg, #fce8e4, #f0ebff 80%, #e8f5f0);
  color: #293241;
  text-align: left;
}

.mel-help-shell .mel-help-home__title {
  max-width: 26ch;
  margin: 10px 0 24px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: #293241;
}

.mel-help-shell .mel-help-home__search {
  max-width: none;
  margin: 0;
}

.mel-help-shell .mel-help-home__section {
  margin-top: 32px;
}

.mel-help-topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mel-help-topic {
  position: relative;
  display: block;
  padding: 24px 48px 24px 24px;
  border: 1px solid #e6e2ef;
  border-radius: 16px;
  background: #fff;
  color: #293241;
  text-decoration: none;
}

a.mel-help-topic:hover {
  background: #f7f3ff;
  border-color: #a992d2;
  color: #293241;
}

.mel-help-topic h3, .mel-help-topic h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.mel-help-topic p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #596174;
}

.mel-help-topic__arrow {
  position: absolute;
  right: 22px;
  top: 24px;
  color: #604394;
}

.mel-help-browse {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.mel-help-browse a, .mel-help-contact-strip a, .mel-help-contact a {
  color: #604394;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mel-help-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  background: #f0ebfa;
}

.mel-help-contact-strip h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.mel-help-contact-strip p {
  margin: 0;
}

.mel-help-contact-strip a {
  font-weight: 700;
  padding: 12px 0;
}

.mel-help-topic:focus-visible, .mel-help-browse a:focus-visible, .mel-help-contact a:focus-visible {
  outline: 3px solid #7657b5;
  outline-offset: 4px;
}

.mel-help-node .mel-help-breadcrumb {
  font-size: 14px;
  margin-bottom: 24px;
  color: #596174;
}

.mel-help-node .mel-help-breadcrumb a {
  color: #604394;
  text-decoration: underline;
}

.mel-help-node .mel-help-node__content {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  line-height: 1.75;
}

.mel-help-node .mel-help-node__related {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.mel-help-node .mel-help-node__related .view-content {
  display: block;
}

.mel-help-node .mel-help-card, .mel-help-shell .mel-help-card {
  display: block;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #e6e2ef;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mel-help-node .mel-help-card-content, .mel-help-shell .mel-help-card-content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mel-help-node .mel-help-card h3, .mel-help-shell .mel-help-card h3 {
  font-size: 19px;
}

.mel-help-contact .mel-help-topic a {
  display: inline-block;
  margin-top: 18px;
}

@media (width >= 700px) { .mel-help-topics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
} }

@media (width >= 1050px) { .mel-help-topics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
} }

@media (width <= 500px) { .mel-help-shell .mel-help-home__search {
  flex-direction: column;
} }

/* Keep the embedded assistant to one introduction and one clear question. */
.mel-help-shell .mel-help-home__section--assistant {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #e6e2ef;
  border-radius: 24px;
  background: #f4f0fb;
}

.mel-help-shell .mel-help-home__assistant-shell,
.mel-help-shell .mel-help-assistant .mel-help-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mel-help-home__section--assistant .mel-help-header {
  display: none;
}

.mel-help-home__section--assistant .mel-help-suggestions {
  margin: 20px 0;
}

.mel-help-home__section--assistant .mel-chip-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.mel-help-home__section--assistant .mel-chip {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d8cce9;
  border-radius: 12px;
  background: #fff;
  color: #604394;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}

.mel-help-home__section--assistant .mel-chip:hover {
  background: #ece3f7;
}

.mel-help-home__section--assistant textarea {
  box-sizing: border-box;
  width: 100%;
  height: 108px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid #b9adca;
  border-radius: 14px;
  background: #fff;
  color: #293241;
  font: inherit;
  resize: vertical;
}

.mel-help-home__section--assistant .mel-help-actions {
  margin-top: 12px;
}

.mel-help-home__section--assistant .mel-help-escalation {
  margin-top: 20px;
}

.mel-help-shell .mel-help-search {
  padding: 0;
}

.mel-help-search .mel-help-search-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #604394;
  text-underline-offset: 3px;
}

.mel-help-search .mel-help-search-hero {
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
  border: 1px solid #e6e2ef;
  border-radius: 24px;
  background: linear-gradient(115deg, #fce8e4, #f0ebff);
}

.mel-help-search .mel-help-search__title {
  font-size: clamp(28px, 4vw, 38px);
}

.mel-help-search .mel-search-box input {
  min-height: 52px;
  border-radius: 12px;
  border-color: #b9adca;
}

.mel-help-search .mel-help-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e6e2ef;
  border-radius: 16px;
}

.mel-help-search .mel-filter-pill select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
}

.mel-help-search .mel-help-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mel-help-search .mel-help-card {
  padding: 24px;
  border: 1px solid #e6e2ef;
  border-radius: 16px;
  background: #fff;
}

.mel-help-search .mel-help-empty {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #e6e2ef;
  border-radius: 20px;
  background: #f4f0fb;
  text-align: left;
}

.mel-help-search .mel-help-empty .mel-chip-group {
  justify-content: flex-start;
}

.mel-help-search :is(a, input, select, button):focus-visible,
.mel-help-home__section--assistant :is(a, textarea, button):focus-visible {
  outline: 3px solid #7657b5;
  outline-offset: 3px;
}

@media (width >= 800px) {
  .mel-help-search .mel-help-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .mel-help-search .mel-help-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mel-help-search .mel-filter-apply :is(input[type='submit'], button[type='submit']) {
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: #604394;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mel-help-search .mel-help-empty a {
  color: #604394;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Recovery actions remain readable and usable on narrow screens. */
.mel-help-contact {
  overflow-wrap: anywhere;
}

.mel-help-contact .mel-help-topic {
  padding: 24px;
}

.mel-help-contact .mel-help-topic p {
  margin-block: 12px;
  font-size: 16px;
}

.mel-help-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mel-help-contact #event-day {
  margin-top: 24px;
  scroll-margin-top: 100px;
}
