/**
 * Chi tiết bài viết — mục lục thu gọn (style UniWorld).
 */
:root {
  --uw-post-primary: #e63a3b;
  --uw-post-secondary: #0a2540;
  --uw-post-muted: #555555;
  --uw-post-border: #e5e7eb;
  --uw-post-surface: #f5f5f5;
}

.blog-wrapper.blog-single .blog-featured-title {
  display: none !important;
}

.blog-wrapper.blog-single .uw-post-head {
  margin: 0 0 2rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--uw-post-border);
  text-align: left;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.blog-wrapper.blog-single .uw-post-bc,
.blog-wrapper.blog-single .uw-post-bc p,
.blog-wrapper.blog-single .uw-post-bc .rank-math-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--uw-post-muted);
}

.blog-wrapper.blog-single .uw-post-bc a {
  color: var(--uw-post-muted);
  text-decoration: none;
}

.blog-wrapper.blog-single .uw-post-bc a:hover {
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-bc strong,
.blog-wrapper.blog-single .uw-post-bc .last {
  color: var(--uw-post-secondary);
  font-weight: 600;
}

.blog-wrapper.blog-single .uw-post-cat {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 12px;
  border: 1px solid var(--uw-post-border);
  border-left: 4px solid var(--uw-post-primary);
  background: #f8f9fa;
  color: var(--uw-post-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.blog-wrapper.blog-single .uw-post-cat:hover {
  border-color: var(--uw-post-primary);
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-title {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--uw-post-secondary);
}

.blog-wrapper.blog-single .uw-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--uw-post-muted);
}

.blog-wrapper.blog-single .uw-post-meta strong {
  color: var(--uw-post-secondary);
  font-weight: 700;
}

.blog-wrapper.blog-single .uw-post-meta__cat {
  color: var(--uw-post-primary) !important;
}

.blog-wrapper.blog-single .uw-post-body {
  margin-top: 0;
}

.blog-wrapper.blog-single .uw-post-body > .uw-post-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--uw-post-border);
  border-left: 4px solid var(--uw-post-primary);
  border-radius: 4px;
  background: var(--uw-post-surface);
  text-align: left;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.blog-wrapper.blog-single .uw-post-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-wrapper.blog-single .uw-post-toc__title-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uw-post-secondary);
  transition: color 0.2s;
}

.blog-wrapper.blog-single .uw-post-toc__title-btn:hover {
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-toc__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-toc__collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--uw-post-border);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--uw-post-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.blog-wrapper.blog-single .uw-post-toc__collapse-btn:hover {
  border-color: var(--uw-post-primary);
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-toc__chevron {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s;
}

.blog-wrapper.blog-single .uw-post-toc:not(.uw-post-toc--open) .uw-post-toc__chevron {
  transform: rotate(180deg);
}

.blog-wrapper.blog-single .uw-post-toc__list {
  margin: 0.875rem 0 0;
  padding: 0.875rem 0 0;
  list-style: none;
  border-top: 1px solid var(--uw-post-border);
}

.blog-wrapper.blog-single .uw-post-toc:not(.uw-post-toc--open) .uw-post-toc__list {
  display: none;
}

.blog-wrapper.blog-single .uw-post-toc__list > li {
  margin: 0 0 0.5rem;
}

.blog-wrapper.blog-single .uw-post-toc__list > li:last-child {
  margin-bottom: 0;
}

.blog-wrapper.blog-single .uw-post-toc__list > li.is-h2 {
  font-weight: 600;
  color: var(--uw-post-secondary);
}

.blog-wrapper.blog-single .uw-post-toc__list > li.is-h3 {
  padding-left: 1.25rem;
  font-weight: 400;
  color: var(--uw-post-muted);
}

.blog-wrapper.blog-single .uw-post-toc__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  line-height: 1.45;
  text-decoration: none;
  color: inherit;
  font-size: 0.75rem;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .blog-wrapper.blog-single .uw-post-toc__title-btn {
    font-size: 0.875rem;
  }

  .blog-wrapper.blog-single .uw-post-toc__list a {
    font-size: 0.875rem;
  }
}

.blog-wrapper.blog-single .uw-post-toc__list a:hover,
.blog-wrapper.blog-single .uw-post-toc__list a.is-active {
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .uw-post-toc__num {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--uw-post-primary);
}

.blog-wrapper.blog-single .entry-author.author-box {
  display: none !important;
}

/* PublishPress Authors: logo tác giả không vuông — không ép height cố định (override inline PP) */
.blog-wrapper.blog-single .pp-multiple-authors-boxes-wrapper .pp-author-boxes-avatar .avatar-image,
.blog-wrapper.blog-single .pp-multiple-authors-boxes-wrapper .pp-author-boxes-avatar .avatar-image img {
  height: auto !important;
}

.blog-wrapper.blog-single .uw-post-article h2,
.blog-wrapper.blog-single .uw-post-article h3 {
  scroll-margin-top: 120px;
}

.blog-wrapper.blog-single .uw-quote-banner {
  margin-top: 28px;
  margin-bottom: 8px;
}

.blog-wrapper.blog-single .post-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.blog-wrapper.blog-single .post-sidebar .uw-page-sidebar {
  position: static;
}

@media (max-width: 960px) {
  .blog-wrapper.blog-single .post-sidebar {
    position: static;
    margin-top: 28px;
  }
}

@media (max-width: 549px) {
  .blog-wrapper.blog-single .uw-post-body > .uw-post-toc {
    padding: 0.75rem 0.875rem;
    margin-bottom: 1.25rem;
  }
}
