/* Moard help. Colors come from the generated /assets/moard.css; type and the
   header come from launch.css, linked before this file.
   The page's own idea: the product's words are the index. Every answer is
   headed the same way, by the words a person sees, and an on-screen label is
   drawn as a small key. */

.help-page main { width: min(1180px, calc(100% - 2 * var(--site-gutter))); margin: 0 auto; padding: 150px 0 40px; }
.help-page a { text-underline-offset: 3px; }
.help-page a:hover { color: var(--moard-intent); }

/* Search: the subject of the home page, centred, with nothing to read before it. */
.launch .help-find { max-width: 760px; margin: 0 auto; padding: 24px 0 8px; text-align: center; }
.launch.help-page .help-find h1 { font-size: clamp(34px, 3.4vw, 48px); }
.help-search { margin-top: 28px; text-align: left; }
.help-search label { display: block; margin-bottom: 10px; color: var(--moard-ink-dim); font-size: 15px; text-align: center; }
/* What Moard said goes in a key face inside the logo's corners; with the
   cursor in it the corners close in and take the focus colour. */
.help-search__field { --corner-out: 12px; --corner-arm: 30px; display: flex; align-items: stretch; border: 1px solid var(--moard-hairline); border-radius: 8px; background: var(--moard-surface-high); }
.help-search__field:focus-within { --corner-out: 7px; --corner-ink: var(--moard-focus); border-color: var(--moard-ink-dim); }
.help-search input { flex: 1; min-width: 0; min-height: 62px; padding: 14px 18px; border: 0; background: none; color: var(--moard-ink); font: 500 20px var(--site-font); }
.help-search input::placeholder { color: var(--moard-ink-faint); }
.help-search input:focus { outline: none; }
.help-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.help-search button { flex: none; min-width: 96px; margin: 8px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--moard-surface); color: var(--moard-ink); font: 700 14px var(--site-font); cursor: pointer; }
.help-search button:hover { color: var(--moard-intent); }
.help-search button:focus-visible { outline: var(--moard-stroke-focus) solid var(--moard-focus); outline-offset: 2px; }
.launch .help-count { min-height: 24px; margin: 12px 0 0; color: var(--moard-ink-dim); font-size: 14px; text-align: center; }
.help-count:empty { min-height: 0; margin: 0; }

.help-results { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--moard-hairline); }
.help-results li { border-bottom: 1px solid var(--moard-hairline); }
.help-results a { display: grid; gap: 2px; padding: 14px 4px; text-decoration: none; }
.help-results a:hover, .help-results a:focus-visible { background: var(--moard-surface); }
.help-results__title { color: var(--moard-ink); font-size: 17px; font-weight: 650; line-height: 1.4; }
.help-results__where { color: var(--moard-ink-dim); font-size: 13px; }

/* Every article, each heading its own block, read down the columns. A row is
   either a task or a message Moard shows, in its own words. */
.help-topics { columns: 3 280px; column-gap: 56px; margin-top: 56px; }
.help-topics .help-topic { break-inside: avoid; padding: 18px 0 30px; border-top: 1px solid var(--moard-hairline); }
.launch .help-topic h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.help-topic h2 a { display: inline-block; padding: 4px 0; color: var(--moard-ink); text-decoration: none; }
.help-topic h2 a:hover { color: var(--moard-intent); }
.help-topic ul { list-style: none; margin: 0; padding: 0; }
.help-topic li a { display: block; padding: 5px 0; color: var(--moard-ink-dim); font-size: 14px; line-height: 1.45; text-decoration: none; }
.help-topic li a:hover { color: var(--moard-ink); text-decoration: underline; }
.help-topic__more { display: none; }

/* The way forward at the end of every page. */
.help-stuck { max-width: 760px; margin: 64px auto 0; padding: 40px 0 24px; border-top: 1px solid var(--moard-hairline); text-align: center; }
.launch .help-stuck h2 { font-size: 26px; }
.launch .help-stuck p { max-width: 52ch; margin: 10px auto 0; color: var(--moard-ink-dim); }
.help-stuck__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 22px; }
.help-page a.help-mail { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 28px; border: 1px solid var(--moard-intent); border-bottom: 4px solid var(--moard-intent-deep); border-radius: 8px; background: var(--moard-intent); color: var(--moard-ground-sunk); font: 750 15px var(--site-font); text-decoration: none; }
.help-page a.help-mail:hover { background: var(--moard-ink); border-color: var(--moard-ink); color: var(--moard-ground-sunk); }
.help-quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--moard-ink); font-size: 15px; }

