/* The public help page (/help; spec 15.3, R82): its layout. The bar the wordmark sits in, as on /signin (the wordmark
   itself is base.css's); one panel (the kit's .panel: its surface and padding), centred, at most 520 px. Where the
   window is big enough (980 × 700, the size /signin centres its form at) the panel sits in the middle of the window.
   Load after controls.css. Class names carry hp- so nothing meets another page's. */

:root { --hp-nav: 68px; }

/* ---------------------------------------------------------------- the bar the wordmark sits in */
.hp-top-in { display: flex; align-items: center; height: var(--hp-nav); }

/* ---------------------------------------------------------------- the panel */
.hp { padding-top: clamp(20px, 4vh, 40px); padding-bottom: 64px; }
.hp-panel { width: 100%; max-width: 520px; margin: 0 auto; }
.hp-sub { margin-top: 14px; }
/* the address: an inline link in the sentence (R25), in ink; a long address may break rather than run out */
.hp-sub a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
/* Back: the standalone action link, on its own row under the line; the short word keeps a 44 px target, reaching
   right so the word stays on the text's left edge */
.hp-panel > .link { display: flex; width: fit-content; min-width: 44px; justify-content: flex-start; margin-top: var(--s4); }

@media (min-width: 980px) and (min-height: 700px) {
  :root { --hp-nav: clamp(60px, 9vh, 84px); }
  /* the wordmark sits over the main area's top padding, so the main area is exactly the window */
  .hp-top { position: absolute; left: 0; right: 0; top: 0; z-index: 1; }
  .hp { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding-top: var(--hp-nav); padding-bottom: var(--hp-nav); }
  .hp-sub { margin-top: 16px; }
}
