/* The guide, on the same paper as the rest of the site.
 *
 * A stylesheet of its own rather than a <style> block: this page carries the
 * same content-security policy as the front door, which allows no inline style.
 *
 * This is the in-app guide rather than a variation on it. Every value below is
 * lifted from apps/desktop/src/Help.tsx and the .help-* rules in
 * apps/desktop/src/style.css — including the base those rules are read
 * against, which is the app's 14px/1.55 and not this site's 16px/1.6. The two
 * pages are the same page; when one changes, the other does.
 */

/* --- The app's base, inside this column ---------------------------------- */

.help {
  font-size: 14px;
  line-height: 1.55;
  max-width: 780px;
  margin: 0 auto;
  /* The app's own 42px of headroom is spent on the header above. */
  padding: 0 30px 90px;
}

/* The app sets no `text-wrap: balance`, and the same words break differently
   with it on. */
.help h1,
.help h2 {
  letter-spacing: -1.5px;
  line-height: 1.13;
  text-wrap: wrap;
}

.help .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
}

.help .fine {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 13px;
}

/* `a.primary` takes `font: inherit` from site.css, which drops the weight the
   app's button carries; it is put back here rather than site-wide. */
.help .primary {
  padding: 12px 17px;
  min-height: 43px;
  font-size: 14px;
  font-weight: 500;
}

/* Phosphor's regular weight, at the sizes Help.tsx asks for them. */
.help .i {
  stroke-width: 1.5;
}
.help .note-label .i,
.help .help-end .i {
  width: 17px;
  height: 17px;
}
.help .button-row .i {
  width: 16px;
  height: 16px;
}

/* --- The page's own chrome ------------------------------------------------
   The app's guide carries a header of its own — the brand, and a way back, on
   the same column as the words, over a hairline. The site's header does that
   job with the same brand — site.css already draws that lockup at the app's
   size — so it is brought onto the column rather than left spanning a width
   nothing else on this page uses. It keeps its Sign in button: this is the
   public page, and the app's "Back to sign in" is only meaningful to someone
   who arrived from there. ----------------------------------------------- */

.top .wrap,
.foot .wrap {
  max-width: 780px;
  padding-inline: 30px;
}
.top {
  padding: 42px 0 0;
}
.top-row {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* --- The opening --------------------------------------------------------- */

.help-intro {
  margin: 62px 0 74px;
}
.help-intro .eyebrow {
  color: #59694e;
  margin: 0;
}
.help-intro h1 {
  font-size: 45px;
  letter-spacing: -1.8px;
  margin: 18px 0 24px;
}
.help .help-intro > p {
  color: #59694e;
  font-size: 14px;
  line-height: 1.9;
  max-width: 620px;
}
.help .help-intro > p + p {
  margin-top: 14px;
}

/* The diagram is the landing page's, at the width of this column: .context and
   everything under it is styled once, in site.css, and animated by site.js. */
.help-figure {
  margin: 0 0 38px;
  max-width: 100%;
}
.help .help-figure .fine.centred {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.help .help-bridge {
  color: #4c5a4c;
  font-size: 14px;
  line-height: 1.9;
  max-width: 620px;
  margin-bottom: 54px;
}
.help-bridge strong {
  font-weight: 600;
  color: var(--ink);
}

/* --- A step -------------------------------------------------------------- */

.help-step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 54px;
}
.help-step-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.help-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #93a884;
  letter-spacing: -1px;
  line-height: 1;
}
/* The rule runs the height of the step, so the column of them reads as one
   stroke down the page with the numbers set into it. */
.line-accent {
  flex: 1;
  width: 3px;
  border-radius: 3px;
  background: #dfe3d6;
}
.help-step h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.help-lead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #59694e;
  font-size: 12px;
  margin: 13px 0 20px;
}
.help-lead svg {
  flex: none;
  color: #7d9481;
  margin-top: 1px;
}
.help .help-step-body p {
  color: #4c5a4c;
  line-height: 1.65;
  margin-bottom: 15px;
  max-width: 620px;
}
.help .help-step-body p.fine {
  color: var(--muted);
  margin-top: 19px;
}
.help-step-body strong {
  font-weight: 600;
  color: var(--ink);
}
.help .button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- The two dials, and the asides --------------------------------------- */

.help-list {
  margin: 0 0 19px;
  border-left: 1px solid #dfe3d6;
  padding-left: 21px;
}
.help-list > div + div {
  margin-top: 15px;
}
.help-list dt {
  font-weight: 600;
  margin-bottom: 4px;
}
.help-list dd {
  margin: 0;
  color: #59694e;
  font-size: 13px;
  max-width: 580px;
}
.help-aside {
  background: #efefe7;
  border-radius: 9px;
  padding: 22px 24px;
  margin-top: 26px;
}
.help .help-aside p {
  font-size: 12.5px;
  line-height: 1.8;
  color: #4c5a4c;
  margin: 13px 0 0;
}

.note-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #59694e;
}

/* --- What it keeps, and what to do when it isn't right ------------------- */

.help-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  border-top: 1px solid var(--line);
  padding-top: 46px;
}
.help-columns .note-label {
  margin-bottom: 18px;
}
.help-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-bullets li {
  position: relative;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #4c5a4c;
}
.help-bullets li + li {
  margin-top: 13px;
}
.help-bullets li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: #adbd99;
}
.help-bullets strong {
  font-weight: 600;
  color: var(--ink);
}

.help-end {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.help-cta {
  margin-top: 4px;
}

/* --- Narrower than the column -------------------------------------------- */

@media (max-width: 1150px) {
  .help-columns {
    gap: 34px;
  }
}

@media (max-width: 850px) {
  .help-columns {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 620px) {
  .help {
    padding: 26px 22px 60px;
  }
  .top .wrap,
  .foot .wrap {
    padding-inline: 22px;
  }
  .help-intro {
    margin: 44px 0 52px;
  }
  .help-intro h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  /* The numbers give up their own column and sit above the step they label. */
  .help-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .help-step-mark {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .line-accent {
    height: 1px;
    width: auto;
  }
  .help-step h2 {
    font-size: 25px;
  }
}
