/* The public Help center (ADR 0015 P1), on the public site's shell and the blog's layout (blog.css).
   Colours, type and radii from landing-home.css's tokens (--h-*); nothing new is invented. landing.css pads every
   <section> by 5rem, so each section here sets its own padding. The guide's body is help-prose.css, as in the shop. */

/* ── The home's hero: the inner pages' navy card, with a search ── */
.hp-hero .h-phero__card { padding-bottom: 72px; }
.hp-kicker { margin: 0 0 12px; color: var(--h-300); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hp-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 28px auto 0; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.6); }
.hp-search i { color: var(--h-text); font-size: 18px; }
.hp-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--h-ink); font-size: 16px; }
.hp-search input::-webkit-search-cancel-button { cursor: pointer; }
.hp-search:focus-within { box-shadow: 0 0 0 3px var(--h-400), 0 18px 40px -20px rgb(0 0 0 / 0.6); }
.hp-search .h-button { height: 44px; flex: none; }
.hp-popular { margin: 16px 0 0; color: var(--h-on-dark-text); font-size: 14px; line-height: 22px; }
.hp-popular a { margin-inline-start: 10px; color: var(--h-on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / 0.35); }
.hp-popular a:hover { text-decoration-color: currentColor; }

.hp-wrap { display: grid; gap: 32px; padding-top: 40px; }

/* ── A search's results ── */
.hp-results { padding: 28px; border: 1px solid var(--h-border); border-radius: 20px; background: var(--h-card); box-shadow: var(--h-shadow-card); }
.hp-results h2 { margin: 0; color: var(--h-ink); font-size: 20px; line-height: 28px; font-weight: 600; }
.hp-results__note, .hp-results__none { margin: 8px 0 0; color: var(--h-text); font-size: 15px; }
.hp-results__list { margin: 16px 0 0; padding: 0; list-style: none; }
.hp-results__list li + li { border-top: 1px solid var(--h-border); }
.hp-results__list a { display: grid; gap: 4px; padding: 14px 2px; color: var(--h-ink); }
.hp-results__title { font-size: 16px; line-height: 24px; font-weight: 600; }
.hp-results__list a:hover .hp-results__title { color: var(--h-600); }
.hp-results__heading { color: var(--h-text); font-weight: 500; }
.hp-results__section { color: var(--h-600); font-size: 13px; line-height: 18px; font-weight: 600; }
.hp-results__snippet { color: var(--h-text); font-size: 14px; line-height: 22px; }
.hp-results__snippet mark { padding: 0 2px; border-radius: 3px; background: var(--h-100); color: var(--h-ink); }
.hp-results__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--h-600); font-size: 14px; font-weight: 600; }

/* ── ArmPOS in an AI assistant ── */
.hp-ai { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--h-border); border-radius: 20px; background: linear-gradient(120deg, var(--h-50), #fff 60%); scroll-margin-top: 120px; }
.hp-ai__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--h-950); color: var(--h-400); font-size: 24px; }
.hp-ai__text h2 { margin: 0; color: var(--h-ink); font-size: 20px; line-height: 28px; font-weight: 600; }
.hp-ai__text p { margin: 4px 0 0; max-width: 540px; color: var(--h-text); font-size: 15px; line-height: 23px; }
.hp-ai__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; max-width: 470px; }
.hp-copy { display: flex; gap: 6px; width: 100%; }
.hp-copy input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--h-border); border-radius: 10px; background: #fff; color: var(--h-ink); font: 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hp-copy input:focus { outline: 2px solid var(--h-400); outline-offset: 1px; }
.hp-ai__how { grid-column: 1 / -1; margin-top: -4px; color: var(--h-text); font-size: 14px; line-height: 22px; }
.hp-ai__how summary { width: max-content; max-width: 100%; color: var(--h-600); font-weight: 600; cursor: pointer; }
.hp-ai__how dl { display: grid; gap: 6px; margin: 12px 0 0; }
.hp-ai__how dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.hp-ai__how dt { color: var(--h-ink); font-weight: 600; }
.hp-ai__how dd { margin: 0; overflow-wrap: anywhere; }
.hp-ai__how p { margin: 10px 0 0; }

/* ── The sections ── */
.hp-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hp-section { padding: 24px 24px 12px; border: 1px solid var(--h-border); border-radius: 20px; background: var(--h-card); box-shadow: var(--h-shadow-card); scroll-margin-top: 120px; }
.hp-section header { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--h-border); }
.hp-section__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--h-fill); color: var(--h-950); font-size: 20px; }
.hp-section h2 { margin: 0; color: var(--h-ink); font-size: 18px; line-height: 24px; font-weight: 600; }
.hp-section header p { margin: 2px 0 0; color: var(--h-text); font-size: 14px; line-height: 20px; }
.hp-section__count { margin-inline-start: auto; color: var(--h-text); font-size: 13px; white-space: nowrap; }
.hp-section ul { margin: 0; padding: 0; list-style: none; }
.hp-section li + li { border-top: 1px solid var(--h-border); }
.hp-section li a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; color: var(--h-ink); font-size: 15px; line-height: 22px; }
.hp-section li a i { margin-inline-start: auto; color: var(--h-text); }
.hp-section li a:hover span { color: var(--h-600); }
[dir="rtl"] .hp-section li a i, [dir="rtl"] .hp-results__all i { transform: scaleX(-1); }

