/* Frequently asked questions (/faq).
   Self-contained, the arrangement about.css and guides.css follow: site.css
   supplies the tokens, the wrap and the section rhythm, and nothing of home.css
   is needed here.

   The accordion is <details>/<summary>, so open and closed are the browser's
   own state rather than a class the page has to keep. The marker is removed on
   both engines that draw one and replaced with the chevron in the summary. */

/* --- page band ---
   Same shape as the About and guide-directory bands, so the static pages all
   open the same way: mark, script kicker, heading, lead. */

.gqv2 .gq-fq-band {
    background: var(--gq-sand);
    border-bottom: 1px solid var(--gq-line);
    padding: 46px 0;
}

.gqv2 .gq-fq-band-lead {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gqv2 .gq-fq-band-mark {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 34px;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--gq-navy), var(--gq-blue-dark));
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45),
                0 18px 34px -12px rgba(18, 59, 99, .5),
                inset 0 2px 0 rgba(255, 255, 255, .22);
}

.gqv2 .gq-fq-band-lead .gqv2-script {
    font-size: 26px;
    line-height: 1;
}

.gqv2 .gq-fq-band-lead h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 6px 0 8px;
}

.gqv2 .gq-fq-band-lead p {
    color: var(--gq-slate);
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
}

/* --- search ---
   Rendered [hidden] and unhidden by faq.js. */

.gqv2 .gq-fq-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 26px 0 0;
    background: #fff;
    border: 1px solid var(--gq-line);
    border-radius: 999px;
    box-shadow: var(--gq-shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.gqv2 .gq-fq-search:focus-within {
    border-color: var(--gq-blue);
    box-shadow: 0 0 0 4px var(--gq-blue-tint);
}

.gqv2 .gq-fq-search > i {
    position: absolute;
    left: 20px;
    color: var(--gq-blue);
    font-size: 15px;
    pointer-events: none;
}

.gqv2 .gq-fq-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px 15px 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--gq-font);
    font-size: 15px;
    color: var(--gq-charcoal);
}

.gqv2 .gq-fq-search input:focus {
    outline: none;
}

/* The UA's own clear affordance would sit beside ours. */
.gqv2 .gq-fq-search input::-webkit-search-cancel-button {
    display: none;
}

.gqv2 .gq-fq-clear {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gq-mist);
    background: var(--gq-cloud);
    transition: color .16s ease, background .16s ease;
}

.gqv2 .gq-fq-clear:hover {
    color: #fff;
    background: var(--gq-navy);
}

/* --- category filters --- */

.gqv2 .gq-fq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 36px;
}

.gqv2 .gq-fq-filter {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--gq-line);
    background: #fff;
    cursor: pointer;
    font-family: var(--gq-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--gq-slate);
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.gqv2 .gq-fq-filter i {
    font-size: 13px;
    color: var(--gq-blue);
    transition: color .16s ease;
}

.gqv2 .gq-fq-filter .cnt {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--gq-cloud);
    font-size: 12px;
    font-weight: 700;
    color: var(--gq-mist);
    transition: color .16s ease, background .16s ease;
}

.gqv2 .gq-fq-filter:hover {
    transform: translateY(-2px);
    border-color: var(--gq-blue);
    color: var(--gq-navy);
}

.gqv2 .gq-fq-filter.is-active {
    background: var(--gq-navy);
    border-color: var(--gq-navy);
    color: #fff;
}

.gqv2 .gq-fq-filter.is-active i {
    color: var(--gq-sky);
}

.gqv2 .gq-fq-filter.is-active .cnt {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* --- the list --- */

.gqv2 .gq-fq-list {
    max-width: 860px;
    margin: 0 auto;
}

.gqv2 .gq-fq-group + .gq-fq-group {
    margin-top: 44px;
}

.gqv2 .gq-fq-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--gq-head-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gq-slate);
    margin: 0 0 16px;
}

