/* ---------------------------------------------------------------------------
 * The central FAQ library ([ballyhass_faq_library], inc/faq-library.php).
 *
 * Loaded only on a page that holds the library. Tokens only, as components.css.
 * The questions themselves are the shared FAQ list (.bh-faqs, components.css).
 * ------------------------------------------------------------------------ */

.bh-faq-library-page {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--bh-space-8) 0 var(--bh-space-12);
    color: var(--bh-on-white);
    font-family: var(--bh-font);
}

.bh-faq-library-page__kicker {
    margin: 0 0 var(--bh-space-2);
    color: var(--bh-blue-text);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bh-faq-library-page__lead {
    max-width: 720px;
    margin: 0 0 var(--bh-space-8);
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
}

/* main.min.css gives every section a 100px bottom margin. */
.bh-faq-library section,
.bh-faq-library-page section,
.bh-faq-library-page aside {
    margin-bottom: 0;
}

/* Find your questions: the sections as a row of jump links. */
.bh-faq-library__nav {
    margin: 0 0 var(--bh-space-8);
    padding: var(--bh-space-5);
    background: var(--bh-surface-2);
    border-radius: var(--bh-radius-md);
}

.bh-faq-library__nav-title {
    margin: 0 0 var(--bh-space-3);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bh-faq-library__nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bh-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bh-faq-library__nav-link {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--bh-target-comfortable);
    padding: var(--bh-space-2) var(--bh-space-4);
    color: var(--bh-on-white);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    line-height: var(--bh-leading-tight);
    text-decoration: none;
    background: var(--bh-white);
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-sm);
}

.bh-faq-library__nav-link:hover {
    border-color: var(--bh-navy);
}

.bh-faq-library__nav-link:focus-visible {
    outline: var(--bh-focus-width) solid var(--bh-focus-color);
    outline-offset: var(--bh-focus-offset);
}

.bh-faq-library__nav-count {
    color: var(--bh-muted);
    font-size: var(--bh-text-2xs);
    font-weight: var(--bh-weight-medium);
}

.bh-faq-library__section {
    margin-top: var(--bh-space-12);
    /* Clear of the sticky header when a jump link lands here, as What's On. */
    scroll-margin-top: 120px;
}

.bh-faq-library__section:first-of-type {
    margin-top: 0;
}

.bh-faq-library__title {
    margin: 0 0 var(--bh-space-2);
    color: var(--bh-on-white);
    font-size: var(--bh-text-2xl);
    font-weight: var(--bh-weight-bold);
    line-height: var(--bh-leading-tight);
}

.bh-faq-library__intro {
    margin: 0 0 var(--bh-space-6);
    color: var(--bh-on-white);
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
}

.bh-faq-library__group + .bh-faq-library__group {
    margin-top: var(--bh-space-6);
}

/* Subtitles: ALL CAPS, bold (the brand guide). */
.bh-faq-library__group-title {
    margin: 0 0 var(--bh-space-3);
    color: var(--bh-on-white);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bh-faq-library__more {
    margin: var(--bh-space-4) 0 0;
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-bold);
}

.bh-faq-library__more a,
.bh-faq-library .bh-faq__answer a,
.bh-faq-library-page__contact a {
    color: var(--bh-blue-text);
    text-decoration: underline;
}

.bh-faq-library-page__contact {
    margin-top: var(--bh-space-12);
    padding: var(--bh-space-6);
    color: var(--bh-on-navy);
    background: var(--bh-navy);
    border-radius: var(--bh-radius-md);
}

.bh-faq-library-page__contact h2 {
    margin: 0 0 var(--bh-space-2);
    color: var(--bh-on-navy);
    font-size: var(--bh-text-lg);
    font-weight: var(--bh-weight-bold);
}

.bh-faq-library-page__contact p {
    margin: 0;
    font-size: var(--bh-text-sm);
    font-weight: var(--bh-weight-medium);
    line-height: var(--bh-leading-body);
}

/* Blue text on navy fails; the contact links are the yellow of the highlight pattern. */
.bh-faq-library-page__contact a {
    color: var(--bh-yellow);
}

.bh-faq-library .bh-faq__answer ul {
    margin: 0 0 var(--bh-space-3);
    padding-left: var(--bh-space-5);
}

/* ---------------------------------------------------------------------------
 * Inside the help hub (inc/help-hub.php, [ballyhass_faq_library title=""]):
 * each audience is a block of its own, as the grouped library on Ballyhass's
 * old help page was, in the hub's support green (Teamwork 11931155).
 * ------------------------------------------------------------------------ */

.bh-faq-library--titled .bh-faq-library__head {
    max-width: 760px;
    margin-bottom: var(--bh-space-5);
}

.bh-faq-library--titled .bh-faq-library__nav {
    background: var(--bh-green-mint);
    border-radius: 16px;
}

.bh-faq-library--titled .bh-faq-library__nav-title {
    color: var(--bh-green);
}

.bh-faq-library--titled .bh-faq-library__nav-link {
    border: 2px solid var(--bh-green);
    border-radius: 12px;
}

.bh-faq-library--titled .bh-faq-library__nav-link:hover {
    border-color: var(--bh-green-deep);
    background: var(--bh-green-mint);
}

.bh-faq-library--titled .bh-faq-library__section {
    margin-top: var(--bh-space-6);
    padding: var(--bh-space-6);
    background: var(--bh-green-mint);
    border: 1px solid rgba(18, 78, 63, 0.14);
    border-radius: 22px;
}

.bh-faq-library--titled .bh-faq-library__section:first-of-type {
    margin-top: 0;
}

.bh-faq-library--titled .bh-faq-library__title {
    font-size: var(--bh-text-xl);
}

.bh-faq-library--titled .bh-faq-library__group-title {
    color: var(--bh-green);
}

.bh-faq-library--titled .bh-faq-library__more a,
.bh-faq-library--titled .bh-faq__answer a {
    color: var(--bh-green);
}

@media (max-width: 767px) {
    .bh-faq-library--titled .bh-faq-library__section {
        margin-right: calc(-1 * var(--bh-space-2));
        margin-left: calc(-1 * var(--bh-space-2));
        padding: var(--bh-space-4) var(--bh-space-3);
    }

    .bh-faq-library--titled .bh-faq-library__nav {
        padding: var(--bh-space-4);
    }
}
