/**
 * Single Blog Post – layout & typography
 * Scoped to body.single-post so it never leaks into other pages.
 * Note: theme root font-size is 10px (1rem = 10px), so content
 * typography here uses px units to stay readable & predictable.
 */

.blog-single {
  --bs-text: #2b2b35;
  --bs-muted: #62666d;
  --bs-line: #ececef;
  --bs-accent: #e23744;
}

/* ---------- Container ---------- */
.blog-single .blog-single__wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Breadcrumb ---------- */
.blog-single__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--bs-muted);
  margin-bottom: 22px;
}
.blog-single__breadcrumb a {
  color: var(--bs-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.blog-single__breadcrumb a:hover {
  color: var(--bs-accent);
}
.blog-single__breadcrumb .sep {
  color: #c0c2c5;
  margin-inline: 2px;
}
.blog-single__breadcrumb .current {
  color: var(--bs-text);
  font-weight: 600;
}

/* ---------- Header ---------- */
.blog-single__header {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: 28px;
}
.blog-single__title {
  font-size: 34px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--bs-text);
  margin: 0 0 16px;
}
.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--bs-muted);
}
.blog-single__meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-single__meta .meta-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.blog-single__meta .meta-cat {
  background: #fbe9eb;
  color: var(--bs-accent);
  border-radius: 999px;
  padding: 4px 14px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}
.blog-single__meta .meta-cat:hover {
  background: #f6d3d7;
}

/* ---------- Featured image ---------- */
.blog-single__figure {
  margin: 0 0 36px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px -22px rgba(20, 20, 40, 0.35);
  background: #f0f0f1;
}
.blog-single__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

/* ---------- Content card ---------- */
.blog-single__card {
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 22px;
  padding: 44px 52px;
  max-width: 880px;
  margin-inline: auto;
}

/* ---------- Article typography ---------- */
.blog-single__content {
  font-size: 18px;
  line-height: 2.1;
  color: #36363f;
  word-break: break-word;
}
.blog-single__content > *:first-child {
  margin-top: 0;
}
.blog-single__content > *:last-child {
  margin-bottom: 0;
}
.blog-single__content p {
  margin: 0 0 22px;
}
.blog-single__content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--bs-text);
  margin: 40px 0 18px;
  padding-right: 14px;
  border-right: 4px solid var(--bs-accent);
}
.blog-single__content h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--bs-text);
  margin: 34px 0 14px;
}
.blog-single__content h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--bs-text);
  margin: 28px 0 12px;
}
.blog-single__content a {
  color: var(--bs-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 55, 68, 0.35);
  transition: border-color 0.15s ease;
}
.blog-single__content a:hover {
  border-bottom-color: var(--bs-accent);
}
.blog-single__content ul,
.blog-single__content ol {
  margin: 0 0 22px;
  padding-right: 26px;
}
.blog-single__content li {
  margin-bottom: 10px;
}
.blog-single__content ul li::marker {
  color: var(--bs-accent);
}
.blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 12px 0;
}
.blog-single__content figure {
  margin: 28px 0;
}
.blog-single__content figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--bs-muted);
  margin-top: 8px;
}
.blog-single__content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: #f7f7f8;
  border-right: 4px solid var(--bs-accent);
  border-radius: 12px;
  color: var(--bs-text);
  font-size: 18px;
}
.blog-single__content blockquote p:last-child {
  margin-bottom: 0;
}
.blog-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
  overflow: hidden;
  border-radius: 12px;
}
.blog-single__content th,
.blog-single__content td {
  border: 1px solid var(--bs-line);
  padding: 12px 14px;
  text-align: right;
}
.blog-single__content th {
  background: #f7f7f8;
  font-weight: 700;
}
.blog-single__content code {
  background: #f0f0f1;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 15px;
}
.blog-single__content pre {
  background: #1e1e28;
  color: #f5f5f7;
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  margin: 24px 0;
  direction: ltr;
  text-align: left;
}
.blog-single__content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.blog-single__content hr {
  border: 0;
  border-top: 1px solid var(--bs-line);
  margin: 32px 0;
}

/* ---------- Footer (tags / cats) ---------- */
.blog-single__footer {
  max-width: 880px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-single__taxrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.blog-single__taxrow .label {
  font-weight: 700;
  color: var(--bs-text);
  font-size: 15px;
  margin-left: 4px;
}
.blog-single__chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.blog-single__chip:hover {
  transform: translateY(-1px);
}
.blog-single__chip--cat {
  background: #f0f0f1;
  color: #3f4064;
}
.blog-single__chip--tag {
  background: #eef2ff;
  color: #4453c0;
}

/* ---------- Comments ---------- */
.blog-single__comments {
  max-width: 880px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 22px;
  padding: 36px 44px;
}
.blog-single__comments h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bs-text);
  margin: 0 0 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-single__title {
    font-size: 25px;
  }
  .blog-single__card {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .blog-single__content {
    font-size: 16.5px;
    line-height: 2;
  }
  .blog-single__content h2 {
    font-size: 22px;
  }
  .blog-single__content h3 {
    font-size: 19px;
  }
  .blog-single__figure {
    border-radius: 16px;
  }
  .blog-single__comments {
    padding: 24px 18px;
  }
}