.gqv2 .gq-fq-group-head i {
    color: var(--gq-blue);
    font-size: 14px;
}

/* A rule to the right of the heading, drawn rather than marked up. */
.gqv2 .gq-fq-group-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gq-line);
}

/* --- one question --- */

.gqv2 .gq-fq-item {
    border: 1px solid var(--gq-line);
    border-radius: var(--gq-radius);
    background: #fff;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.gqv2 .gq-fq-item + .gq-fq-item {
    margin-top: 12px;
}

.gqv2 .gq-fq-item:hover,
.gqv2 .gq-fq-item[open] {
    border-color: var(--gq-blue);
    box-shadow: var(--gq-shadow-sm);
}

.gqv2 .gq-fq-item summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--gq-head-font);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--gq-navy);
    list-style: none;
}

/* Both engines that draw a marker of their own. */
.gqv2 .gq-fq-item summary::-webkit-details-marker {
    display: none;
}

.gqv2 .gq-fq-item summary::marker {
    content: "";
}

.gqv2 .gq-fq-item summary span {
    flex: 1;
}

.gqv2 .gq-fq-item summary i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    color: var(--gq-blue);
    background: var(--gq-blue-tint);
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.gqv2 .gq-fq-item[open] summary i {
    transform: rotate(180deg);
    color: #fff;
    background: var(--gq-blue);
}

.gqv2 .gq-fq-item summary:focus-visible {
    outline: 2px solid var(--gq-blue);
    outline-offset: -2px;
}

.gqv2 .gq-fq-answer {
    padding: 0 24px 22px;
}

.gqv2 .gq-fq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--gq-mist);
}

.gqv2 .gq-fq-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gq-blue);
}

.gqv2 .gq-fq-more i {
    font-size: 12px;
    transition: transform .18s ease;
}

.gqv2 .gq-fq-more:hover i {
    transform: translateX(3px);
}

/* --- nothing matched --- */

.gqv2 .gq-fq-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 50px 30px;
    text-align: center;
}

.gqv2 .gq-fq-empty i {
    font-size: 30px;
    color: var(--gq-line);
    margin-bottom: 18px;
}

.gqv2 .gq-fq-empty b {
    display: block;
    font-family: var(--gq-head-font);
    font-size: 18px;
    color: var(--gq-navy);
    margin-bottom: 8px;
}

.gqv2 .gq-fq-empty p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--gq-mist);
}

.gqv2 .gq-fq-empty a {
    color: var(--gq-blue);
    font-weight: 600;
}

/* --- still have a question --- */

.gqv2 .gq-fq-ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 38px 40px;
    border-radius: var(--gq-radius);
    background: #fff;
    border: 1px solid var(--gq-line);
    box-shadow: var(--gq-shadow-sm);
}

.gqv2 .gq-fq-ask-copy h2 {
    margin: 0 0 8px;
}

.gqv2 .gq-fq-ask-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gq-mist);
}

.gqv2 .gq-fq-ask-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

@media (max-width: 720px) {
    .gqv2 .gq-fq-band {
        padding: 34px 0;
    }

    .gqv2 .gq-fq-band-lead {
        gap: 16px;
    }

    .gqv2 .gq-fq-band-mark {
        width: 56px;
        height: 56px;
        border-radius: 26px;
        font-size: 22px;
    }

    .gqv2 .gq-fq-filter {
        padding: 9px 14px;
        font-size: 13px;
    }

    .gqv2 .gq-fq-item summary {
        gap: 12px;
        padding: 17px 18px;
        font-size: 15.5px;
    }

    .gqv2 .gq-fq-answer {
        padding: 0 18px 20px;
    }

    .gqv2 .gq-fq-ask {
        padding: 28px 22px;
    }

    .gqv2 .gq-fq-ask-actions {
        width: 100%;
    }

    .gqv2 .gq-fq-ask-actions .gqv2-btn {
        flex: 1;
        justify-content: center;
    }
}
