/*
  The help page. Questions people actually ask, with the answers folded away so the page can be scanned
  rather than read. Built for a phone first: every question is a full width tap target.
*/
.help-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 24px;
}

.help-tab {
  width: 100%;
  margin: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.help-tab:hover { border-color: var(--muted); }

.help-tab.chosen {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* This file loads after the shared styles, so it has to say how hiding works for its own pieces. */
#stylistHelp.hidden, #customerHelp.hidden { display: none; }

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

details:first-of-type { border-top: 1px solid var(--line); }

summary {
  cursor: pointer;
  padding: 16px 2px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The arrow is drawn rather than left to the browser, which draws a different one on every platform. */
summary::-webkit-details-marker { display: none; }

summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

details[open] summary::after { transform: rotate(-135deg); }

details p {
  margin: 0 2px 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}
