/* The help pages (studio #1201), loaded by /help/ and its articles only.
   The homepage's look: big bold headings, white cards with no border and no
   shadow on the grey ground, each topic in its tile tint, one round dark
   arrow. Colours are main.css's tokens. */

.hp-hub, .hp-article {
  margin: 0 auto;
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.hp-hub {
  max-width: 1072px;
  padding: calc(var(--nav-h) + 72px) 24px 96px;
  display: flex; flex-direction: column; gap: 56px;
}
.hp-hub-body { display: flex; flex-direction: column; gap: 56px; }
.hp-hub a, .hp-article a { text-decoration: none; }

/* ── the hub ── */
.hp-hero { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hp-hero h1, .hp-article h1 { font-weight: 700; letter-spacing: -0.02em; }
.hp-hero h1 { font-size: 56px; line-height: 1.05; }
.hp-search {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 620px; height: 56px; padding: 0 22px;
  border-radius: 28px; background: var(--stone); color: var(--ink-mid);
  cursor: text;
}
.hp-search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.hp-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
}
.hp-search input::placeholder { color: var(--ink-faint); }

.hp-start {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: 28px; background: var(--white); color: var(--ink);
}
.hp-start-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.hp-start-title { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.hp-start-dek { color: var(--ink-mid); font-size: 17px; }
.hp-round {
  width: 48px; height: 48px; border-radius: 24px; flex-shrink: 0;
  background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.hp-start:hover .hp-round { transform: translateX(3px); }
.hp-pills-start { margin-top: -40px; }

.hp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hp-tile {
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px; border-radius: 28px; background: var(--white);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.hp-tile-body { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 14px; }
.hp-tile h2 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
.hp-list, .hp-pills { list-style: none; }
.hp-list { display: flex; flex-direction: column; font-size: 17px; }
.hp-list a { display: block; padding: 9px 0; border-top: 1px solid #ececf0; color: var(--ink); }
.hp-list a:hover, .hp-pills a:hover { color: var(--accent); }

.hp-panel {
  height: 150px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
}
.hp-tint-start, .hp-tint-who { background: var(--tint-who); }
.hp-tint-what, .hp-tint-account { background: var(--tint-what); }
.hp-tint-warm { background: var(--tint-intro); }
.hp-tint-sharper { background: var(--tint-learn); }

/* The four drawings, HTML and no image to fetch (as on the homepage). */
.hp-draw-card {
  width: 210px; padding: 14px; border-radius: 12px; background: var(--white);
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.hp-draw-letter { gap: 7px; }
.hp-draw-row { display: flex; align-items: center; gap: 8px; }
.hp-draw-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--coral); }
.hp-draw-score { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--good); }
.hp-draw-bar { display: block; height: 7px; border-radius: 4px; background: var(--stone); }
.hp-draw-row .hp-draw-bar { background: var(--border); }
.hp-w90 { width: 90px; } .hp-w80p { width: 80%; } .hp-w40p { width: 40%; }
.hp-w95p { width: 95%; } .hp-w85p { width: 85%; } .hp-w30p { width: 30%; }
.hp-draw-bar.hp-dark { background: #c9c9cf; }
.hp-draw-bar.hp-coral { background: var(--accent-bg); }
.hp-draw-chain { display: flex; align-items: center; }
.hp-draw-chain > span { display: block; }
.hp-draw-you { width: 34px; height: 34px; border-radius: 17px; background: var(--ink-faint); }
.hp-draw-link { width: 44px; height: 2px; background: #9cc7ae; }
.hp-draw-friend { width: 34px; height: 34px; border-radius: 17px; background: var(--white); box-shadow: inset 0 0 0 2px var(--good); }
.hp-draw-them { width: 34px; height: 34px; border-radius: 9px; background: var(--good); }
.hp-draw-bars { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding-bottom: 36px; }
.hp-draw-bars span { width: 22px; border-radius: 6px; }
.hp-draw-bars span:nth-child(1) { height: 30px; background: #c9c2e6; }
.hp-draw-bars span:nth-child(2) { height: 48px; background: #a99ad6; }
.hp-draw-bars span:nth-child(3) { height: 70px; background: #6f5bb5; }

.hp-account { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.hp-account h2 { font-size: 24px; font-weight: 700; }
.hp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-pills a {
  display: inline-block; padding: 10px 18px; border-radius: 22px;
  background: var(--white); border: 1px solid var(--border); color: var(--ink);
}

.hp-foot { text-align: center; color: var(--ink-mid); font-size: 17px; }

/* Search results: the article cards, title and dek. */
.hp-results { display: flex; flex-direction: column; gap: 24px; max-width: 720px; width: 100%; margin: 0 auto; }
.hp-cards { display: flex; flex-direction: column; gap: 10px; }
.hp-hit strong { display: block; font-weight: 600; }
.hp-hit-dek { display: block; color: var(--ink-mid); font-size: 15px; margin-top: 2px; }

/* ── an article ── */
.hp-article {
  max-width: 720px;
  padding: calc(var(--nav-h) + 56px) 24px 96px;
  font-size: 17px; line-height: 1.6;
  display: flex; flex-direction: column; gap: 32px;
}
.hp-article-head { display: flex; flex-direction: column; gap: 12px; }
.hp-back { font-size: 15px; color: var(--accent); }
.hp-back:hover { color: var(--coral-hover); }
.hp-article h1 { font-size: 48px; line-height: 1.08; }
.hp-dek { font-size: 21px; line-height: 1.45; color: var(--ink-mid); }
.hp-note { font-size: 15px; color: var(--ink-faint); }

.hp-shot { border-radius: 24px; padding: 28px; display: flex; justify-content: center; }
.hp-shot img {
  display: block; width: 100%; max-width: 560px; height: auto;
  border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); background: var(--white);
}

.hp-body { display: flex; flex-direction: column; gap: 32px; }
.hp-section { display: flex; flex-direction: column; gap: 16px; }
.hp-section h2 { font-size: 26px; line-height: 1.2; font-weight: 700; }
.hp-section p + p { margin-top: 0.6em; }
.hp-section strong { font-weight: 600; }
.hp-section a { color: var(--accent); }
.hp-section code { font-family: var(--code); font-size: 0.9em; }

/* The steps: numbered dark circles. */
.hp-steps ol { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.hp-steps ol > li { counter-increment: step; position: relative; padding-left: 48px; min-height: 32px; }
.hp-steps ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 16px;
  background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 600; line-height: 32px; text-align: center;
}
.hp-steps ol > li > p { margin: 0; }
.hp-steps ul { padding-left: 20px; }

/* The facts: one white card. */
.hp-facts { gap: 12px; padding: 24px 28px; border-radius: 20px; background: var(--white); }
.hp-facts h2 { font-size: 20px; }
.hp-facts ul, .hp-facts ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

.hp-prose ul, .hp-prose ol { padding-left: 20px; }

/* Next: white link cards. */
.hp-next { display: flex; flex-direction: column; gap: 10px; }
.hp-next h2 { font-size: 20px; font-weight: 700; }
.hp-next-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 16px; background: var(--white); color: var(--ink);
}
.hp-next-card > span:first-child { flex: 1; }
.hp-next-card:hover { color: var(--accent); }

/* ── a phone ── */
@media (max-width: 760px) {
  .hp-hub { padding: calc(var(--nav-h) + 40px) 16px 64px; gap: 40px; }
  .hp-hub-body { gap: 40px; }
  .hp-pills-start { margin-top: -24px; }
  .hp-hero h1 { font-size: 40px; }
  .hp-start { padding: 22px 20px; gap: 16px; border-radius: 22px; }
  .hp-start-text { flex-basis: 200px; }
  .hp-start-title { font-size: 26px; }
  .hp-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hp-tile { padding: 16px; border-radius: 24px; }
  .hp-tile-body { padding: 0 8px 4px; }
  .hp-tile h2 { font-size: 28px; }
  .hp-article { padding: calc(var(--nav-h) + 32px) 16px 64px; gap: 28px; }
  .hp-article h1 { font-size: 36px; }
  .hp-dek { font-size: 19px; }
  .hp-shot { padding: 14px; border-radius: 18px; }
  .hp-facts { padding: 20px; }
}
