/* QA detail page */
.qa-detail {
    width: 90%;
    padding: 0.5rem 5% 0.8rem;
    overflow: hidden;
}

.qa-detail--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 2rem 5%;
}

.qa-detail__empty-text {
    margin: 0 0 0.6rem;
    font-size: 0.4rem;
    color: #787272;
    font-family: FZLTHJW;
}

.qa-detail__title {
    margin: 0 0 0.45rem;
    font-size: 0.6rem;
    font-family: FZLTCHJW;
    font-weight: normal;
    color: #303030;
    line-height: 1.4;
    text-align: left;
}

.qa-detail__question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.35rem;
    padding: 0.35rem 0.4rem;
    background-color: #F8F8F8;
    border-left: 3px solid #0B769C;
}

.qa-detail__label {
    flex-shrink: 0;
    margin-right: 0.25rem;
    padding: 0.06rem 0.18rem;
    border-radius: 0.08rem;
    background-color: #0B769C;
    color: #fff;
    font-size: 0.26rem;
    font-family: FZLTCHJW;
    line-height: 1.4;
    white-space: nowrap;
}

.qa-detail__question-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.35rem;
    line-height: 1.55;
    color: #4E4E4E;
    font-family: FZLTHJW;
}

.qa-detail__date {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.32rem;
    color: #999999;
    font-family: FZLTHJW;
}

.qa-detail__footer {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E7E7E7;
}

.qa-detail__back {
    display: inline-block;
    margin-bottom: 0.3rem;
    padding: 0.18rem 0.45rem;
    font-size: 0.32rem;
    font-family: FZLTHJW;
    color: #0B769C;
    text-decoration: none;
    border: 1px solid #0B769C;
    border-radius: 0.08rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .qa-detail__back:hover {
        background-color: #0B769C;
        color: #fff;
    }

    .qa-detail__back:focus-visible {
        outline: 2px solid #0B769C;
        outline-offset: 2px;
    }

/* Rich text prose (TinyMCE / Word import) */
.qa-richtext {
    font-family: FZLTHJW;
    font-size: 0.35rem;
    line-height: 1.65;
    color: #787272;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify;
    text-justify: inter-ideograph;
}

    .qa-richtext > *:first-child {
        margin-top: 0;
    }

    .qa-richtext > *:last-child {
        margin-bottom: 0;
    }

    .qa-richtext p {
        margin: 0 0 0.4rem;
        line-height: 1.65;
    }

    .qa-richtext h1,
    .qa-richtext h2,
    .qa-richtext h3,
    .qa-richtext h4,
    .qa-richtext h5,
    .qa-richtext h6 {
        margin: 0.6rem 0 0.25rem;
        font-family: FZLTCHJW;
        font-weight: normal;
        color: #4E4E4E;
        line-height: 1.4;
    }

    .qa-richtext h1 { font-size: 0.52rem; }
    .qa-richtext h2 { font-size: 0.48rem; }
    .qa-richtext h3 { font-size: 0.42rem; }
    .qa-richtext h4 { font-size: 0.38rem; }
    .qa-richtext h5 { font-size: 0.36rem; }
    .qa-richtext h6 { font-size: 0.35rem; }

    .qa-richtext strong,
    .qa-richtext b {
        font-family: FZLTCHJW;
        font-weight: normal;
        color: #4E4E4E;
    }

    .qa-richtext em,
    .qa-richtext i {
        font-style: italic;
    }

    .qa-richtext a {
        color: #0B769C;
        text-decoration: underline;
        text-underline-offset: 0.06rem;
    }

        .qa-richtext a:hover {
            color: #00709A;
        }

    .qa-richtext ul,
    .qa-richtext ol {
        margin: 0 0 0.4rem;
        padding-left: 0.55rem;
    }

    .qa-richtext li {
        margin-bottom: 0.2rem;
        line-height: 1.6;
    }

    .qa-richtext ul li {
        list-style-type: disc;
    }

    .qa-richtext ol li {
        list-style-type: decimal;
    }

    .qa-richtext blockquote {
        margin: 0.4rem 0;
        padding: 0.3rem 0.4rem;
        border-left: 3px solid #B19473;
        background-color: #F8F8F8;
        color: #707070;
    }

    .qa-richtext hr {
        margin: 0.5rem 0;
        border: none;
        border-top: 1px solid #E7E7E7;
    }

    .qa-richtext img,
    .qa-richtext .wscnph {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0.3rem auto;
    }

    .qa-richtext figure {
        margin: 0.3rem 0;
        max-width: 100%;
    }

        .qa-richtext figure img {
            margin: 0 auto;
        }

    .qa-richtext figcaption {
        margin-top: 0.15rem;
        font-size: 0.3rem;
        color: #999999;
        text-align: center;
    }

    .qa-richtext table {
        width: 100%;
        margin: 0.4rem 0;
        border-collapse: collapse;
        font-size: 0.32rem;
    }

    .qa-richtext .qa-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0.4rem 0;
    }

    .qa-richtext th,
    .qa-richtext td {
        padding: 0.2rem 0.25rem;
        border: 1px solid #E7E7E7;
        text-align: left;
        vertical-align: top;
    }

    .qa-richtext th {
        background-color: #F8F8F8;
        font-family: FZLTCHJW;
        color: #4E4E4E;
    }

    .qa-richtext pre {
        margin: 0.4rem 0;
        padding: 0.3rem 0.4rem;
        background-color: #F5F5F5;
        border-radius: 0.08rem;
        overflow-x: auto;
        font-size: 0.3rem;
        line-height: 1.5;
    }

    .qa-richtext code {
        padding: 0.04rem 0.1rem;
        background-color: #F5F5F5;
        border-radius: 0.04rem;
        font-size: 0.9em;
    }

    .qa-richtext pre code {
        padding: 0;
        background: none;
    }

    .qa-richtext span,
    .qa-richtext div {
        max-width: 100%;
    }

    .qa-richtext section {
        display: block;
        line-height: 1.65;
    }

    .qa-richtext sup,
    .qa-richtext sub {
        font-size: 0.75em;
        line-height: 0;
    }

[data-dpr="2"] .qa-detail__title {
    font-size: 45px;
}

[data-dpr="3"] .qa-detail__title {
    font-size: 68px;
}

@media (prefers-reduced-motion: reduce) {
    .qa-detail__back {
        transition: none;
    }
}
