/* Warmback help pages (the user manual). Uses the site's colours and buttons (/styles.css); pages are made by
   tests/Warmback.E2E/manual/build-pages.mjs. The orange boxes on the pictures match the numbers in the words. */
:root { --mark: #e8590c; }

.help-hero { padding: 56px 0 28px; }
.help-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0; }
.help-search { display: flex; gap: 10px; max-width: 640px; margin: 24px 0 0; }
.help-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.help-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.help-results { max-width: 760px; margin-top: 18px; }
.help-results h2 { font-size: 1.05rem; margin: 0 0 10px; }

.help-groups { padding: 8px 0 72px; }
.help-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.help-jump a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.88rem; font-weight: 600; }
.help-group { margin-top: 36px; scroll-margin-top: 84px; }
.help-group h2 { font-size: 1.35rem; margin: 0; }
.help-group > p { margin: 4px 0 14px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.help-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.help-list a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.help-list span { color: var(--muted); font-size: 0.93rem; }
.help-results .help-list { grid-template-columns: 1fr; }
.help-results .help-list em { font-style: normal; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.help-guide { padding: 28px 0 72px; }
.help-crumbs { color: var(--muted); font-size: 0.9rem; margin: 0; }
.help-crumbs a { color: inherit; text-decoration: underline; }
.help-guide .help-search { margin: 14px 0 28px; }
.help-article { max-width: 1060px; }
.help-article > h1, .help-article > h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0; }
.help-article > .lead { margin-top: 10px; max-width: 48rem; }
.help-who { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 0.9rem; }
.help-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 40px; }
.help-step { display: grid; gap: 16px; break-inside: avoid; }
.help-article.on-phone .help-step { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.help-shot { margin: 0; }
.help-frame { position: relative; display: block; overflow: hidden; background: var(--surface-2); line-height: 0; }
.help-frame img { display: block; width: 100%; height: auto; }
.help-shot.on-desktop .help-frame { border: 1px solid var(--border); border-top: 20px solid var(--accent-soft); border-radius: 12px; box-shadow: var(--shadow); max-width: 1060px; }
.help-shot.on-phone .help-frame { border: 8px solid #15171b; border-radius: 30px; box-shadow: var(--shadow); max-width: 300px; }
.help-frame:hover { box-shadow: var(--shadow-lg); }
.help-mark { position: absolute; border: 3px solid var(--mark); border-radius: 8px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7); pointer-events: none; }
.help-mark b, .help-ref, .help-number { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 999px; font-weight: 800; line-height: 1; }
.help-mark b { position: absolute; top: -0.9em; left: -0.9em; background: var(--mark); color: #fff; box-shadow: 0 0 0 2px #fff; font-size: 13px; }
.help-ref { background: var(--mark); color: #fff; margin: 0 0.12em; font-size: 0.78rem; vertical-align: 0.1em; }
.help-say { position: relative; padding-left: 3rem; max-width: 52rem; }
.help-number { position: absolute; left: 0; top: 0; min-width: 2.1rem; height: 2.1rem; background: var(--metal); color: var(--on-metal); font-size: 1rem; }
.help-say p { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.55; }
.help-result { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: 1rem !important; }
.help-result span { color: var(--ok); font-weight: 800; }
.help-note { margin: 32px 0 0; padding: 14px 18px; border-left: 4px solid var(--mark); background: var(--surface); border-radius: 0 12px 12px 0; max-width: 52rem; }
.help-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.help-pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; color: var(--text); font-weight: 700; }
.help-pager a span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.help-pager a.next { margin-left: auto; text-align: right; }

.help-cover { text-align: center; padding: 40px 0 16px; }
.help-cover-mark { display: block; width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; }
.help-cover h1 { font-size: 2.6rem; margin: 0; }
.help-cover .lead { margin-inline: auto; }
.help-contents { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 24px; margin: 24px 0 48px; columns: 2; column-gap: 40px; }
.help-contents h2 { column-span: all; margin: 0 0 6px; font-size: 1.2rem; }
.help-contents h3 { font-size: 0.95rem; margin: 12px 0 4px; break-after: avoid; }
.help-contents ol { margin: 0; padding-left: 1.3rem; }
.help-contents li { break-inside: avoid; }
.help-book .help-article { border-top: 1px solid var(--border); padding-top: 36px; margin-top: 48px; }

@media (max-width: 760px) {
  .help-article.on-phone .help-step { grid-template-columns: 1fr; gap: 14px; }
  .help-shot.on-phone .help-frame { margin-inline: auto; max-width: 260px; }
  .help-contents { columns: 1; }
  .help-say { padding-left: 2.6rem; }
  .help-mark b { font-size: 10px; }
  .help-search { flex-wrap: wrap; }
}

@media print {
  .site-header, .site-footer, .help-search, .help-pager, .help-actions, .help-jump, .skip { display: none !important; }
  body { background: #fff; }
  .help-guide { padding: 0; }
  .help-cover { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
  .help-contents { break-after: page; border: 0; }
  .help-book .help-article { break-before: page; border-top: 0; padding-top: 0; margin-top: 0; }
  .help-steps { gap: 22px; }
  .help-step { break-inside: avoid; }
  .help-shot.on-desktop .help-frame { box-shadow: none; }
  .help-article.on-phone .help-step { grid-template-columns: 210px minmax(0, 1fr); }
  a { color: inherit; }
}
