/* Giao diện riêng cho bài viết và bình luận WordPress. */
.pql-single-post {
    padding: clamp(32px, 6vw, 72px) 16px;
    color: #1d2732;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
}

.pql-single-post *,
.pql-single-post *::before,
.pql-single-post *::after {
    box-sizing: border-box;
}

.pql-single-post__article,
.pql-single-comments {
    width: min(100%, 860px);
    margin-inline: auto;
    border: 1px solid var(--pql-xeghep-line);
    border-radius: 16px;
    padding: clamp(22px, 5vw, 48px);
    background: #fff;
    box-shadow: var(--pql-xeghep-shadow);
}

.pql-single-post__category {
    margin-bottom: 12px;
    color: var(--pql-xeghep-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pql-single-post__category a,
.pql-single-post__meta a,
.pql-single-post__footer a {
    color: inherit;
}

.pql-single-post__header h1 {
    margin: 0;
    color: var(--pql-xeghep-navy);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.18;
}

.pql-single-post__meta {
    display: flex;
    gap: 8px 20px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--pql-xeghep-line);
    color: #687382;
    font-size: .88rem;
}

/* Ảnh đại diện bài viết giữ đúng tỷ lệ gốc trên desktop và mobile. */
.pql-single-post__featured {
    margin: 24px 0 0;
    overflow: hidden;
    border-radius: 14px;
    background: #eefaff;
}

.pql-single-post__featured img {
    display: block;
    width: 100%;
    height: auto;
}

.pql-single-post__content {
    padding-top: 18px;
}

.pql-single-post__content :where(h2, h3) {
    color: var(--pql-xeghep-navy);
    line-height: 1.3;
}

.pql-single-post__content h2 {
    margin: 32px 0 12px;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.pql-single-post__content h3 {
    margin: 24px 0 8px;
    font-size: 1.18rem;
}

.pql-single-post__content :where(ul, ol) {
    display: grid;
    gap: 7px;
    margin: 12px 0;
    padding-left: 24px;
}

.pql-single-post__content ul { list-style: disc; }
.pql-single-post__content ol { list-style: decimal; }

.pql-single-post__content blockquote {
    margin: 22px 0;
    border-left: 4px solid var(--pql-xeghep-yellow);
    border-radius: 6px;
    padding: 14px 18px;
    background: #e7f8ff;
}

.pql-single-post__lead {
    color: #30363b;
    font-size: 1.12rem;
}

.pql-single-post__table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pql-single-post__content table {
    width: 100%;
    min-width: 540px;
    border-spacing: 0;
    border-collapse: collapse;
}

.pql-single-post__content :where(th, td) {
    border: 1px solid #c9dfea;
    padding: 11px 13px;
    text-align: left;
}

.pql-single-post__content th {
    background: var(--pql-xeghep-navy);
    color: #fff;
}

.pql-single-post__content tbody tr:nth-child(even) { background: #f4fbfe; }
.pql-single-post__content td:last-child { color: #00a849; font-weight: 800; }

.pql-single-post__hotline {
    margin-top: 24px;
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(135deg, var(--pql-xeghep-blue), var(--pql-xeghep-navy));
    color: #fff;
    text-align: center;
}

.pql-single-post__hotline a { color: var(--pql-xeghep-yellow); font-weight: 800; }

.pql-single-post__content img {
    max-width: 100%;
    height: auto;
}

.pql-single-post__footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--pql-xeghep-line);
    color: #687382;
    font-size: .9rem;
}

.pql-single-comments {
    margin-top: 28px;
}

.pql-single-comments h2 {
    color: var(--pql-xeghep-navy);
    font-size: 1.55rem;
}

.pql-single-comments__list,
.pql-single-comments .children {
    display: grid;
    gap: 18px;
    padding: 0;
    list-style: none;
}

.pql-single-comments .children {
    margin: 18px 0 0 24px;
}

.pql-single-comments .comment-body {
    border-bottom: 1px solid var(--pql-xeghep-line);
    padding-bottom: 18px;
}

.pql-single-comments .comment-author img {
    margin-right: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.pql-single-comments__form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.pql-single-comments__form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
    width: 100%;
    border: 1px solid #bdd9e5;
    border-radius: 6px;
    padding: 11px 13px;
    font: inherit;
}

.pql-single-comments__submit {
    border: 0;
    border-radius: 7px;
    padding: 12px 20px;
    background: var(--pql-xeghep-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.pql-single-post a:focus-visible,
.pql-single-comments a:focus-visible,
.pql-single-comments :where(input, textarea, button):focus-visible {
    outline: 3px solid var(--pql-xeghep-yellow);
    outline-offset: 3px;
}

@media (max-width: 780px) {
    .pql-single-post { padding: 22px 12px; }
    .pql-single-post__article,
    .pql-single-comments { border-radius: 12px; padding: 20px 15px; }
    .pql-single-comments .children { margin-left: 12px; }
}

@media (max-width: 390px) {
    .pql-single-post__header h1 { font-size: 1.8rem; }
    .pql-single-post__content table { min-width: 500px; font-size: .82rem; }
}
