/* Help centre (5 Nov 2026): task-first layout. Search on top, most asked, roles, topics, then contact. */
/* Type scale + rhythm (6 Nov 2026, Alexey: "align line-height, spacing and font sizes"). One scale for every help page,
   scoped to .hp so the shared .t-* classes keep their values elsewhere:
     display  .t-l1  48/54  (home H1)              mobile 36/40
     title    .t-l2  40/46  (page + article H1)    mobile 30/35
     section  .t-h3  22/28  (h2 on home, quiz)
     card     .t-h4  18/26  (card + sidebar headings 17/24)
     lead     .t-l / .hp-lead  19/29 regular       mobile 17/26
     body     17/27, max 68ch; paragraphs 16px apart, list items 6px
     small    .t-s   15/23  (notes, cards, contact)
     caption  .t-cap 13/19; quiet UI (sources) 14/20
   Rhythm: 4px base; H1 → lead 12, lead → body 24, body → sources 28, blocks 20. */
.hp { padding-block: 32px 64px; display: grid; gap: 28px; }
.hp .t-l2 { font: 600 40px/46px var(--display); letter-spacing: -.8px; text-wrap: balance; }
.hp .t-l1 { text-wrap: balance; }
.hp .t-l { font-size: 19px; line-height: 29px; }
.hp-hero { display: grid; gap: 14px; }
.hp-hero h1 { margin: 0; }
.hp-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; max-width: 760px; }
.hp-search .i { color: var(--muted); }
.hp-search .input { border: 0; box-shadow: none; flex: 1; min-width: 0; background: transparent; padding-inline: 0; }
.hp-search.big { padding: 8px 8px 8px 18px; }
.hp-search.big .input { font-size: 17px; }
.hp-results { max-width: 760px; }
.hp-sec { display: grid; gap: 12px; }
.hp-sec h2 { margin: 0; }
.hp-sec > p { margin: 0; }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-list a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hp-list a:hover, .hp-list a:focus-visible { border-color: var(--accent); }
.hp-list a b { font: 600 16px/23px var(--ui); }
.hp-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-role { text-decoration: none; padding: 8px 14px; font: 600 14px/20px var(--ui); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.hp-role:hover, .hp-role:focus-visible { border-color: var(--accent); color: var(--ink); }
.hp-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-cat { display: grid; gap: 6px; align-content: start; height: 100%; padding: 18px; color: var(--ink); text-decoration: none; }
.hp-cat:hover, .hp-cat:focus-visible { border-color: var(--accent); }
.hp-cat b { font: 600 16px/23px var(--ui); margin-top: 6px; }
.hp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-mini { display: grid; gap: 6px; align-content: start; padding: 18px; }
.hp-mini h2, .hp-mini p { margin: 0; }
.hp-mini .ap-link { margin-top: 4px; justify-self: start; }

/* "Still stuck?" card: icon + heading on one line, text and buttons full width below. */
.hp-contact { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; padding: 20px 24px; }
.hp-contact > div { display: contents; }
.hp-contact h2 { margin: 0; }
.hp-contact p { grid-column: 1 / -1; margin: 0; max-width: 72ch; }
.hp-contact .hp-c-acts { margin-top: 8px; }
.hp-c-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-side .hp-c-acts .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }

.hp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.hp-crumbs a { color: var(--link); }
.hp-head { display: flex; gap: 16px; align-items: flex-start; }
.hp-head > .ap-tile { margin-top: 7px; }
.hp-head > div { display: grid; gap: 10px; }
.hp-head h1, .hp-head p { margin: 0; }
.hp-head p.t-l { max-width: 64ch; }

