
/* ══ Help centre ══════════════════════════════════════════════════════════
   Documentation, not marketing. Three columns at desktop width: the whole
   category tree on the left, the article in the middle at a readable
   measure, the article's own contents on the right. Mobile first, so the
   sidebar is a drawer and the contents collapses above the article.
   ════════════════════════════════════════════════════════════════════ */

.h-bar{border-bottom:1px solid var(--border);background:var(--bg-soft);}
.h-bar-in{display:flex;align-items:center;gap:12px;padding:13px 0;flex-wrap:wrap;}
/* Wraps on purpose. The title, the topics button and the search field want
   about 475px between them, and a phone has 390. Without the wrap the bar
   pushes the whole document sideways, which fits.py caught. The search
   takes the second line, which is also the right order: you read the
   heading before you search. */
.h-search{order:3;flex-basis:100%;max-width:none;margin-left:0;}
.h-bar h1{font-size:.95rem;font-weight:700;letter-spacing:-.01em;}
.h-search{flex:1;max-width:420px;margin-left:auto;position:relative;}
.h-search input{width:100%;padding:9px 12px 9px 34px;border:1px solid var(--border);
  border-radius:99px;background:var(--surface);font:inherit;font-size:.86rem;color:var(--ink);outline:none;}
.h-search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);}
.h-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);
  color:var(--text3);font-size:.8rem;pointer-events:none;}
.h-menu{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);
  background:var(--surface);border-radius:8px;padding:7px 11px;font-size:.82rem;color:var(--text2);cursor:pointer;}

.h-wrap{padding:26px 0 10px;}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.h-side{display:none;}
.h-side.open{display:block;margin-bottom:24px;border:1px solid var(--border);
  border-radius:var(--r-md);padding:14px 16px;background:var(--bg-soft);}
.h-side h2{font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;
  color:var(--text3);margin:0 0 9px;}
.h-cat{margin-bottom:14px;}
.h-cat > b{display:block;font-size:.84rem;color:var(--ink);margin-bottom:5px;}
/* .soon is gone with the empty categories it labelled. */
.h-cat a{display:block;padding:4px 0 4px 11px;font-size:.85rem;color:var(--text2);
  border-left:2px solid var(--border);}
.h-cat a:hover{color:var(--accent);border-left-color:var(--accent);}
.h-cat a.on{color:var(--accent);border-left-color:var(--accent);font-weight:600;}

/* ── Article ───────────────────────────────────────────────────────────── */
.h-crumb{font-size:.8rem;color:var(--text3);margin-bottom:14px;}
.h-crumb a{color:var(--text3);}
.h-crumb a:hover{color:var(--accent);}
.h-art h1{font-size:1.7rem;line-height:1.2;letter-spacing:-.02em;margin:0 0 10px;}
.h-lead{font-size:1.02rem;color:var(--text2);line-height:1.7;margin:0 0 6px;max-width:40em;}
.h-mins{font-size:.78rem;color:var(--text3);margin-bottom:22px;}
.h-rule{border:none;border-top:1px solid var(--border);margin:0 0 24px;}

.h-art h2{font-size:1.14rem;letter-spacing:-.01em;margin:30px 0 11px;scroll-margin-top:82px;}
.h-art h2 a{color:inherit;}
.h-art h2 a:hover{color:var(--accent);}
.h-art h2 a::after{content:'#';margin-left:8px;color:var(--border-dk);font-weight:400;opacity:0;}
.h-art h2 a:hover::after{opacity:1;}
.h-art p{color:var(--text2);line-height:1.75;margin:0 0 13px;max-width:40em;}
.h-art strong,.h-art b{color:var(--ink);font-weight:600;}
.h-ul{margin:0 0 15px;padding-left:19px;color:var(--text2);line-height:1.75;max-width:40em;}
.h-ul li{margin-bottom:7px;}
.h-kbd{max-width:40em;}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;
  background:var(--bg-soft2);border-radius:4px;padding:1px 5px;color:var(--ink);}

.h-steps{list-style:none;padding:0;margin:0 0 17px;counter-reset:s;max-width:40em;}
.h-steps li{position:relative;padding:0 0 15px 34px;counter-increment:s;}
.h-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:23px;height:23px;
  border-radius:7px;background:var(--accent-soft);color:var(--accent);
  font-size:.72rem;font-weight:700;display:grid;place-items:center;}
.h-steps li:not(:last-child)::after{content:'';position:absolute;left:11px;top:27px;bottom:3px;
  width:1px;background:var(--border);}
.h-steps b{display:block;color:var(--ink);font-size:.93rem;margin-bottom:2px;}
.h-steps span{display:block;font-size:.88rem;color:var(--text2);line-height:1.65;}
.h-steps em{display:block;font-style:normal;color:var(--text3);font-size:.8rem;margin-top:3px;}

.h-note{border-left:3px solid var(--accent);background:var(--accent-soft);
  border-radius:0 var(--r-sm) var(--r-sm) 0;padding:13px 16px;margin:0 0 17px;max-width:40em;}
.h-note p{margin:0;color:var(--ink);font-size:.92rem;}
.h-warn{border-left-color:var(--grow);background:var(--warm-soft);}

