/* ===================================================================
   VIVELEAD HELP CENTRE  (/help/)

   This file styles the CHROME only: the index hero and search, the
   category blocks, the guide sidebar, and the prev/next footer.

   It deliberately styles NO prose. The typography for a guide body
   (p, ul, ol, table, code, blockquote) comes from blog-clean.css,
   which head.html loads for section "help", and the body is wrapped
   in .vl-hrms-blog-content so those rules apply unchanged. Do not
   restate heading or paragraph rules here or the two files will drift.

   Every selector below is scoped to .vl-help-*, so this file cannot
   leak onto any other section of the site.
   =================================================================== */

:root {
    --help-primary: #4051B5;
    --help-primary-dark: #2f3d8f;
    --help-primary-soft: rgba(64, 81, 181, 0.08);
    --help-text: #2d3e50;
    --help-body: #3d4d5c;
    --help-muted: #7c98b6;
    --help-border: #dfe6ee;
    --help-border-strong: #cbd6e2;
    --help-bg: #f7f9fb;
    --help-white: #ffffff;
    --help-radius: 10px;
    --help-shadow: 0 1px 2px rgba(16, 30, 54, 0.04), 0 4px 12px rgba(16, 30, 54, 0.06);
}

.vl-help * {
    box-sizing: border-box;
}

/* ===================================================================
   INDEX HERO
   =================================================================== */

.vl-help-hero {
    background: linear-gradient(180deg, var(--help-primary-soft) 0%, transparent 100%);
    border-bottom: 1px solid var(--help-border);
    padding: 56px 20px 48px;
}

.vl-help-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.vl-help-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--help-primary);
    background: var(--help-white);
    border: 1px solid var(--help-border-strong);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.vl-help-hero__title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--help-text);
    margin: 0 0 14px;
}

.vl-help-hero__description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--help-body);
    margin: 0 auto 28px;
    max-width: 620px;
}

/* Search */

.vl-help-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.vl-help-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--help-muted);
    pointer-events: none;
}

.vl-help-search__input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    font-size: 16px;
    color: var(--help-text);
    background: var(--help-white);
    border: 1px solid var(--help-border-strong);
    border-radius: var(--help-radius);
    box-shadow: var(--help-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vl-help-search__input::placeholder {
    color: var(--help-muted);
}

.vl-help-search__input:focus {
    outline: none;
    border-color: var(--help-primary);
    box-shadow: 0 0 0 3px var(--help-primary-soft);
}

.vl-help-search__empty {
    display: none;
    margin: 28px auto 0;
    max-width: 520px;
    font-size: 15px;
    color: var(--help-body);
}

.vl-help-search__empty a {
    color: var(--help-primary);
    font-weight: 600;
}

/* ===================================================================
   INDEX BODY
   =================================================================== */

.vl-help-index {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.vl-help-intro {
    max-width: 760px;
    margin: 0 0 44px;
}

.vl-help-group {
    margin-bottom: 44px;
}

.vl-help-group__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--help-border);
}

.vl-help-group__title {
    font-size: 21px;
    font-weight: 700;
    color: var(--help-text);
    margin: 0;
}

.vl-help-group__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--help-muted);
}

.vl-help-group__description {
    flex-basis: 100%;
    font-size: 15px;
    color: var(--help-body);
    margin: 0;
}

.vl-help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.vl-help-card {
    display: block;
    padding: 18px 20px;
    background: var(--help-white);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vl-help-card:hover {
    border-color: var(--help-primary);
    box-shadow: var(--help-shadow);
    transform: translateY(-1px);
}

.vl-help-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--help-text);
    margin: 0 0 6px;
}

.vl-help-card__title svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--help-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.vl-help-card:hover .vl-help-card__title svg {
    color: var(--help-primary);
    transform: translateX(2px);
}

.vl-help-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--help-body);
    margin: 0;
}

/* Shown when the section has no published guides yet. */
.vl-help-empty {
    padding: 40px 24px;
    text-align: center;
    background: var(--help-bg);
    border: 1px dashed var(--help-border-strong);
    border-radius: var(--help-radius);
    color: var(--help-body);
    font-size: 15px;
}

/* ===================================================================
   CONTACT STRIP (shared by index and guide pages)
   =================================================================== */

.vl-help-contact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--help-bg);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
}

.vl-help-contact__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--help-text);
    margin: 0 0 4px;
}

.vl-help-contact__text {
    font-size: 14px;
    color: var(--help-body);
    margin: 0;
}

