/* aPOS Help Center — light, green, calmer than the marketing site */

:root {
    --help-green: #1b5e20;
    --help-green-mid: #2e7d32;
    --help-lime: #c6ff00;
    --help-ink: #1a1f2e;
    --help-muted: #5f6b7a;
    --help-line: #dce6df;
    --help-bg: #f3f7f4;
    --help-card: #fff;
    --help-warm: #f7faf6;
    --help-radius: 16px;
    --help-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.help-body {
    background: var(--help-bg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.help-topnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--help-line);
    backdrop-filter: blur(10px);
}

.help-topnav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.65rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-topnav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--help-green);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.help-topnav-brand em {
    font-style: normal;
    color: var(--help-muted);
    font-weight: 600;
}

.help-topnav-search {
    flex: 1;
    min-width: 0;
}

.help-topnav-search input {
    width: 100%;
    border: 1px solid var(--help-line);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font: inherit;
}

.help-topnav-toggle {
    display: none;
    border: 1px solid var(--help-line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-weight: 700;
}

.help-topnav-links {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.help-topnav-links a {
    color: var(--help-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.help-topnav-links a.is-active,
.help-topnav-links a:hover {
    color: var(--help-green-mid);
}

.help-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(198, 255, 0, 0.18), transparent 36%),
        linear-gradient(135deg, #0b3b36 0%, #1b5e20 55%, #388e3c 100%);
    color: #fff;
    padding: 1.6rem 1.15rem 1.9rem;
}

.help-hero-inner,
.help-home-main,
.help-page,
.help-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.help-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
    gap: 1.25rem;
    align-items: start;
}

.help-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--help-lime);
}

.help-hero h1,
.help-page-head h1,
.help-article-head h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
}

.help-hero-lead,
.help-page-lead {
    margin: 0 0 1rem;
    color: inherit;
    opacity: 0.92;
}

.help-hero .help-search {
    max-width: 36rem;
}

.help-hero-popular,
.help-search-examples {
    margin: 0.7rem 0 0;
    font-size: 0.88rem;
}

.help-hero-popular a,
.help-hero .help-search-examples a {
    color: #fff;
    font-weight: 700;
    margin-right: 0.55rem;
}

.help-hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--help-radius);
    padding: 1rem 1.1rem;
}

.help-hero-card h2 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.help-hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.help-hero-card a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.help-search {
    display: flex;
    gap: 8px;
}

.help-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font: inherit;
    background: #fff;
    color: var(--help-ink);
}

.help-page .help-search input[type="search"],
.help-category-layout .help-search input[type="search"] {
    border: 1px solid var(--help-line);
    box-shadow: none;
}

.help-home-main,
.help-page {
    padding: 1.5rem 1.15rem 2.5rem;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section-head {
    margin-bottom: 0.9rem;
}

.help-section-head .help-kicker {
    color: var(--help-green-mid);
}

.help-section-head h2,
.help-related-block h2,
.help-screenshots h2 {
    margin: 0;
    color: var(--help-green);
}

.help-job-grid,
.help-feature-grid,
.help-category-grid,
.help-article-grid,
.help-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.help-feature-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.help-job-card,
.help-feature-card,
.help-category-card,
.help-article-card,
.help-start-card,
.help-related-card,
.help-search-hit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem 1.05rem;
    border: 1px solid var(--help-line);
    border-radius: var(--help-radius);
    background: linear-gradient(180deg, var(--help-warm) 0%, #fff 70%);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--help-shadow);
}

.help-job-card:hover,
.help-feature-card:hover,
.help-category-card:hover,
.help-article-card:hover,
.help-related-card:hover,
.help-search-hit:hover,
.help-start-card:hover {
    border-color: #b7e0b8;
}

.help-job-card strong,
.help-feature-card strong,
.help-category-card strong,
.help-article-card strong,
.help-related-card strong,
.help-search-hit strong {
    color: var(--help-green);
}

.help-job-card span,
.help-feature-card span,
.help-category-card span,
.help-article-card span,
.help-search-hit span {
    color: var(--help-muted);
    font-size: 0.9rem;
}

.help-category-mark {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--help-lime);
    transform: rotate(45deg);
    margin-bottom: 0.35rem;
}

.help-category-card em,
.help-article-card em,
.help-search-hit em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--help-green-mid);
}

.help-video-empty,
.help-empty {
    padding: 1.1rem 1.2rem;
    border: 1px dashed var(--help-line);
    border-radius: var(--help-radius);
    background: #fff;
    color: var(--help-muted);
}

.help-page-head {
    margin-bottom: 1.25rem;
}

.help-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0.7rem;
    font-size: 0.82rem;
    color: var(--help-muted);
}

.help-crumbs a {
    color: var(--help-green-mid);
    font-weight: 700;
    text-decoration: none;
}

.help-category-layout,
.help-article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.help-side-title,
.guide-toc-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--help-muted);
}

.help-category-nav ol,
.help-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-category-nav a,
.help-toc a {
    display: block;
    padding: 0.35rem 0.4rem;
    color: var(--help-ink);
    text-decoration: none;
    border-radius: 8px;
}

.help-category-nav a.is-active,
.help-toc a.is-active {
    background: #e8f5e9;
    color: var(--help-green);
    font-weight: 700;
}

