/* Help (help.js): a search box, topic chips, and each topic's questions as cards that open in place. Both looks; the
   new look's tokens and type sizes come from styles.css. */
.help-page { max-width: 760px; }
.help-lede { margin: 4px 0 14px; }
/* The search box: the new look's find-box exactly (styles.css, as on Home and Your people); the old look gets a plain
   bordered box. */
:root:not([data-look="new"]) .help-find { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 2px 14px; background: var(--surface); color: var(--fg); }
:root:not([data-look="new"]) .help-find input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; color: inherit; font: inherit; outline: none; }
:root:not([data-look="new"]) .help-find .icon { flex: none; color: var(--muted); }
.help-find input { flex: 1; min-width: 0; }
.help-topics { margin: 14px 0 6px; }
.help-topics .chip { text-decoration: none; color: var(--fg); }
.help-none { margin: 18px 0; }

/* A topic: its heading, then its questions. */
.help-sec { margin: 30px 0 0; scroll-margin-top: 90px; }
.help-sec h2 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help-sec h2 .tag { font-size: 12px; letter-spacing: 0; }
/* A question: a card like Admin's class rows. The summary stays a block (Safari won't open a <details> whose summary is
   a flex box); the chevron sits at its right and turns when open. Not the browser's triangle. */
.help-q { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.help-q > summary { list-style: none; cursor: pointer; display: block; position: relative; padding: 14px 48px 14px 18px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary:hover { color: var(--accent); }
.help-q > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.help-q > summary .tag { margin-left: 6px; vertical-align: 2px; }
.help-chev { position: absolute; right: 16px; top: 50%; margin-top: -10px; color: var(--muted); transition: transform .15s; }
.help-q[open] > summary .help-chev { transform: rotate(180deg); }
.help-q[open] > summary { border-bottom: 1px solid var(--line); }
.help-a { padding: 4px 18px 16px; line-height: 1.55; }
.help-a > p { margin: 12px 0 0; }
.help-steps { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: hs; }
.help-steps li { counter-increment: hs; position: relative; padding-left: 36px; margin: 0 0 10px; min-height: 24px; }
.help-steps li::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.help-go { font-weight: 600; }
.help-go a { text-decoration: none; }

/* Screenshots: every photo and name in them is blurred or replaced. A frame so a white page doesn't melt into the page. */
.help-shot { margin: 14px 0 4px; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.help-shot.phone img { max-width: min(260px, 100%); border-radius: 18px; }
/* Two phone screens side by side, smaller on a phone. */
.help-pair { display: flex; gap: 14px; }
.help-pair .help-shot { flex: 1 1 0; max-width: 260px; min-width: 0; }
.help-foot { margin-top: 24px; }

@media (max-width: 640px) {
  .help-sec { margin-top: 24px; }
  .help-q > summary { padding: 13px 44px 13px 14px; }
  .help-chev { right: 12px; }
  .help-a { padding: 2px 14px 14px; }
  /* The topics scroll sideways in one row, as Home's class chips do. */
  .help-topics { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 2px 14px; scrollbar-width: none; }
  .help-topics .chip { flex: none; }
}

/* "How do I…?" at the foot of each "Something wrong?" menu (app.js wrongHTML), set off like the testers' item above it. */
.wrong-pop .wrong-help { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.wrong-pop .wrong-site + .wrong-help { margin-top: 0; }
.wrong-pop .wrong-help b { color: var(--accent); }

/* Help's table of keyboard shortcuts (help.js "shortcuts"). */
.help-keys { width: 100%; border-collapse: collapse; margin: 10px 0 0; font-size: 14px; }
.help-keys th, .help-keys td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.help-keys th { font-size: 12px; color: var(--muted); font-weight: 600; }
.help-keys td:nth-child(2) { white-space: nowrap; }
.help-keys kbd { display: inline-block; min-width: 1.6em; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--surface); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; }
@media (max-width: 520px) { .help-keys { font-size: 13px; } .help-keys th, .help-keys td { padding-right: 6px; } }
