/* FacialMasks SEO Q&A public layout — v1.1.3. Scoped to FMQ Q&A pages only. */
body.single-fmq_qa .site-content {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Q&A title area. */
body.single-fmq_qa .entry-header,
body.single-fmq_qa .article-head,
body.single-fmq_qa .post-title,
body.single-fmq_qa .entry-title {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

body.single-fmq_qa .entry-title {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.2;
}

body.single-fmq_qa .entry-title::before {
    content: "FACIALMASKS.COM BEAUTY GUIDE";
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .12em;
    color: #66746e;
}

/* Remove blog-author styling only from FMQ Q&A pages. */
body.single-fmq_qa .entry-meta,
body.single-fmq_qa .article-meta {
    display: none;
}

/* The plugin owns this wrapper, so the readable measure works regardless of theme markup. */
body.single-fmq_qa .fmq-article {
    width: 100%;
    max-width: 780px;
    margin: 30px auto 0;
    font-size: 16px;
    line-height: 1.72;
    color: #26302c;
}

body.single-fmq_qa .fmq-article > :first-child {
    margin-top: 0;
}

body.single-fmq_qa .fmq-article > p:first-child {
    position: relative;
    margin-bottom: 34px;
    padding: 50px 26px 22px;
    border: 1px solid #e2e8e4;
    border-radius: 14px;
    background: #f7faf8;
    font-size: 17px;
    line-height: 1.68;
}

body.single-fmq_qa .fmq-article > p:first-child::before {
    content: "QUICK ANSWER";
    position: absolute;
    top: 18px;
    left: 26px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
    color: #166044;
}

body.single-fmq_qa .fmq-article h2,
body.single-fmq_qa .fmq-article h3 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: #17231f;
    line-height: 1.3;
}

body.single-fmq_qa .fmq-article h2 {
    font-size: 24px;
}

body.single-fmq_qa .fmq-article h3 {
    font-size: 20px;
}

body.single-fmq_qa .fmq-article p,
body.single-fmq_qa .fmq-article ul,
body.single-fmq_qa .fmq-article ol {
    margin-bottom: 18px;
}

/* Commerce section: visually separate content from shopping without changing matching logic. */
body.single-fmq_qa .fmq-related,
.fmq-product-qa {
    width: 100%;
    max-width: 1060px;
    margin: 54px auto 0;
    padding-top: 34px;
    border-top: 1px solid #e2e6e4;
}

body.single-fmq_qa .fmq-section-head {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: left;
}

body.single-fmq_qa .fmq-section-head h2,
body.single-fmq_qa .fmq-topics h3 {
    margin: 6px 0 8px;
    color: #17231f;
    line-height: 1.25;
}

body.single-fmq_qa .fmq-section-head h2 {
    font-size: 25px;
}

body.single-fmq_qa .fmq-section-head p {
    margin: 0;
    color: #66706c;
}

.fmq-kicker {
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    color: #166044;
}

.fmq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.fmq-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e7e5;
    border-radius: 12px;
    background: #fff;
}

.fmq-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #fafafa;
}

.fmq-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fmq-card-body {
    padding: 14px 14px 16px;
}

.fmq-card-title {
    display: block;
    min-height: 42px;
    color: #202925;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    text-decoration: none;
}

.fmq-card-title:hover {
    text-decoration: underline;
}

.fmq-card-price {
    margin-top: 8px;
    font-weight: 700;
}

body.single-fmq_qa .fmq-topics,
body.single-fmq_qa .fmq-note,
body.single-fmq_qa .fmq-disclaimer {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

body.single-fmq_qa .fmq-topics {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #e8ebe9;
}

body.single-fmq_qa .fmq-topics h3 {
    font-size: 21px;
}

.fmq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fmq-chip {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dfe4e1;
    border-radius: 999px;
    background: #fff;
    color: #37433e;
    text-decoration: none;
}

.fmq-chip:hover {
    border-color: #b7c5be;
    background: #f7faf8;
}

.fmq-note {
    padding: 18px 20px;
    border-radius: 10px;
    background: #f7f8f7;
    color: #66706c;
}

.fmq-disclaimer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eceeed;
    font-size: 13px;
    line-height: 1.55;
    color: #737b77;
}

@media (max-width: 900px) {
    .fmq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.single-fmq_qa .site-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.single-fmq_qa .fmq-article {
        margin-top: 22px;
        font-size: 15px;
    }

    body.single-fmq_qa .fmq-article > p:first-child {
        padding: 46px 18px 18px;
        font-size: 16px;
    }

    body.single-fmq_qa .fmq-article > p:first-child::before {
        left: 18px;
    }

    body.single-fmq_qa .fmq-article h2 {
        font-size: 21px;
    }

    body.single-fmq_qa .fmq-related {
        margin-top: 40px;
        padding-top: 28px;
    }

    body.single-fmq_qa .fmq-section-head h2 {
        font-size: 22px;
    }

    .fmq-grid {
        gap: 12px;
    }

    .fmq-card-media {
        padding: 10px;
    }

    .fmq-card-body {
        padding: 11px 11px 13px;
    }

    .fmq-card-title {
        min-height: 0;
        font-size: 13px;
    }
}