/* Article (also the contact page and the reminders/unsubscribe messages) */
.hp-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.hp-art { --measure: 730px; padding: 32px 36px; display: block; }
.hp-art > * { margin: 0; }
.hp-art > * + * { margin-top: 20px; }
.hp-art > .badge { display: inline-flex; }
.hp-art > .badge + h1 { margin-top: 14px; }
.hp-art > h1 + .hp-lead, .hp-art > h1 + p { margin-top: 12px; }
.hp-art > .hp-lead + .prose { margin-top: 24px; }
.hp-art > .prose + .hp-src, .hp-art > .prose + p + .hp-src { margin-top: 28px; }
.hp-art > .hp-src + .hp-legal, .hp-art > .hp-src + p { margin-top: 16px; }
.hp-art > .hp-fb { margin-top: 28px; }
.hp > .badge { justify-self: start; }
.hp-lead { font: 400 19px/29px var(--ui); color: var(--ink-2); margin: 0; max-width: var(--measure); }
.hp-art .prose { font-size: 17px; line-height: 27px; max-width: var(--measure); }
.hp-art .prose > p + ul { margin-top: 10px; }
.hp-art .prose > * { margin: 0; }
.hp-art .prose > * + * { margin-top: 16px; }
.hp-art .prose > h3 { margin-top: 28px; }
.hp-art .prose > h3 + * { margin-top: 8px; }
.hp-art .prose ul { padding-left: 22px; }
.hp-art .prose li + li { margin-top: 6px; }
.hp-art .prose li::marker { color: var(--icon); }
.hp-art .prose strong { font-weight: 600; }
.hp-art > p.t-s, .hp-art > .hp-legal { max-width: var(--measure); box-sizing: border-box; }
.hp-legal { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--ink-2); margin: 0; }
.hp-legal > .i { flex: none; margin-top: 3.5px; }
.hp-src { font: 400 14px/20px var(--ui); color: var(--muted); }
.hp-src summary { cursor: pointer; color: var(--muted); font-weight: 500; width: fit-content; }
.hp-src summary:hover { color: var(--link); }
.hp-src ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.hp-src li::marker { color: var(--icon); }
.hp-fb { border-top: 1px solid var(--line); padding-top: 20px; }
.hp-fb p { margin: 0 0 10px; } .hp-fb p:last-child { margin-bottom: 0; } .hp-fb .btn + .btn { margin-left: 8px; }

/* Sidebar: one row per link, divider between, no bullets, underline on hover only. */
.hp-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.hp-rel { padding: 20px 22px 10px; }
.hp-rel h2 { margin: 0 0 6px; font-size: 17px; line-height: 24px; }
.hp-rel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.hp-rel li + li { border-top: 1px solid var(--line-soft); }
.hp-rel a { display: block; padding: 10px 0; font: 500 15px/21px var(--ui); color: var(--ink); text-decoration: none; }
.hp-rel a:hover, .hp-rel a:focus-visible { color: var(--link); text-decoration: underline; }

/* Glossary */
.hp-gloss { display: grid; gap: 10px; margin: 0; max-width: 880px; }
.hp-gloss > div { padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 96px; }
.hp-gloss dt { margin: 0 0 4px; font-size: 17px; line-height: 25px; }
.hp-gloss dt .muted { font-weight: 400; }
.hp-gloss dd { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.hp-gloss dd .t-cap { white-space: nowrap; }
.hp-gloss > div:target { border-color: var(--accent); }
.hp-gloss ~ .hp-legal { max-width: 880px; box-sizing: border-box; }

/* Changes feed */
.hp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hp-feed li { padding: 20px 24px; } .hp-feed li > * { margin: 0; max-width: 72ch; } .hp-feed li > * + * { margin-top: 6px; }
.hp-feed li > h2 + p { margin-top: 8px; } .hp-feed li > p.t-s { margin-top: 10px; }

.hp-quiz { padding: 24px 28px; display: grid; gap: 14px; max-width: 760px; }
.hp-quiz h2, .hp-quiz p { margin: 0; }
.hp-form { display: grid; gap: 14px; max-width: 620px; }
.hp-sugg { padding: 12px 16px; border-radius: 12px; background: var(--tint); }
.hp-sugg p, .hp-sugg ul { margin: 0 0 6px; }
@media (max-width: 900px) {
  .hp-art-grid { grid-template-columns: 1fr; } .hp-side { position: static; }
  .hp-cats, .hp-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hp { gap: 24px; }
  .hp .t-l2 { font-size: 30px; line-height: 35px; letter-spacing: -.5px; }
  .hp .t-l, .hp-lead { font-size: 17px; line-height: 26px; }
  .hp-cats, .hp-row, .hp-list.two { grid-template-columns: 1fr; }
  .hp-art { padding: 24px 20px; } .hp-search .btn { display: none; }
  .hp-art > .hp-lead + .prose { margin-top: 20px; }
  .hp-art .prose { font-size: 16px; line-height: 26px; }
  .hp-art .prose > * + * { margin-top: 14px; }
  .hp-head > .ap-tile { margin-top: 2px; }
  .hp-contact { padding: 20px; }
  .hp-contact .hp-c-acts .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  .hp-gloss > div, .hp-feed li { padding: 14px 16px; }
}
/* 10 topics: two per row on wide screens, so none sits alone (design review 5 Nov 2026) */
@media (min-width: 641px) { .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hp-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Box review (6 Nov 2026): the two-column "Most asked" boxes take the full row height, so each row lines up. */
.hp-list.two > li { display: grid; } .hp-list.two a { height: 100%; align-content: start; box-sizing: border-box; }
