/* help.css — public Help Centre (/help and /help/{slug}).

   Loaded only by the two help pages, through _Layout's "Head" section, so nothing here can
   reach any other page. site.css is NOT changed (it is shared with the landing page).

   Every colour, space, radius and type size below is a token already declared in site.css, so
   the pages follow SmartBooking's look — light, dark and the theme toggle — without redefining
   any of it. Components that already exist (.eyebrow, .lede, .card, .btn, .badge, .faq, .hint)
   are used as they are, not re-styled. Prefix: .help- */

/* ── Header band (both pages) ─────────────────────────────────────────────── */
.help-head { padding-block: var(--s-6) var(--s-5); }
.help-head h1 { margin-bottom: var(--s-3); }
.help-head .lede { max-width: 62ch; }

/* ── Search box (home page) ───────────────────────────────────────────────── */
.help-search {
    position: relative;
    max-width: 560px;
    margin-top: var(--s-5);
}
.help-search svg {
    position: absolute;
    left: var(--s-4);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--ink-400);
    pointer-events: none;
}
.help-search input {
    width: 100%;
    padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 28px);
    font: inherit;
    font-size: var(--t-base);
    color: var(--ink-900);
    background: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
}
.help-search input:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.help-count { min-height: 1.5em; margin-top: var(--s-2); }

/* ── Topic cards (home page) ──────────────────────────────────────────────── */
.help-index { padding-bottom: var(--s-10); }
.help-group { margin-top: var(--s-7); }
.help-group h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.help-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s-4);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.help-card-link {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    height: 100%;
    padding: var(--s-5);
    color: inherit;
    text-decoration: none;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--dur, 0.2s), box-shadow var(--dur, 0.2s), transform var(--dur, 0.2s);
}
a.help-card-link:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
a.help-card-link:focus-visible { outline: none; box-shadow: var(--ring); }
.help-card-link h3 { font-size: var(--t-lg); margin: 0; }
.help-card-link p { margin: 0; color: var(--ink-600); font-size: var(--t-sm); flex: 1; }
.help-card-more { color: var(--brand-600); font-weight: 600; font-size: var(--t-sm); }
.help-card.is-soon .help-card-link { background: var(--surface-1); border-style: dashed; }
.help-card.is-soon h3 { color: var(--ink-600); }
.help-card.is-soon .badge { align-self: flex-start; }
.help-none { margin-top: var(--s-6); }

.help-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    align-items: center;
    justify-content: space-between;
    margin-top: var(--s-9);
}
.help-contact h2 { font-size: var(--t-xl); margin: 0 0 var(--s-1); }
.help-contact p { margin: 0; }

/* ── Article page ─────────────────────────────────────────────────────────── */
.help-crumbs ol {
    list-style: none;
    margin: 0 0 var(--s-4);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    font-size: var(--t-sm);
    color: var(--ink-500);
}
.help-crumbs li + li::before { content: "›"; margin-right: var(--s-2); color: var(--ink-400); }
.help-crumbs a { color: var(--brand-600); }

.help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.help-meta .hint { margin: 0; }

/* Two columns on a roomy screen: the sticky "On this page" list, then the article. */
.help-layout {
    display: grid;
    gap: var(--s-6);
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    padding-bottom: var(--s-10);
}
.help-rail {
    position: sticky;
    top: var(--s-6);
    padding: var(--s-4) var(--s-5);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: var(--t-sm);
}
.help-rail ol { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.help-rail li { padding: 2px 0; }

.help-article { max-width: 760px; }
.help-sec { scroll-margin-top: var(--s-6); }
.help-sec + .help-sec { margin-top: var(--s-8); }
.help-sec h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.help-sec p, .help-sec li { line-height: 1.65; }
.help-sec ul { padding-left: var(--s-6); }
.help-sec li + li { margin-top: var(--s-2); }

/* Numbered steps: a round brand-coloured number beside each step heading. */
.help-steps { list-style: none; margin: 0; padding: 0; }
.help-step { scroll-margin-top: var(--s-6); }
.help-step + .help-step { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.help-step h3 { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-xl); margin-bottom: var(--s-3); }
.help-step-no {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: var(--brand-100);
    color: var(--brand-700);
    font-family: var(--font-sans);
    font-size: var(--t-sm);
    font-weight: 700;
}

.help-shot { margin: var(--s-4) 0 0; }
.help-shot a { display: block; border-radius: var(--r-md); }
.help-shot a:focus-visible { outline: none; box-shadow: var(--ring); }
.help-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}
.help-shot figcaption { margin-top: var(--s-2); }

/* Enlarged screenshot. */
.help-zoom {
    max-width: min(96vw, 1440px);
    padding: 0;
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
}
.help-zoom::backdrop { background: rgba(10, 8, 24, 0.8); }
.help-zoom img { display: block; max-width: 100%; max-height: 90vh; border-radius: var(--r-md); }
.help-zoom-close { position: absolute; top: var(--s-2); right: var(--s-2); background: var(--surface-0); }

/* Phone and small tablet: one column, the "On this page" list above the article. */
@media (max-width: 860px) {
    .help-layout { grid-template-columns: minmax(0, 1fr); }
    .help-rail { position: static; }
    .help-contact { flex-direction: column; align-items: flex-start; }
}