.h-tw{overflow-x:auto;margin:0 0 18px;border:1px solid var(--border);border-radius:var(--r-sm);}
table.h-t{width:100%;border-collapse:collapse;font-size:.85rem;min-width:480px;}
table.h-t th{text-align:left;font-size:.66rem;text-transform:uppercase;letter-spacing:.09em;
  color:var(--text3);padding:9px 12px;border-bottom:1px solid var(--border);
  background:var(--bg-soft);white-space:nowrap;}
table.h-t td{padding:10px 12px;border-bottom:1px solid var(--border);
  color:var(--text2);vertical-align:top;line-height:1.55;}
table.h-t tr:last-child td{border-bottom:none;}
table.h-t td.y{color:var(--organize);font-weight:700;}
table.h-t td.n{color:var(--text3);}

/* ── Figures, and the slots waiting for one ───────────────────────────── */
.h-fig{margin:0 0 20px;max-width:40em;}
.h-fig img{width:100%;height:auto;display:block;border:1px solid var(--border);
  border-radius:var(--r-sm);}
.h-fig figcaption{font-size:.78rem;color:var(--text3);margin-top:7px;}
.h-slot-b{border:1px dashed var(--border-dk);border-radius:var(--r-sm);
  background:var(--bg-soft);padding:17px 18px;display:flex;flex-direction:column;gap:5px;}
.h-slot-t{font-size:.6rem;text-transform:uppercase;letter-spacing:.12em;
  font-weight:700;color:var(--text3);}
.h-slot-b b{font-size:.93rem;color:var(--ink);}
.h-slot-p,.h-slot-w,.h-slot-f{font-size:.8rem;color:var(--text2);line-height:1.55;}
.h-slot-f{color:var(--text3);}

/* ── Contents, helpful, up next ───────────────────────────────────────── */
.h-toc{border:1px solid var(--border);border-radius:var(--r-md);padding:14px 16px;
  margin:0 0 24px;background:var(--bg-soft);}
.h-toc h2{font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;
  color:var(--text3);margin:0 0 8px;}
.h-toc a{display:block;padding:4px 0;font-size:.85rem;color:var(--text2);}
.h-toc a:hover,.h-toc a.on{color:var(--accent);}

.h-help{border-top:1px solid var(--border);margin-top:34px;padding-top:22px;text-align:center;}
.h-help p{font-size:.92rem;color:var(--text2);margin-bottom:12px;}
.h-help button{border:1px solid var(--border);background:var(--surface);border-radius:8px;
  padding:8px 18px;font:inherit;font-size:.86rem;cursor:pointer;margin:0 4px;color:var(--text2);}
.h-help button:hover{border-color:var(--accent);color:var(--accent);}
.h-thanks{display:none;font-size:.88rem;color:var(--organize);font-weight:600;}

.h-next{display:block;border:1px solid var(--border);border-radius:var(--r-md);
  padding:17px 19px;margin-top:22px;}
.h-next:hover{border-color:var(--accent);}
.h-next .lab{font-size:.63rem;text-transform:uppercase;letter-spacing:.12em;
  font-weight:700;color:var(--text3);}
.h-next b{display:block;font-size:1.02rem;color:var(--ink);margin:4px 0 4px;}
.h-next span{display:block;font-size:.87rem;color:var(--text2);line-height:1.6;}
.h-next i{color:var(--accent);font-size:.8rem;margin-left:4px;}

/* ── The category landing ─────────────────────────────────────────────── */
.h-gh{font-size:.68rem;text-transform:uppercase;letter-spacing:.12em;
  color:var(--text3);margin:22px 0 10px;font-weight:700;}
.h-gh:first-of-type{margin-top:4px;}
.h-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;margin:0 0 6px;}
.h-card{display:flex;gap:13px;align-items:flex-start;border:1px solid var(--border);
  border-radius:var(--r-md);padding:15px 17px;}
.h-card:hover{border-color:var(--accent);}
.h-card .n{flex-shrink:0;width:25px;height:25px;border-radius:7px;background:var(--bg-soft2);
  color:var(--text2);font-size:.74rem;font-weight:700;display:grid;place-items:center;}
.h-card b{display:block;font-size:1rem;color:var(--ink);margin-bottom:3px;}
.h-card span{display:block;font-size:.87rem;color:var(--text2);line-height:1.6;}
.h-card em{display:block;font-style:normal;font-size:.76rem;color:var(--text3);margin-top:5px;}

@media (min-width:620px){
    .h-bar-in{flex-wrap:nowrap;}
    .h-search{order:0;flex-basis:auto;max-width:420px;margin-left:auto;}
}
@media (min-width:900px){
    .h-art h1{font-size:2rem;}
    .h-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width:1120px){
    .h-wrap{display:grid;grid-template-columns:228px minmax(0,1fr) 196px;gap:40px;align-items:start;}
    .h-side{display:block !important;position:sticky;top:82px;border:none;background:none;
            padding:0;margin:0;}
    .h-menu{display:none;}
    .h-toc{position:sticky;top:82px;border:none;background:none;padding:0 0 0 15px;
           border-left:1px solid var(--border);border-radius:0;margin:0;}
    .h-order-toc{order:3;}
}
