/*
 * Site themes — the Vendor Help Center /help (views/help/index.php, includes/header.php) on a themed
 * request (themes/_base/app.php key "help").
 *
 * The page keeps its layout and words. Its own <style> paints through a small set of --vh-*
 * variables on .vh (brand, ink, body, muted, line, soft, tint) plus white (#fff) card backgrounds;
 * this file points those variables at the template tokens and the white cards at --z-surface.
 *
 * Rules
 *   - Token-only: never a [data-zin-mode] or prefers-color-scheme selector (Auto swaps the tokens).
 *   - Scoped body.zt-app-help .vh; nav + .zt-site-footer stay chrome.css's job.
 *   - --vh-p is the page's brand colour for WORDS (eyebrow, links, counts, open answers) → the
 *     contrast-guarded --z-accent-text; brand FILLS (solid buttons, done steps) → --z-accent with
 *     --z-accent-ink.
 *   - Status colours (amber warnings, pills, the admin-preview note) keep their light boxes with dark
 *     words, which read in both modes.
 * Loaded only on themed requests (zin_theme_app_head); the legacy page never sees this file.
 */

body.zt-app-help .vh {
    --vh-p: var(--z-accent-text);
    --vh-ink: var(--z-text);
    --vh-body: var(--z-text);
    --vh-muted: var(--z-muted);
    --vh-line: var(--z-border);
    --vh-soft: var(--z-surface-2);
    --vh-tint: var(--z-accent-soft);
    --vh-tint2: color-mix(in srgb, var(--z-accent) 24%, var(--z-surface));
    background: var(--z-bg);
    color: var(--vh-body);
}

/* White cards and controls → the template's card surface. */
body.zt-app-help .vh :is(.vh-chip, .vh-status, .vh-btn--ghost, .vh-step, .vh-topic, .vh-arts, .vh-contact-list a, .vh-step.is-now .vh-step-n) {
    background: var(--z-surface);
}

/* Brand fills. */
body.zt-app-help .vh .vh-btn--solid {
    background: var(--z-accent);
    color: var(--z-accent-ink);
}
body.zt-app-help .vh .vh-step.is-done .vh-step-n {
    background: var(--z-accent);
    border-color: var(--z-accent);
    color: var(--z-accent-ink);
}
body.zt-app-help .vh :is(.vh-topic:hover, .vh-topic:focus-visible) { box-shadow: var(--z-shadow-lg); }

/* app.css colours every class-less link with the brand colour; the topic list and the contact
   links are class-less but read in the page's ink, as before. */
body.zt-app-help .vh .vh-nav li a,
body.zt-app-help .vh .vh-contact-list li a { color: var(--vh-ink); }
body.zt-app-help .vh .vh-nav li a:not(.is-active):not(:hover) { color: var(--vh-body); }

/* Grey words on the brand-tint hero (--z-muted is guarded on bg/surface, not on --z-accent-soft):
   pulled a little toward the ink so they stay readable in every template, light and dark. */
body.zt-app-help .vh .vh-hero :is(.vh-hero-sub, .vh-popular) { color: color-mix(in srgb, var(--z-muted) 82%, var(--z-text)); }
