/* Help center on the Support page: search, topic filters, and grouped answers. */

.help-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 6px 0 14px;
  border: 1px solid rgb(60 91 74 / 26%);
  border-radius: 100px;
  background: rgb(255 254 247 / 75%);
  box-shadow: 0 6px 18px rgb(38 66 52 / 7%);
}

.help-search:focus-within {
  border-color: #315c48;
  box-shadow: 0 0 0 3px rgb(49 92 72 / 18%), 0 6px 18px rgb(38 66 52 / 7%);
}

.help-search svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #476653;
  stroke-width: 2;
  stroke-linecap: round;
}

.help-search input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #263d31;
  font: inherit;
  font-size: var(--text-md);
  outline: none;
}

.help-search input::placeholder { color: #7a887f; }
.help-search input::-webkit-search-cancel-button { display: none; }

.help-clear {
  flex: none;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 100px;
  background: rgb(45 79 62 / 8%);
  color: #294236;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
}

.help-clear:hover { background: rgb(45 79 62 / 14%); }

.help-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-filter {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(60 91 74 / 22%);
  border-radius: 100px;
  background: rgb(255 255 250 / 66%);
  color: #294236;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
}

.help-filter:hover { border-color: rgb(60 91 74 / 46%); background: #fffef7; }

.help-filter[aria-pressed="true"] {
  border-color: var(--button-border);
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  color: var(--button-ink);
}

.help-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  color: #596a60;
  font-size: var(--text-sm);
}

.help-status p { margin: 0; }

.help-bulk {
  display: flex;
  gap: 8px;
}

.help-bulk button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #315c48;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.help-bulk button:hover { background: rgb(45 79 62 / 8%); }

.help-group + .help-group { margin-top: 18px; }

.help-group-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  color: #263d31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--text-lg);
  font-weight: 700;
}

.help-group-heading span {
  color: #67766d;
  font-family: inherit;
  font-size: var(--text-sm);
}

.help-item { scroll-margin-top: calc(var(--site-header-height, 110px) + 16px); }
/* Matches styles.css: here the header scrolls away with the page. */
@media (max-width: 700px), (max-height: 540px) and (max-width: 1180px) {
  .help-item { scroll-margin-top: 12px; }
}

.help-item .explainer-body > ul,
.help-item .explainer-body > ol {
  margin: 0 0 8px;
  padding-left: 20px;
  color: #506158;
  line-height: 1.6;
}

.help-item .explainer-body li + li { margin-top: 4px; }

.help-tip {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-left: 3px solid #7a9a4a;
  border-radius: 0 12px 12px 0;
  background: rgb(122 154 74 / 10%);
  color: #3c4e44;
  line-height: 1.6;
}

.help-tip strong { color: #2d4a2a; }

.help-empty {
  padding: 12px;
  border: 1px dashed rgb(60 92 74 / 30%);
  border-radius: 20px;
  color: #506158;
  text-align: center;
}

.help-empty p { margin: 0 0 8px; }
.help-empty p:last-child { margin: 0; }

.help-item[hidden],
.help-group[hidden],
.help-empty[hidden],
.help-tools[hidden] { display: none !important; }

@media (max-width: 640px) {
  .help-search { padding-left: 16px; }
  .help-status { align-items: flex-start; flex-direction: column; }
  .help-group + .help-group { margin-top: 16px; }
}

/* Touch screens: the search box, filters and Expand / Collapse all are sized
   for a fingertip. */
@media (pointer: coarse) {
  .help-search { min-height: 48px; }
  .help-search input { min-height: 44px; }
  .help-clear { min-height: 38px; }
  .help-filter,
  .help-bulk button { min-height: 40px; }
}
