/* Xưởng Làm Mộc — long-form article presentation.
   Enqueued only for editorial posts carrying _xlm_article_id. */

body.single-post .blog-single.page-wrapper {
  background: #f7f5f0;
  padding: clamp(28px, 4vw, 60px) 20px 76px;
}

body.single-post .blog-single > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

body.single-post .blog-single > .row > .large-9.col {
  width: auto;
  max-width: none;
  min-width: 0;
  flex-basis: auto;
  padding: 0;
  border: 0;
}

body.single-post .blog-single > .row > .large-3.col {
  display: block;
  width: auto;
  max-width: none;
  min-width: 0;
  flex-basis: auto;
  padding: 0;
  border: 0;
}

body.single-post .blog-single article.post .article-inner {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7dfd3;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(47, 39, 27, .075);
  padding: 0 clamp(28px, 6vw, 72px) 44px;
}

body.single-post .blog-single article.post .entry-header {
  position: relative;
  margin: 0 calc(-1 * clamp(28px, 6vw, 72px)) 40px;
  padding: clamp(38px, 5vw, 62px) clamp(28px, 6vw, 72px) 44px;
  background: linear-gradient(135deg, #f1ede5 0%, #faf8f4 72%, #f6f0e8 100%);
  border-top: 5px solid #a87350;
  border-bottom: 1px solid #e9e1d5;
}

body.single-post .blog-single article.post .entry-header-text {
  max-width: 780px;
  text-align: left;
}

body.single-post .blog-single article.post .entry-category {
  margin: 0 0 22px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .14em;
  font-weight: 750;
}

body.single-post .blog-single article.post .entry-category a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddcdbb;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #805338;
  text-decoration: none;
}

body.single-post .blog-single article.post .entry-title {
  max-width: 21ch;
  margin: 0;
  color: #263c32;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: clamp(30px, 3.5vw, 45px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -.034em;
  text-wrap: balance;
}

body.single-post .blog-single article.post .entry-divider {
  width: 56px;
  height: 3px;
  margin: 26px 0 18px;
  background: #b7825b;
}

body.single-post .blog-single article.post header .entry-meta {
  color: #746d62;
  text-align: left;
  letter-spacing: .03em;
  text-transform: none;
}

body.single-post .blog-single article.post header .posted-on {
  font-size: 0;
}

body.single-post .blog-single article.post header .posted-on a {
  color: #746d62;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

body.single-post .blog-single article.post header .posted-on a::before {
  content: "Ngày đăng: ";
  color: #805338;
}

body.single-post .blog-single article.post header .posted-on a:has(time.updated:not(.published))::before {
  content: "Cập nhật: ";
}

body.single-post .blog-single article.post header .posted-on a:has(time.updated:not(.published)) time.published {
  display: none;
}

body.single-post .blog-single article.post header .posted-on a time.updated:not(.published) {
  display: inline;
}

body.single-post .blog-single article.post header .byline,
body.single-post .blog-single article.post > .article-inner > footer.entry-meta,
body.single-post .blog-single article.post .entry-author {
  display: none;
}

body.single-post .blog-single article.post .entry-content {
  color: #3c403b;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.82;
  overflow-wrap: break-word;
}

body.single-post .blog-single article.post .entry-content > p {
  margin: 0 0 1.35em;
}

body.single-post .blog-single article.post .entry-content > p:first-child {
  margin-bottom: 28px;
  padding: 4px 0 4px 22px;
  border-left: 4px solid #b7825b;
  color: #283e33;
  font-size: 18.5px;
  line-height: 1.75;
}

body.single-post .blog-single article.post .entry-content strong {
  color: #263c32;
  font-weight: 700;
}

body.single-post .blog-single article.post .entry-content > h2 {
  position: relative;
  margin: 2.3em 0 .78em;
  padding: 27px 0 0;
  border-top: 1px solid #e8e1d6;
  color: #283c31;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: clamp(24px, 2.3vw, 29px);
  font-weight: 750;
  line-height: 1.36;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: pretty;
}

body.single-post .blog-single article.post .entry-content > h2::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 64px;
  height: 3px;
  background: #ad7854;
  content: "";
}

body.single-post .blog-single article.post .entry-content > h3 {
  margin: 1.65em 0 .6em;
  color: #365346;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.42;
  text-transform: none;
}

body.single-post .blog-single article.post .entry-content a:not(.button) {
  color: #87513a;
  text-decoration: underline;
  text-decoration-color: #c8a48b;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

body.single-post .blog-single article.post .entry-content a:not(.button):hover {
  color: #275541;
  text-decoration-color: currentColor;
}

body.single-post .blog-single article.post .entry-content a:focus-visible,
body.single-post .blog-single article.post .navigation-post a:focus-visible {
  outline: 3px solid #bd8155;
  outline-offset: 4px;
}

body.single-post .blog-single article.post .entry-content > ul,
body.single-post .blog-single article.post .entry-content > ol {
  margin: 25px 0 32px;
  padding: 20px 26px 20px 46px;
  border: 1px solid #e0e6da;
  border-radius: 13px;
  background: #f6f8f3;
}

body.single-post .blog-single article.post .entry-content li {
  margin-bottom: .45em;
  line-height: 1.7;
}

body.single-post .blog-single article.post .entry-content li:last-child {
  margin-bottom: 0;
}

body.single-post .blog-single article.post .entry-content blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid #b7825b;
  border-radius: 0 12px 12px 0;
  background: #f8f4ed;
  color: #314638;
  font-size: 1.04em;
}

