/* Help center: the landing page, section pages and articles. One reading
   column that works at phone width; boxes for Before You Start and How You
   Know It Worked, and the Short Answer of an article about the product; plain lists for related articles and sources. */

.h-main { max-width: 760px; margin: 0 auto; padding: 32px 24px 88px; display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); }
.h-article { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Head */
.h-crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: var(--muted); }
.h-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.h-head { display: flex; flex-direction: column; gap: 12px; }
.h-h1 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.h-lead { margin: 0; font-size: clamp(18px, 2vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.h-meta { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Landing: the search box (shown by static/js/help.js) */
.h-search { display: flex; flex-direction: column; gap: 8px; }
.h-search[hidden], .h-none[hidden], .h-card[hidden], .h-list li[hidden], .h-later[hidden] { display: none; }
.h-search-label { font-weight: 600; font-size: 15px; }
.h-search-input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; }
.h-search-input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.h-none { margin: 0; font-size: 16px; }
.h-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Landing: one card per section */
.h-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.h-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; }
.h-card-h { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.2; }
.h-card-h a { color: var(--ink); text-decoration: none; }
.h-card-h a:hover { color: var(--accent-ink); }
.h-card-sum { margin: 0; font-size: 15px; color: var(--muted); }
.h-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.h-list li { border-top: 1px solid var(--line-soft); }
.h-list a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; line-height: 1.35; font-size: 15px; }
.h-later { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.h-later-h { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 22px; }
.h-later p { margin: 0; color: var(--muted); }
.h-later ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.h-later b { font-weight: 600; }
.h-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }

/* ---------- Section page: the article index */
.h-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.h-index li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.h-index-h { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 21px; line-height: 1.25; }
.h-index p { margin: 0; font-size: 15px; color: var(--muted); }
.h-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- Article body */
.h-body { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.h-body > p { margin: 0 0 20px; }
.h-body h2 { margin: 40px 0 12px; font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.h-body h3 { margin: 28px 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.h-body > ul, .h-body > ol { margin: 0 0 20px; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }
.h-body strong { font-weight: 600; }
.h-body code { padding: 1px 5px; border-radius: 4px; background: var(--hover); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; overflow-wrap: anywhere; }
.h-body pre { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); white-space: pre-wrap; overflow-wrap: anywhere; }
.h-body pre code { padding: 0; background: none; }
.h-body .h-example { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); font-size: 16px; line-height: 1.6; }
.h-body .h-example p { margin: 0 0 8px; }
.h-body .h-example p:last-child { margin: 0; }

/* ---------- Boxes, related articles and sources */
.h-box { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px 16px 16px 4px; background: var(--accent-wash); }
.h-box-h { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.h-box p { margin: 0; font-size: 17px; line-height: 1.6; }
.h-answer p { font-size: 18px; }
.h-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; }
.h-small-h { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.h-sources { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.h-sources ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.h-sources p { margin: 0; color: var(--muted); }
.h-src-date { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .h-main { padding-top: 20px; padding-bottom: 64px; }
  .h-body { font-size: 17px; }
  .h-card, .h-box { padding: 18px; }
}

/* The owner's status note on the first page, shown only when one is set. */
.h-status {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--line, #e4e5ec);
  border-radius: 14px;
}
.h-status[hidden] {
  display: none;
}
