/* FAQ article lead Q&A block imported from Zendesk. */
.faq-article-content > dl:first-child,
.faq-article-content .wp-block-post-content > dl:first-child,
.single-post .faq-article-content dl:first-of-type {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
}

.faq-article-content > dl:first-child dt,
.faq-article-content .wp-block-post-content > dl:first-child dt,
.single-post .faq-article-content dl:first-of-type dt {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0;
    background: var(--q-primary, #1f66d1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

.faq-article-content > dl:first-child dt:nth-of-type(2),
.faq-article-content .wp-block-post-content > dl:first-child dt:nth-of-type(2),
.single-post .faq-article-content dl:first-of-type dt:nth-of-type(2) {
    background: #e9e9e9;
    color: var(--q-text, #333);
}

.faq-article-content > dl:first-child dd,
.faq-article-content .wp-block-post-content > dl:first-child dd,
.single-post .faq-article-content dl:first-of-type dd {
    margin: -0.75rem 0 0;
    padding: 1rem 1.25rem 1.15rem;
    border-radius: 0 0 6px 6px;
    background: color-mix(in srgb, var(--q-primary, #1f66d1) 10%, #fff);
    color: var(--q-text, #333);
    font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.2rem);
    font-weight: 700;
    line-height: 1.75;
}

.faq-article-content > dl:first-child dd:nth-of-type(2),
.faq-article-content .wp-block-post-content > dl:first-child dd:nth-of-type(2),
.single-post .faq-article-content dl:first-of-type dd:nth-of-type(2) {
    background: #f1f1f1;
    font-weight: 500;
}

.faq-article-content > dl:first-child dd > :first-child,
.faq-article-content .wp-block-post-content > dl:first-child dd > :first-child,
.single-post .faq-article-content dl:first-of-type dd > :first-child {
    margin-top: 0;
}

.faq-article-content > dl:first-child dd > :last-child,
.faq-article-content .wp-block-post-content > dl:first-child dd > :last-child,
.single-post .faq-article-content dl:first-of-type dd > :last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .faq-article-content > dl:first-child dt,
    .faq-article-content .wp-block-post-content > dl:first-child dt,
    .single-post .faq-article-content dl:first-of-type dt,
    .faq-article-content > dl:first-child dd,
    .faq-article-content .wp-block-post-content > dl:first-child dd,
    .single-post .faq-article-content dl:first-of-type dd {
        padding-inline: 0.9rem;
    }
}

/* Imported article media: keep inline images inside the readable content column. */
.support-page-content :where(figure, .wp-block-image, .img-link-file, p, div):has(img),
.support-page-content :where(a.img-link-file, .img-link-file a) {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.support-page-content :where(a.img-link-file, .img-link-file a) {
    display: inline-block;
    height: auto !important;
    vertical-align: top;
}

.support-page-content img,
.support-page-content :where(figure, .wp-block-image) img,
.support-page-content :where(a.img-link-file, .img-link-file a) img,
.support-page-content .wp-block-post-content img {
    display: inline-block;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}


/* FAQ articles do not show the single post release date. */
.faq-article-content .questetra-single-post-date {
    display: none;
}
.questetra-faq-section-button {
    margin: 3rem 0 0;
    padding-bottom: 2rem;
}

/* FAQ article main column should not create its own scroll area. */
.faq-single-layout .faq-article-main,
.faq-single-layout .faq-article-content {
    min-width: 0;
}

.faq-single-layout .faq-article-main {
    overflow: visible;
}

.faq-single-layout .faq-article-content {
    overflow: visible;
}

.faq-article-content > :last-child,
.faq-article-content .wp-block-post-content > :last-child,
.faq-article-content .questetra-faq-section-button:last-child {
    margin-block-end: 0 !important;
}

/* FAQ single: do not create an internal scrollbar in the sidebar or article column. */
.faq-single-layout .support-page-sidebar-column {
    max-height: none;
    overflow: visible;
}
@supports (-moz-appearance: none) {
    .faq-single-layout .support-page-sidebar-column {
        scrollbar-width: none;
    }
}

.faq-single-layout .support-page-sidebar-column::-webkit-scrollbar,
.faq-single-layout .faq-article-main::-webkit-scrollbar,
.faq-single-layout .faq-article-content::-webkit-scrollbar {
    display: none;
}