/* An article: long reading, left aligned inside a centred column. */
.help-article { max-width: 760px; margin: 0 auto; padding-top: 16px; }
.launch .help-trail { display: flex; margin: 0; font-size: 14px; }
.help-trail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--moard-ink); }
.launch.help-page .help-body h1 { margin-top: 6px; font-size: clamp(34px, 3.2vw, 46px); overflow-wrap: break-word; hyphens: auto; }
.launch .help-body .answer { max-width: 62ch; margin-top: 18px; color: var(--moard-ink); font-size: 19px; line-height: 1.6; }
.help-body section { padding: 28px 0 20px; border-top: 1px solid var(--moard-hairline); margin-top: 28px; scroll-margin-top: 24px; }
.help-body section + section { margin-top: 0; }
.launch .help-body h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.01em; }
.launch .help-body h3 { margin-top: 22px; font-size: 17px; }
.launch .help-body p, .help-body li { color: var(--moard-ink-dim); font-size: 16px; line-height: 1.65; }
.launch .help-body p { margin-top: 12px; }
.help-body a { color: var(--moard-ink); overflow-wrap: anywhere; }

/* Every answer has one heading style: the section's hairline, then the words
   in Moard ink. The answer a link opened lights its hairline. */
.launch .help-body section > h2 { color: var(--moard-ink); }
.help-body section:target { border-top-color: var(--moard-intent); box-shadow: inset 0 1px 0 var(--moard-intent); }

/* Steps: quiet numerals; the labels carry the weight. */
.help-body ol, .help-body ul { margin: 14px 0 0; padding: 0; list-style: none; }
.help-body ol { counter-reset: step; }
.help-body ol > li { position: relative; padding: 6px 0 6px 34px; counter-increment: step; }
.help-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--moard-hairline); color: var(--moard-ink-dim); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.help-body ul > li { position: relative; padding: 5px 0 5px 22px; }
.help-body ul > li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 1px; background: var(--moard-ink-dim); }

/* An on-screen label is a small key; a keyboard key is a keycap. A key is one
   object: it moves to the next line whole, and only a label wider than the
   line wraps, inside its own key. A path (Settings › Account) breaks only
   between steps, each "›" travelling with the step after it (`help-step`,
   `_labels` in help_pages.py), so no line starts or ends with a bare arrow. */
.help-body strong, .help-include strong, .help-never strong, .help-stuck strong { display: inline-block; max-width: 100%; padding: 0 7px; border: var(--moard-stroke) solid var(--moard-hairline); border-bottom-width: 2px; border-radius: 6px; background: var(--moard-surface); color: var(--moard-ink); font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.help-path { display: inline-block; max-width: 100%; }
.help-step { white-space: nowrap; }
.help-step > strong { max-width: calc(100% - 1.5em); white-space: normal; }
/* A long label reads as words in a sentence, wrapping like them. */
.help-body strong.help-long { display: inline; padding: 1px 7px 2px; line-height: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* A lead-in to a list item, not something on screen. */
.help-body b { color: var(--moard-ink); font-weight: 650; }
.help-body kbd { display: inline-block; min-width: 1.8em; padding: 0 6px; border: 1px solid var(--moard-hairline); border-bottom-width: 3px; border-radius: 5px; background: var(--moard-surface-high); color: var(--moard-ink); font: 650 14px/1.6 var(--site-font); text-align: center; }
.help-body em { color: var(--moard-ink); font-style: normal; font-weight: 650; }

/* The outline under the answer: what you see, one press away. */
.help-jump { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--moard-hairline); border-radius: 10px; }
.launch .help-jump > p { margin: 0 0 6px; color: var(--moard-ink-dim); font-size: 13px; }
.help-jump ul { columns: 2 220px; column-gap: 32px; margin: 0; }
.help-body .help-jump li { break-inside: avoid; padding: 0; font-size: 15px; }
.help-body .help-jump li::before { display: none; }
.help-jump a { display: inline-block; padding: 5px 0; text-decoration: none; }
.help-jump a:hover { text-decoration: underline; }

/* Prices, read across: plan, then each period. */
.help-prices { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 16px; }
.help-prices th, .help-prices td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--moard-hairline); text-align: left; vertical-align: top; }
.help-prices thead th { color: var(--moard-ink-dim); font-size: 13px; font-weight: 600; }
.help-prices tbody th { color: var(--moard-ink); font-weight: 650; }
.help-prices td { color: var(--moard-ink); font-variant-numeric: tabular-nums; }

