﻿/* FAQ css */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 20px 20px;
}

/* Masthead */
.masthead {
    padding: 4px;
}

    .masthead h1 {
        font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
        font-weight: 600;
        font-size: clamp(2.1rem, 5vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.01em;
        margin: 0 0 16px;
        text-wrap: balance;
    }

    .masthead p {
        max-width: 60ch;
        margin: 0 0 6px;
        font-size: 1.05rem;
    }

    .masthead .meta {
        font-size: 0.85rem;
        margin-top: 18px;
    }

/* Quick nav */
.quicknav {
    z-index: 20;
    padding: 10px 0;
}

.quicknav-label {
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.quicknav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quicknav-pill {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}

    .quicknav-pill:focus-visible {
        outline-offset: 2px;
    }

/* Category accordion */
.cat-item {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

    .cat-item:first-child {
        border-top-width: 1px;
        border-top-style: solid;
    }

.cat-heading {
    margin: 0;
}

.cat-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    text-align: left;
    padding: 11px 4px;
    cursor: pointer;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
}

    .cat-button:focus-visible {
        outline-offset: 4px;
        border-radius: 6px;
    }

.cat-icon {
    flex: none;
    width: 13px;
    height: 13px;
    border-right-width: 2px;
    border-right-style: solid;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-right: 6px;
}

.cat-button.collapsed .cat-icon {
    transform: rotate(-45deg);
}

.cat-body {
    padding: 0 4px 28px;
}

/* Question accordion (nested) */
.q-item {
    border-top-width: 1px;
    border-top-style: solid;
}

    .q-item:first-child {
        border-top: 0;
    }

.q-heading {
    margin: 0;
}

.q-button {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    text-align: left;
    padding: 16px 14px;
    cursor: pointer;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
}

    .q-button:focus-visible {
        outline-offset: -2px;
    }

.q-text {
    padding-top: 1px;
}

.q-icon {
    flex: none;
    margin-top: 6px;
    width: 9px;
    height: 9px;
    border-right-width: 2px;
    border-right-style: solid;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.q-button.collapsed .q-icon {
    transform: rotate(-45deg);
}

.q-body {
    padding: 2px 14px 20px 14px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    margin-bottom: 20px;
}

    .q-body p {
        margin: 0 0 12px;
    }

        .q-body p:last-child {
            margin-bottom: 0;
        }

        .q-body p:first-child {
            margin-top: 20px;
        }

    .q-body ul {
        margin: 0 0 12px;
        padding-left: 1.3em;
    }

    .q-body li {
        margin: 0 0 6px;
    }

        .q-body li:last-child {
            margin-bottom: 0;
        }

    .q-body strong {
        font-weight: 700;
    }

    .q-body em {
        font-style: italic;
    }

.site-footer {
    padding: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    margin-top: 40px;
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cat-icon, .q-icon, .quicknav-pill, .cat-button {
        transition: none;
    }
}

@media (max-width: 560px) {
    .masthead {
        padding: 40px 0 20px;
    }

    .cat-button {
        font-size: 1.18rem;
        padding: 18px 2px;
    }
}
