/* ==========================================================================
   AMS FOCUS — FAQ
   ========================================================================== */

.ams-faq-page .ams-site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.ams-faq-main {
    flex: 1 0 auto;
    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #f5f9ff 46%,
            #f2f7fd 100%
        );
}

.ams-faq-container {
    width:
        min(
            calc(100% - 40px),
            1120px
        );
    margin:
        0
        auto;
}

/* Hero -------------------------------------------------------------------- */

.ams-faq-hero {
    padding:
        86px
        0
        42px;
}

.ams-faq-hero__inner {
    max-width: 700px;
}

.ams-faq-eyebrow {
    position: relative;

    margin:
        0
        0
        16px;

    padding-left: 34px;

    color: #087cf0;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.ams-faq-eyebrow::before {
    position: absolute;
    top: 50%;
    left: 0;

    width: 22px;
    height: 2px;

    background: #087cf0;

    content: "";
    transform: translateY(-50%);
}

.ams-faq-title {
    margin: 0;

    color: #07182d;

    font-size:
        clamp(
            42px,
            5vw,
            64px
        );

    font-weight: 850;
    letter-spacing: -.05em;
    line-height: .98;
}

.ams-faq-description {
    max-width: 650px;

    margin:
        20px
        0
        0;

    color: #5c6d84;

    font-size: 17px;
    line-height: 1.65;
}

/* Shell ------------------------------------------------------------------- */

.ams-faq-section {
    padding:
        0
        0
        78px;
}

.ams-faq-shell {
    display: grid;
    grid-template-columns:
        250px
        minmax(0, 1fr);

    overflow: hidden;

    border:
        1px solid
        rgba(10, 40, 75, .09);

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 20px 55px
        rgba(19, 57, 96, .08);
}

/* Sidebar ----------------------------------------------------------------- */

.ams-faq-sidebar {
    border-right:
        1px solid
        rgba(10, 40, 75, .10);

    background:
        linear-gradient(
            180deg,
            #fbfdff,
            #f7faff
        );
}

.ams-faq-nav {
    position: sticky;
    top: 104px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding:
        50px
        24px;
}

.ams-faq-nav__link {
    position: relative;

    display: block;

    padding:
        13px
        14px;

    border-radius: 6px;

    color: #132740;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.ams-faq-nav__link:hover,
.ams-faq-nav__link:focus-visible {
    color: #087cf0;
    background: #eff6ff;
}

.ams-faq-nav__link.is-active {
    color: #087cf0;
    background: #eaf4ff;
}

.ams-faq-nav__link.is-active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;

    width: 3px;

    border-radius: 4px;

    background: #087cf0;

    content: "";
}

/* Content ----------------------------------------------------------------- */

.ams-faq-content {
    padding:
        42px
        50px
        50px;
}

.ams-faq-category {
    padding:
        0
        0
        34px;

    scroll-margin-top: 120px;
}

.ams-faq-category + .ams-faq-category {
    padding-top: 30px;

    border-top:
        1px solid
        rgba(10, 40, 75, .10);
}

.ams-faq-category:last-child {
    padding-bottom: 0;
}

.ams-faq-category__head {
    margin-bottom: 16px;
}

.ams-faq-category__number {
    display: block;

    margin-bottom: 8px;

    color: #087cf0;

    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
}

.ams-faq-category h2 {
    margin: 0;

    color: #07182d;

    font-size:
        clamp(
            26px,
            3vw,
            34px
        );

    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.05;
}

/* Accordions -------------------------------------------------------------- */

.ams-faq-items {
    overflow: hidden;

    border:
        1px solid
        rgba(10, 40, 75, .11);

    border-radius: 9px;

    background: #fff;
}

.ams-faq-item {
    margin: 0;
}

.ams-faq-item + .ams-faq-item {
    border-top:
        1px solid
        rgba(10, 40, 75, .10);
}

.ams-faq-item summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 62px;

    padding:
        18px
        58px
        18px
        22px;

    color: #07182d;

    cursor: pointer;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;

    list-style: none;
}

.ams-faq-item summary::-webkit-details-marker {
    display: none;
}

.ams-faq-item summary::marker {
    display: none;
}

.ams-faq-item[open] {
    background:
        linear-gradient(
            180deg,
            rgba(238, 247, 255, .9),
            rgba(250, 253, 255, .55)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(8, 124, 240, .22);
}

.ams-faq-item[open] summary {
    color: #087cf0;
}

.ams-faq-toggle {
    position: absolute;
    top: 50%;
    right: 20px;

    width: 20px;
    height: 20px;

    border:
        1.5px solid
        #334b68;

    border-radius: 50%;

    transform: translateY(-50%);
}

.ams-faq-toggle::before,
.ams-faq-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 8px;
    height: 1.5px;

    background: currentColor;

    content: "";

    transform:
        translate(-50%, -50%);
}

.ams-faq-toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.ams-faq-item[open] .ams-faq-toggle {
    color: #fff;
    border-color: #087cf0;
    background: #087cf0;
}

.ams-faq-item[open] .ams-faq-toggle::after {
    opacity: 0;
}

.ams-faq-answer {
    padding:
        0
        58px
        22px
        22px;
}

.ams-faq-answer p {
    max-width: 760px;

    margin: 0;

    color: #5b6c82;

    font-size: 15px;
    line-height: 1.72;
}
