/* /help: the search box, the articles and their topics.
   The reference below them is the site's own groups and tiles (theme.css);
   the jump row over the topics is theme.css's .os-jump. */

.page-header .page-sub + .page-sub { margin-top: var(--space-2); }

/* The box: the front door's search row, as a field that is one. */
.hp-search { margin: var(--space-5) 0 0; max-width: 780px; }
.hp-search-label { display: block; margin: 0 0 6px; font: 600 var(--text-xs)/1.3 var(--font-ui); color: var(--ink-soft); }
.hp-search-row { position: relative; }
.hp-search-row svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.hp-search input {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 12px 16px 12px 44px;
  border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper-inset); color: var(--ink);
  font: inherit; font-size: var(--text-md);
  transition: border-color var(--dur-2) var(--ease-standard), box-shadow var(--dur-2) var(--ease-standard);
}
.hp-search input::placeholder { color: var(--ink-faint); }
.hp-search input:hover { border-color: var(--rule-strong); }
.hp-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.hp-topics { margin-top: var(--space-5); }
.hp-topics[hidden], .hp-topic[hidden], .hp-art[hidden], .hp-none[hidden], .hp-found[hidden], .hp-ref-h[hidden], .os-groups[hidden] { display: none; }

.hp-none { margin: var(--space-5) 0; max-width: var(--measure); font-size: var(--text-sm); line-height: var(--leading-prose); color: var(--ink-soft); }
.hp-none a { color: var(--accent-strong); }

/* A topic is a heading and its articles; an article a linked title and a
   paragraph or two, at one measure. Two columns where there is room. */
.hp-topic { margin: 0 0 var(--space-6); scroll-margin-top: 78px; }
.hp-topic-h, .hp-ref-h { margin: 0 0 var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--rule);
  font: 600 var(--text-lg)/1.3 var(--font-ui); letter-spacing: var(--track-head); color: var(--ink); }
.hp-ref-h { margin-top: var(--space-7); margin-bottom: var(--space-5); }
.hp-topic { display: grid; grid-template-columns: 1fr; column-gap: var(--space-6); }
.hp-topic > .hp-topic-h { grid-column: 1 / -1; }
@media (min-width: 900px) { .hp-topic { grid-template-columns: 1fr 1fr; } }
.hp-art { max-width: var(--measure); padding: var(--space-3) 0; scroll-margin-top: 78px; }
.hp-art h3 { margin: 0 0 4px; font: 600 var(--text-md)/1.35 var(--font-ui); }
.hp-art p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-prose); color: var(--ink-soft); }
.hp-art p + p { margin-top: var(--space-2); }
.hp-art p a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.hp-art p a:hover { text-decoration-thickness: 2px; }
.hp-art:target h3 { color: var(--accent-strong); }
/* A folded article (Getting started): its title is the summary, with the
   chevron tool pages fold their reading under. */
.hp-fold { padding: 0; }
.hp-fold > details > summary { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-1) 0; list-style: none; cursor: pointer; }
.hp-fold > details > summary::-webkit-details-marker { display: none; }
.hp-fold > details > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint); transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease-standard); }
.hp-fold > details[open] > summary::before { transform: rotate(45deg); }
.hp-fold > details > summary h3 { margin: 0; }
.hp-fold > details > summary:hover h3 { color: var(--accent-strong); }
.hp-fold > details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.hp-fold > details[open] { padding-bottom: var(--space-3); }

.hp-found { margin: 0 0 var(--space-6); }

/* The film of an application at work, under its first steps (help-page.mjs). */
.hp-film { margin: var(--space-3) 0 0; }
.hp-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper-inset); }
.hp-film figcaption { margin-top: var(--space-2); font-size: var(--text-xs); line-height: 1.5; color: var(--ink-soft); }