.vl-help-contact__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vl-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--help-primary);
    background: var(--help-primary);
    color: var(--help-white);
    transition: background 0.2s ease, color 0.2s ease;
}

.vl-help-btn:hover {
    background: var(--help-primary-dark);
    border-color: var(--help-primary-dark);
    color: var(--help-white);
}

.vl-help-btn--ghost {
    background: var(--help-white);
    color: var(--help-primary);
}

.vl-help-btn--ghost:hover {
    background: var(--help-primary-soft);
    color: var(--help-primary-dark);
}

/* ===================================================================
   GUIDE PAGE LAYOUT
   =================================================================== */

.vl-help-guide {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Sidebar */

.vl-help-nav {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 8px;
    border-right: 1px solid var(--help-border);
}

.vl-help-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--help-muted);
    text-decoration: none;
    margin-bottom: 20px;
}

.vl-help-nav__back:hover {
    color: var(--help-primary);
}

.vl-help-nav__group {
    margin-bottom: 22px;
}

.vl-help-nav__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--help-muted);
    margin: 0 0 8px;
}

.vl-help-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vl-help-nav__list li {
    margin: 0;
}

.vl-help-nav__link {
    display: block;
    padding: 7px 12px;
    margin-left: -12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--help-body);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.vl-help-nav__link:hover {
    background: var(--help-primary-soft);
    color: var(--help-primary);
}

.vl-help-nav__link.is-active {
    background: var(--help-primary-soft);
    color: var(--help-primary);
    font-weight: 600;
}

/* Article column */

/* One measure for the whole column, so the title, the lede and the prose share
   a left edge. blog-clean.css gives .vl-hrms-blog-content `margin: 0 auto`,
   which would otherwise centre the body inside the column and indent it away
   from the heading above it. */
.vl-help-article {
    min-width: 0;
    max-width: 780px;
}

.vl-help-article__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--help-primary);
    margin-bottom: 12px;
}

.vl-help-article__title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--help-text);
    margin: 0 0 14px;
}

.vl-help-article__lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--help-body);
    margin: 0 0 18px;
}

.vl-help-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--help-muted);
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--help-border);
}

.vl-help-article__plan {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--help-primary);
    background: var(--help-primary-soft);
    border-radius: 999px;
}

/* The prose itself is styled by blog-clean.css via .vl-hrms-blog-content.
   Only the width and alignment belong here. */
.vl-help-article .vl-hrms-blog-content {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Prev / next */

.vl-help-pager {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 44px 0 32px;
}

.vl-help-pager__item {
    display: block;
    padding: 16px 18px;
    background: var(--help-white);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vl-help-pager__item:hover {
    border-color: var(--help-primary);
    box-shadow: var(--help-shadow);
}

.vl-help-pager__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--help-muted);
    margin-bottom: 5px;
}

.vl-help-pager__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--help-text);
}

.vl-help-pager__item--next {
    text-align: right;
}

.vl-help-article .vl-help-contact {
    max-width: 100%;
    margin: 0;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 992px) {
    .vl-help-guide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vl-help-nav {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        border-right: none;
        border: 1px solid var(--help-border);
        border-radius: var(--help-radius);
    }

    .vl-help-nav__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 18px;
        font-size: 14px;
        font-weight: 600;
        color: var(--help-text);
        cursor: pointer;
        list-style: none;
    }

    .vl-help-nav__summary::-webkit-details-marker {
        display: none;
    }

    .vl-help-nav__body {
        padding: 0 18px 18px;
    }

    .vl-help-nav__back {
        margin-bottom: 14px;
    }
}

/* Above 992px the sidebar is a plain sticky column, so the disclosure control
   is hidden. The open/closed state itself is set by the inline script in
   layouts/help/single.html, not here: Chrome hides a closed <details> with
   content-visibility, which no display rule can override. */
@media (min-width: 993px) {
    .vl-help-nav__summary {
        display: none;
    }
}

/* The chevron points down when closed, up when open. */
.vl-help-nav[open] .vl-help-nav__summary svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .vl-help-hero {
        padding: 40px 20px 36px;
    }

    .vl-help-hero__title {
        font-size: 30px;
    }

    .vl-help-hero__description {
        font-size: 16px;
    }

    .vl-help-index {
        padding: 36px 20px 48px;
    }

    .vl-help-cards {
        grid-template-columns: 1fr;
    }

    .vl-help-article__title {
        font-size: 27px;
    }

    .vl-help-article__lede {
        font-size: 16px;
    }

    .vl-help-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .vl-help-pager__item--next {
        text-align: left;
    }
}