/* Real captures only, at their own aspect. */
.help-capture { margin: 20px 0 4px; }
.help-capture img { display: block; width: 100%; height: auto; border: 1px solid var(--moard-hairline); border-radius: 10px; background: var(--moard-ground-sunk); }
.help-capture figcaption { margin-top: 8px; color: var(--moard-ink-dim); font-size: 13px; }

/* Contact: the address and the button first, then what to say. */
.launch .help-body .help-contact__lead { margin-top: 18px; color: var(--moard-ink); font-size: 19px; }
.help-contact .help-mail { margin-top: 22px; }
.launch .help-body .help-mail__note { margin-top: 10px; font-size: 14px; }
.launch .help-contact .help-body h2 { margin-top: 40px; }
.help-include { margin-top: 12px; }
.help-webmail { margin-top: var(--moard-space-xl); }
.help-webmail summary { width: fit-content; min-height: var(--moard-touch-min-phone); padding-block: var(--moard-space-sm); cursor: pointer; }
.help-webmail label { display: block; margin-top: var(--moard-space-lg); color: var(--moard-ink); font-size: var(--moard-text-body); }
.help-webmail input, .help-webmail textarea { display: block; width: 100%; min-width: 0; margin-top: var(--moard-space-xs); padding: var(--moard-space-md); border: var(--moard-stroke) solid var(--moard-hairline); border-radius: var(--moard-space-xs); background: var(--moard-surface); color: var(--moard-ink); font: var(--moard-text-body)/var(--moard-leading-body) var(--site-font); }
.help-webmail textarea { resize: vertical; }
.help-webmail button { min-height: var(--moard-touch-min-phone); margin-top: var(--moard-space-sm); padding: var(--moard-space-sm) var(--moard-space-lg); border: var(--moard-stroke) solid var(--moard-hairline); border-radius: var(--moard-space-xs); background: var(--moard-surface-high); color: var(--moard-ink); font: 650 var(--moard-text-body) var(--site-font); cursor: pointer; }
.help-webmail button[aria-disabled="true"] { cursor: wait; }
.help-webmail :is(input, textarea, summary):focus-visible { outline: var(--moard-stroke-focus) solid var(--moard-focus); outline-offset: var(--moard-space-xs); }
.launch .help-body #support-copy-status { min-height: 1.5em; margin-top: var(--moard-space-sm); }
/* The data request: the button, then the address it writes to. */
.launch .help-body .help-request { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.launch .help-body .help-request span { color: var(--moard-ink-dim); font-size: 14px; overflow-wrap: anywhere; }
/* Tell us, and beside it what to leave out: two lists a person checks their
   email against, not a warning paragraph that also held two recovery steps. */
.launch .help-body .help-tell { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 32px; margin-top: 18px; align-items: start; }
.launch .help-body :is(.help-tell, .help-asks) h3 { margin: 0; font-size: 17px; }
.launch .help-body .help-never { padding: 14px 18px 16px; border-left: 3px solid var(--moard-intent); background: var(--moard-surface-high); color: var(--moard-ink); }
.launch .help-body .help-never ul { margin-top: 10px; }
.launch .help-body .help-asks { display: grid; gap: 14px; margin-top: 14px; }
.launch .help-body .help-asks > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding-top: 14px; border-top: 1px solid var(--moard-hairline); }
.launch .help-body .help-asks p { margin: 0; }
.help-door-out { margin: 14px 0 0; color: var(--moard-ink-dim); font-size: 15px; text-align: center; }
.help-door-out a { color: var(--moard-ink); text-underline-offset: 0.2em; }

@media (max-width: 599px) {
  .help-page main { padding-top: 128px; }
  .launch .help-find { padding-top: 8px; }
  .help-search input { min-height: 56px; font-size: 18px; padding-inline: 14px; }
  .help-search button { min-width: 0; margin: 6px; padding: 0 14px; }
  .help-topics { margin-top: 36px; }
  /* SHORT_LIST in help_pages.py: a phone lists five, then the way to the rest. */
  .help-topic li:nth-child(n+6) { display: none; }
  .help-topic__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; color: var(--moard-ink); font-size: 14px; }
  .launch .help-body .answer, .launch .help-body .help-contact__lead { font-size: 17px; }
  .launch .help-body h2 { font-size: 21px; }
  .help-jump { padding: 12px 14px; }
  .help-stuck { margin-top: 40px; }
  .launch .help-body .help-tell, .launch .help-body .help-asks > div { grid-template-columns: minmax(0, 1fr); }
}