/* ── Contact ── */
.hp-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 20px; background: var(--h-950); }
.hp-contact h2 { margin: 0; color: #fff; font-size: 22px; line-height: 30px; font-weight: 600; }
.hp-contact p { margin: 6px 0 0; max-width: 560px; color: var(--h-on-dark-text); font-size: 15px; line-height: 23px; }
.hp-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── A guide ── */
.hp-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.hp-meta i { margin-inline-end: 4px; }
.hp-toc__md { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--h-600); font-size: 13px; font-weight: 600; }
.b-toc .hp-toc__md { padding: 0; border: 0; }   /* not one of the contents' lines (blog.css styles every .b-toc a) */
.hp-shopnote { display: flex; gap: 10px; margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--h-border); border-radius: 12px; background: var(--h-fill); color: var(--h-text); font-size: 14px; line-height: 21px; }
.hp-shopnote > i { color: var(--h-600); }
.hp-app { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--h-100); color: var(--h-800); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hp-prose { color: var(--h-ink); }
.hp-prose a { color: var(--h-600); }
.hp-prose h2, .hp-prose h3 { scroll-margin-top: 120px; }

/* A picture: pressed, it opens full-size (help.js) */
.hp-zoom { position: relative; display: inline-block; max-width: 100%; padding: 0; border: 0; border-radius: 14px; background: none; vertical-align: top; cursor: zoom-in; }
.hp-zoom img { display: block; }
.hp-zoom::after { content: "\f14a"; /* bi-arrows-angle-expand */ position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgb(21 30 49 / 0.72); color: #fff; font: 15px/1 "bootstrap-icons"; opacity: 0; transition: opacity 0.15s ease; }
.hp-zoom:hover::after, .hp-zoom:focus-visible::after { opacity: 1; }
.hp-zoom:focus-visible { outline: 3px solid var(--h-500); outline-offset: 2px; }
@media (hover: none) { .hp-zoom::after { opacity: 1; } }

/* Fixed to the window: landing-home.css makes every child of the page's main area position: relative, and the top
   layer turns that into absolute, so the dialog would sit on the page, not the screen */
dialog.hp-viewer { position: fixed; inset: 0; }
.hp-viewer { width: min(1600px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 56px 16px 16px; border: 0; border-radius: 16px; background: var(--h-950); color: #fff; overflow: auto; }
.hp-viewer::backdrop { background: rgb(5 8 9 / 0.88); }
.hp-viewer figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.hp-viewer img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 10px; background: #fff; object-fit: contain; }
.hp-viewer figcaption { max-width: 760px; color: rgb(255 255 255 / 0.9); font-size: 14px; line-height: 21px; text-align: center; }
.hp-viewer__close { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; }
.hp-viewer__close:hover { background: rgb(255 255 255 / 0.16); }
.hp-viewer__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* A video: its still and a play button until pressed (help.js) */
.hp-prose figure.hc-video .hp-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #0d1416; cursor: pointer; overflow: hidden; }
.hp-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; opacity: 0.75; }
.hp-video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 12px 30px rgb(0 0 0 / 0.35); }
.hp-video__play::before { content: ""; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--h-950); }
.hp-video:focus-visible { outline: 3px solid var(--h-400); outline-offset: -3px; }

.hp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.hp-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--h-border); border-radius: 14px; color: var(--h-ink); font-weight: 600; transition: border-color 0.15s ease; }
.hp-pager a:hover { border-color: var(--h-950); }
.hp-pager small { color: var(--h-text); font-weight: 500; }
.hp-pager__next { text-align: end; }
.hp-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.hp-after__card { padding: 20px; border: 1px solid var(--h-border); border-radius: 16px; background: var(--h-fill); }
.hp-after__card h2 { margin: 0; color: var(--h-ink); font-size: 17px; line-height: 24px; font-weight: 600; }
.hp-after__card p { margin: 6px 0 14px; color: var(--h-text); font-size: 14px; line-height: 21px; }

@media (max-width: 1023.98px) {
    .hp-ai { grid-template-columns: auto minmax(0, 1fr); }
    .hp-ai__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
    .hp-sections { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .hp-search { padding-inline-start: 14px; }
    .hp-search .h-button { padding: 0 14px; }
    .hp-popular a { display: inline-block; margin: 6px 8px 0 0; }
    .hp-ai, .hp-results { padding: 20px; }
    .hp-ai__how dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hp-contact { padding: 24px; }
    .hp-pager, .hp-after { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .hp-zoom::after, .hp-pager a { transition: none; }
}