body.single-post .blog-single article.post .entry-content > div[style*="overflow-x"] {
  max-width: 100%;
  margin: 22px 0 34px;
  border: 1px solid #dfd8ce;
  border-radius: 12px;
  background: #fff;
}

body.single-post .blog-single article.post .entry-content figure:has(> table) {
  max-width: 100%;
  margin: 22px 0 34px;
  overflow-x: auto;
  border: 1px solid #dfd8ce;
  border-radius: 12px;
  background: #fff;
}

body.single-post .blog-single article.post .entry-content figure:has(> table) figcaption {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e1d6;
  background: #f6f3ec;
  color: #586656;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

body.single-post .blog-single article.post .entry-content figure:has(> table) table {
  min-width: 720px;
}

body.single-post .blog-single article.post .entry-content table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 15px;
  line-height: 1.58;
}

body.single-post .blog-single article.post .entry-content th {
  padding: 15px 16px;
  border: 0;
  background: #304b3c;
  color: #fff;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

body.single-post .blog-single article.post .entry-content td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #e8e3da;
  color: #3b423c;
  text-align: left;
  vertical-align: top;
}

body.single-post .blog-single article.post .entry-content tbody th {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #e8e3da;
  background: #f0f3ed;
  color: #2f4a3b;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

body.single-post .blog-single article.post .entry-content tbody tr:nth-child(even) td {
  background: #faf9f6;
}

body.single-post .blog-single article.post .entry-content tbody tr:last-child td {
  border-bottom: 0;
}

body.single-post .blog-single article.post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.single-post .blog-single article.post .entry-content p:has(a[href^="tel:"]) {
  margin: 32px 0;
  padding: 21px 24px;
  border: 1px solid #d9e5d8;
  border-left: 4px solid #55755e;
  border-radius: 0 12px 12px 0;
  background: #f2f7f0;
  color: #2c4333;
}

body.single-post .blog-single article.post .blog-share {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #e8e1d6;
  text-align: left;
}

body.single-post .blog-single article.post .blog-share .is-divider {
  display: none;
}

body.single-post .blog-single article.post .share-icons a {
  border-color: #d9d2c7;
  color: #657065;
}

body.single-post .blog-single article.post .navigation-post {
  margin-top: 34px;
}

body.single-post .blog-single article.post .next-prev-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}

body.single-post .blog-single article.post .next-prev-nav .flex-col {
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid #e7dfd3;
  border-radius: 12px;
  background: #faf8f4;
  text-align: left;
}

body.single-post .blog-single article.post .next-prev-nav a {
  color: #345140;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  text-decoration: none;
}

body.single-post .blog-single article.post .next-prev-nav a:hover {
  color: #87513a;
}

@media (max-width: 959px) {
  body.single-post .blog-single > .row {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }

  body.single-post .blog-single > .row > .large-3.col {
    display: none;
  }
}

@media (max-width: 849px) {
  body.single-post .blog-single.page-wrapper {
    padding: 22px 14px 52px;
  }

  body.single-post .blog-single article.post .article-inner {
    padding: 0 24px 34px;
    border-radius: 14px;
    box-shadow: 0 9px 26px rgba(47, 39, 27, .065);
  }

  body.single-post .blog-single article.post .entry-header {
    margin: 0 -24px 32px;
    padding: 34px 24px 31px;
  }

  body.single-post .blog-single article.post .entry-title {
    max-width: none;
    font-size: clamp(28px, 6.5vw, 36px);
  }

  body.single-post .blog-single article.post .entry-content {
    font-size: 16.5px;
    line-height: 1.76;
  }

  body.single-post .blog-single article.post .entry-content > p:first-child {
    font-size: 17.3px;
    padding-left: 17px;
  }

  body.single-post .blog-single article.post .entry-content > h2 {
    font-size: 24px;
  }

  body.single-post .blog-single article.post .entry-content td,
  body.single-post .blog-single article.post .entry-content th {
    padding: 13px 14px;
  }
}

@media (max-width: 540px) {
  body.single-post .blog-single.page-wrapper {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.single-post .blog-single article.post .article-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.single-post .blog-single article.post .entry-header {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  body.single-post .blog-single article.post .entry-content > h2 {
    font-size: 22px;
  }

  body.single-post .blog-single article.post .entry-content > ul,
  body.single-post .blog-single article.post .entry-content > ol {
    padding: 17px 18px 17px 36px;
  }

  body.single-post .blog-single article.post .next-prev-nav {
    grid-template-columns: 1fr;
  }
}
