/* Shortcode [faq] — accordion med søgning */

.ttd-faq {
    margin: 1rem 0 2rem;
    max-width: 48rem;
    font-family: var(--font-sans, "Open Sans", Arial, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1d2327;
}

.ttd-faq__toolbar {
    margin: 0 0 1.15rem;
}

.ttd-faq__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
}

.ttd-faq__nav-btn {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
}

.ttd-faq__nav-btn:hover {
    border-color: #2271b1;
    color: #135e96;
}

.ttd-faq__nav-btn.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.ttd-faq__search-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.35rem;
}

.ttd-faq__search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    color: inherit;
}

.ttd-faq__search:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.ttd-faq__no-hits,
.ttd-faq__empty {
    margin: 0.75rem 0 0;
    color: #646970;
}

.ttd-faq__group {
    margin: 0 0 1.25rem;
}

.ttd-faq__cat {
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.65rem;
    background: #ececec;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1d2327;
    font-family: inherit;
}

.ttd-faq__item {
    border-bottom: 1px solid #dcdcde;
}

.ttd-faq__item:first-of-type {
    border-top: 1px solid #dcdcde;
}

.ttd-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1.75rem 0.85rem 0;
    font-weight: 600;
    position: relative;
}

.ttd-faq__q::-webkit-details-marker {
    display: none;
}

.ttd-faq__q::after {
    content: "+";
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    font-weight: 500;
    color: #2271b1;
    line-height: 1;
}

.ttd-faq__item[open] > .ttd-faq__q::after {
    content: "–";
}

.ttd-faq__q:hover {
    color: #135e96;
}

.ttd-faq__a {
    padding: 0 0 1rem;
    color: #1d2327;
}

.ttd-faq__a > *:first-child {
    margin-top: 0;
}

.ttd-faq__a > *:last-child {
    margin-bottom: 0;
}

.ttd-faq__a a {
    color: #2271b1;
}

.ttd-faq__a img,
.ttd-faq__a figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.75rem 0;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.ttd-faq__a figure {
    margin: 0.75rem 0;
}

.ttd-faq__item.is-hidden {
    display: none;
}

.ttd-faq__group.is-hidden {
    display: none;
}