.help-start-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--help-lime);
}

.help-start-card span,
.help-related-card span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--help-green-mid);
}

.help-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e8f5e9;
    color: var(--help-green);
    font-size: 0.72rem;
    font-weight: 800;
}

.help-badge--retail { background: #eceff1; color: #455a64; }
.help-badge--quiet { background: #f1f8e9; color: #558b2f; }

.help-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.help-article-head {
    margin-bottom: 1rem;
}

.help-article-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 0.4rem;
}

.help-verified-quiet {
    font-size: 0.8rem;
    color: var(--help-muted);
}

.help-in-apos {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e8f5e9;
    color: var(--help-green);
    font-size: 0.86rem;
    font-weight: 600;
}

.help-in-apos span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-quick,
.help-answer {
    background: #f1f8e9;
    border: 1px solid #c5e1a5;
    border-radius: var(--help-radius);
    padding: 1rem 1.1rem;
    margin: 0 0 1.2rem;
}

.help-quick p,
.help-answer p {
    margin: 0.25rem 0;
}

.help-prose {
    background: #fff;
    border: 1px solid var(--help-line);
    border-radius: 18px;
    padding: 1.15rem 1.25rem 1.4rem;
    box-shadow: var(--help-shadow);
}

.help-prose h2 {
    margin: 1.4rem 0 0.5rem;
    scroll-margin-top: 5rem;
    color: var(--help-green);
}

.help-prose h3 {
    scroll-margin-top: 5rem;
}

.help-prose a {
    color: var(--help-green-mid);
    font-weight: 700;
}

.help-prose ol {
    counter-reset: help-step;
    list-style: none;
    padding: 0;
}

.help-prose ol > li {
    counter-increment: help-step;
    position: relative;
    padding: 0.7rem 0.85rem 0.7rem 3.1rem;
    margin: 0 0 0.55rem;
    border: 1px solid var(--help-line);
    border-radius: 12px;
    background: var(--help-warm);
}

.help-prose ol > li::before {
    content: counter(help-step);
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--help-lime);
    color: var(--help-green);
    font-weight: 800;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
}

.help-callout-tip { border-left: 4px solid var(--help-green-mid); }
.help-callout-important { border-left: 4px solid #f9a825; }
.help-callout-danger { border-left: 4px solid #c62828; background: #fff8f7; }

.help-shot,
.help-prose .help-shot {
    margin: 1rem 0;
    border: 1px solid var(--help-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--help-shadow);
}

.help-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.help-shot figcaption,
.help-screenshot-grid figcaption {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--help-muted);
}

.help-screenshot-grid {
    display: grid;
    gap: 12px;
}

.help-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.92rem;
}

.help-prose th,
.help-prose td {
    border: 1px solid var(--help-line);
    padding: 0.45rem 0.6rem;
    text-align: left;
}

.help-prose th {
    background: var(--help-warm);
}

.help-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    margin: 0.75rem 0;
}

.help-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.help-related-block,
.help-screenshots {
    margin-top: 1.4rem;
}

.help-adjacent {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 1.25rem 0 0;
}

.help-adjacent-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--help-line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.help-adjacent-link.is-next { text-align: right; }

.help-adjacent-link span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--help-muted);
}

.help-search-count { color: var(--help-muted); }
.help-search-list { display: grid; gap: 10px; }
.help-search-hit mark { background: #f0f4c3; color: inherit; padding: 0; }

.help-footer {
    border-top: 1px solid var(--help-line);
    background: #fff;
    padding: 1.1rem 1.15rem;
}

.help-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.help-footer-brand {
    display: flex;
    gap: 10px;
    align-items: center;
}

.help-footer-brand span,
.help-footer-links a {
    color: var(--help-muted);
}

.help-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.help-footer-links a { font-weight: 700; text-decoration: none; }

.help-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 16, 0.72);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 1.5rem;
}

.help-lightbox[hidden] { display: none; }

.help-lightbox img {
    max-width: min(1100px, 100%);
    max-height: 90vh;
    border-radius: 12px;
}

.help-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-weight: 700;
}

.help-toc-wrap .guide-mobile-toc-toggle { display: none; }

@media (max-width: 960px) {
    .help-topnav-search { display: none; }
    .help-topnav-toggle { display: inline-flex; }
    .help-topnav-links {
        display: none;
        position: absolute;
        right: 1rem;
        top: 3.2rem;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--help-line);
        border-radius: 12px;
        padding: 0.7rem 0.9rem;
        z-index: 30;
    }
    .help-topnav-links.is-open { display: flex; }
    .help-hero { padding: 1.1rem 1rem 1.25rem; }
    .help-hero-card { display: none; }
    .help-hero-inner,
    .help-category-layout,
    .help-article-layout {
        grid-template-columns: 1fr;
    }
    .help-toc-wrap .guide-mobile-toc-toggle { display: inline-flex; }
    .help-toc { display: none; }
    .help-toc.is-open { display: block; }
    .help-adjacent { flex-direction: column; }
    .help-adjacent-link.is-next { text-align: left; }
    .help-search { flex-direction: column; }
    .help-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
    .help-hero { padding: 1.15rem 1rem 1.35rem; }
    .help-prose { padding: 0.95rem; }
}
