/* v0.182.32: the Help guide. Builds on legal.css (its colours, its top
   bar, its footer); a wider page with a chapter rail on the desk, the
   pictures from the app with numbered marks, and a Desk/Phone switch. */
.hg .lg-top, .hg-foot { max-width: 1120px; }
.hg-top .hg-home {
  font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding-left: 12px; border-left: 1px solid var(--line);
}
.hg-foot { margin: 0 auto 40px; padding: 0 24px; font-family: 'Jost', system-ui, sans-serif; font-size: 11px; letter-spacing: .05em; color: var(--ink-faint); line-height: 1.9; }
.hg-foot a { color: var(--ink-soft); }
.hg-front main.hg-main { max-width: 1120px; }
.hg-wrap {
  max-width: 1120px; margin: 22px auto 40px; padding: 0 24px;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start;
}
.hg-wrap main.hg-main { max-width: none; margin: 0; }
.hg-rail { position: sticky; top: 18px; padding-top: 6px; }
.hg-rail-k, .hg-toc-k, .hg-search-k, .hg-chap-h, .hg-switch-k {
  margin: 0 0 8px; font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.hg-rail ol { list-style: none; margin: 0; padding: 0; }
.hg-rail li { margin: 0; }
.hg-rail a { display: block; padding: 5px 10px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.35; }
.hg-rail a:hover { color: var(--accent-ink); }
.hg-rail .is-on a { border-left-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.hg-lede { font-size: 20px; color: var(--ink-soft); margin: 6px 0 18px; max-width: 46em; }

/* The Desk/Phone switch: always there on a chapter page. */
.hg-tools { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.hg-switch { display: inline-flex; align-items: center; gap: 0; }
.hg-switch-k { margin: 0 10px 0 0; }
.hg-switch button {
  font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); padding: 7px 13px; cursor: pointer; min-height: 32px;
}
.hg-switch button:first-of-type { border-radius: 3px 0 0 3px; }
.hg-switch button:last-of-type { border-radius: 0 3px 3px 0; border-left: 0; }
.hg-switch button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.hg-switch button:focus-visible, .hg-card:focus-visible, .hg-search input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.hg-toc { padding: 14px 18px; background: var(--ground); border-radius: 3px; margin: 0 0 8px; }
.hg-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.hg-toc li { margin: 2px 0; break-inside: avoid; }

.hg-topic { padding-top: 6px; border-top: 1px solid var(--line); margin-top: 30px; scroll-margin-top: 14px; }
.hg-topic h2 { margin-top: 22px; }
.hg-anchor { color: inherit; text-decoration: none; }
.hg-anchor:hover { color: var(--accent-ink); text-decoration: underline; }
.hg-topic p { max-width: 46em; }
.hg-steps { padding-left: 0; margin: 10px 0 14px; list-style: none; counter-reset: hg; max-width: 46em; }
.hg-steps li { counter-increment: hg; position: relative; padding-left: 38px; margin: 8px 0; }
.hg-steps li::before {
  content: counter(hg); position: absolute; left: 0; top: 2px; width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: 'Jost', system-ui, sans-serif; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.hg-steps b, .hg-after b, .hg-topic p b { font-weight: 600; }

/* One device at a time; html[data-dev] is set by js/help.js. */
html[data-dev="desk"] .hg-task.is-phone, html[data-dev="phone"] .hg-task.is-desk { display: none; }
html:not([data-dev]) .hg-task.is-phone { display: none; }

.hg-fig { margin: 14px 0 18px; }
.hg-dev { margin: 0 0 6px; font-family: 'Jost', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.hg-shot { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--ground); line-height: 0; }
.hg-shot.is-phone { max-width: 390px; }
.hg-shot img { display: block; width: 100%; height: auto; }
.hg-mk {
  position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  font-family: 'Jost', system-ui, sans-serif; font-size: 13px; font-weight: 600; line-height: 22px; text-align: center;
}
.hg-nopic { font-size: 15px; color: var(--ink-faint); margin: 6px 0 14px; }
.hg-picnote { font-size: 15px; color: var(--ink-soft); margin: -4px 0 14px; max-width: 46em; }
.hg-anim { margin: 14px 0 18px; max-width: 560px; }
.hg-anim img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.hg-anim figcaption { margin-top: 6px; font-family: 'Jost', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.hg-after { max-width: 46em; }
.hg-keys { max-width: 40em; }
kbd { font-family: 'Jost', system-ui, sans-serif; font-size: 13px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; background: var(--ground); white-space: nowrap; }

.hg-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.hg-pn a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); font-size: 18px; }
.hg-pn a:hover { border-color: var(--accent); }
.hg-pn span { display: block; font-family: 'Jost', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.hg-next { text-align: right; grid-column: 2; }

/* The front page: search, then the chapters. */
.hg-search { margin: 0 0 30px; }
.hg-search-k { display: block; }
.hg-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.hg-search input {
  width: 100%; max-width: 620px; font: inherit; font-size: 19px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-faint); border-radius: 3px; padding: 10px 14px;
}
.hg-count { margin: 8px 0 0; font-size: 15px; color: var(--ink-faint); min-height: 1.5em; }
.hg-results { list-style: none; margin: 6px 0 0; padding: 0; max-width: 720px; }
.hg-results li { margin: 0; border-top: 1px solid var(--line); }
.hg-results a { display: block; padding: 9px 2px; text-decoration: none; color: var(--ink); }
.hg-results a:hover .hg-r-t { color: var(--accent-ink); text-decoration: underline; }
.hg-r-t { font-weight: 600; }
.hg-r-c { display: block; font-family: 'Jost', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hg-r-x { display: block; font-size: 15px; color: var(--ink-soft); }
.hg-chap-h { margin-top: 10px; }
.hg-cards { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hg-cards li { margin: 0; }
.hg-card { display: block; height: 100%; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); background: var(--paper); }
.hg-card:hover { border-color: var(--accent); }
.hg-card-n { display: block; font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--accent-ink); }
.hg-card-t { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; margin: 2px 0 4px; color: var(--accent-ink); }
.hg-card-b { display: block; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 960px) {
  .hg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-wrap { grid-template-columns: minmax(0, 1fr); }
  .hg-rail { display: none; }
}
@media (max-width: 620px) {
  .hg-wrap { padding: 0; margin-top: 14px; }
  .hg-wrap main.hg-main { margin: 0 10px 28px; }
  .hg-cards { grid-template-columns: minmax(0, 1fr); }
  .hg-toc ol { columns: 1; }
  .hg-tools { justify-content: flex-start; }
  .hg-lede { font-size: 18px; }
  .hg-pn { grid-template-columns: 1fr; }
  .hg-next { grid-column: 1; }
  .hg-top .hg-home { display: none; }
  .hg-keys, .hg-keys thead, .hg-keys tbody, .hg-keys tr, .hg-keys th, .hg-keys td { display: revert; }
  .hg-keys td { padding: 7px 6px; }
  .hg-mk { width: 22px; height: 22px; line-height: 18px; font-size: 12px; }
}
@media print {
  .hg-rail, .hg-tools, .hg-pn, .lg-top .lg-back { display: none; }
  .hg-wrap { display: block; }
}
/* v0.182.82: Lists help and Inventory help, side by side. */
.hg-zones { display: inline-flex; margin: 4px 0 14px; }
.hg-zones a { font-family: 'Jost', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--accent-ink); border: 1px solid var(--line); padding: 9px 16px; min-height: 24px; }
.hg-zones a:first-child { border-radius: 3px 0 0 3px; }
.hg-zones a:last-child { border-radius: 0 3px 3px 0; border-left: 0; }
.hg-zones a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.hg-zones a:hover:not([aria-current]) { background: var(--paper); }
.hg-zones a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.hg-rail-g { margin-top: 16px; }
