/*
 * YHN 4.0 — Editorial (Blog Archive /tin-tuc/, Single Post) & Trust/Policy Pages Visual System
 * Quiet Ruby (#b5175b) harmonization + Vietnamese Be Vietnam Pro typography + structural bug fixes:
 *   1. Blog Archive (/tin-tuc/): Breadcrumb, Mobile search/chips horizontal inset, Quiet Ruby filter pills & badges.
 *   2. Single Post: Fixes Desktop x=0 left-alignment bug, hides empty .post-sidebar, fixes broken Vietnamese serif
 *      diacritics, tightens prose measure to ~72ch, fixes table first-col & mobile caption clipping, adds Author Card
 *      & 3-card Related Posts grid, and harmonizes TOC / blockquote / comments to Quiet Ruby.
 *   3. All 9 Trust / Guide / Editorial / Policy Pages (#yhn-trust-main): Quiet Ruby palette unification (kills
 *      bronze vs neon-pink mismatch), tighter Hero H1 + Last-Updated meta pill, comfortable ~72ch reading measure,
 *      Mobile table first-column padding fix, Mobile wrapping breadcrumb, and policy callout boxes.
 */

/* =========================================================
   1. BLOG ARCHIVE (/tin-tuc/ & EDITORIAL CATEGORIES/TAGS)
   ========================================================= */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium {
  --yhn-editorial-accent: var(--yhn-brand) !important;
  --yhn-editorial-ink: var(--yhn-ink) !important;
  --yhn-editorial-muted: var(--yhn-muted) !important;
  --yhn-editorial-line: var(--yhn-line) !important;
  --yhn-editorial-canvas: var(--yhn-surface) !important;
  --yhn-editorial-accent-soft: var(--yhn-brand-soft) !important;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html body.yhn-redesign-40 .yhn-ed-breadcrumb {
  max-width: 1080px;
  margin: 0 auto 8px;
  padding: 14px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--yhn-muted);
}

html body.yhn-redesign-40 .yhn-ed-breadcrumb a {
  color: var(--yhn-muted) !important;
  text-decoration: none;
}

html body.yhn-redesign-40 .yhn-ed-breadcrumb a:hover {
  color: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .page-title,
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .post-title {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Crisp Quiet Ruby Search Bar + Submit Button on /tin-tuc/ Blog Archive */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search.yhn-editorial-search {
  max-width: 680px !important;
  margin: 0 auto 12px !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search .yhn-editorial-search__field {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 5px 4px 14px !important;
  min-height: 46px !important;
  border-radius: var(--yhn-radius-pill) !important;
  border: 1px solid var(--yhn-line) !important;
  background: #ffffff !important;
  box-shadow: var(--yhn-shadow-sm) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search .yhn-editorial-search__field:focus-within {
  border-color: var(--yhn-brand) !important;
  box-shadow: 0 0 0 3px var(--yhn-brand-soft) !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .tintuc-post-search.yhn-editorial-search input.yhng-search-input,
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search input.yhng-search-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 14px !important;
  color: var(--yhn-ink) !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .tintuc-post-search.yhn-editorial-search .yhn-editorial-search__icon,
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search .yhn-editorial-search__icon {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--yhn-muted) !important;
  flex-shrink: 0 !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search button.yhn-editorial-search__submit {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  min-height: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: var(--yhn-radius-pill) !important;
  background: var(--yhn-brand) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .tintuc-post-search button.yhn-editorial-search__submit:hover {
  background: var(--yhn-brand-hover) !important;
}

/* Suggestion chips: crisp Quiet Ruby pills instead of plain underlined text */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .yhng-smart-chips > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px 8px !important;
  color: var(--yhn-muted) !important;
  font-size: 12.5px !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .yhng-smart-chips a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: var(--yhn-radius-pill) !important;
  border: 1px solid var(--yhn-brand-border) !important;
  background: var(--yhn-brand-soft) !important;
  color: var(--yhn-brand) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .yhng-smart-chips a:hover {
  background: var(--yhn-brand) !important;
  border-color: var(--yhn-brand) !important;
  color: #ffffff !important;
}

/* Soft Quiet Ruby date badge (replaces bright pink Flatsome token) */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .badge.post-date .badge-inner {
  border-color: var(--yhn-brand-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--yhn-brand) !important;
}

/* Keep card images crisp with warm placeholder surface */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .box.box-blog-post .box-image {
  background: var(--yhn-surface-2) !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .box.box-blog-post .box-image img {
  opacity: 1 !important;
}

/* Pagination Quiet Ruby */
html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .page-number.current {
  border-color: var(--yhn-brand) !important;
  background: var(--yhn-brand) !important;
  color: #ffffff !important;
}

html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive a.page-number:hover {
  border-color: var(--yhn-brand-border) !important;
  background: var(--yhn-brand-soft) !important;
  color: var(--yhn-brand) !important;
}

/* Mobile Blog Archive: fix 0px edge-flush search bar & chips */
@media (max-width: 849px) {
  html body.yhn-redesign-40 .yhn-ed-breadcrumb {
    padding: 12px 16px 0 !important;
    font-size: 12px;
  }

  html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .tintuc-post-search,
  html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .yhng-smart-chips {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }

  html body.yhn-redesign-40.yhn-editorial-archive-quiet-premium .blog-wrapper.blog-archive .yhng-smart-chips > div {
    justify-content: flex-start !important;
  }
}

/* =========================================================
   2. SINGLE BLOG POST — CENTERED LAYOUT, VIETNAMESE FONT, TABLES & AUTHOR/RELATED
   ========================================================= */
html body.yhn-redesign-40.single-post {
  --yhn-editorial-ink: var(--yhn-ink) !important;
  --yhn-editorial-body: #3d3734 !important;
  --yhn-editorial-muted: var(--yhn-muted) !important;
  --yhn-editorial-line: var(--yhn-line) !important;
  --yhn-editorial-accent: var(--yhn-brand) !important;
  --yhn-editorial-accent-hover: var(--yhn-brand-hover) !important;
  --yhn-editorial-reading: 720px !important;
  --yhn-editorial-media: 860px !important;
}

/* P0 FIX: Center Single Post container & remove empty sidebar dead space */
html body.yhn-redesign-40.single-post #content.blog-wrapper.blog-single {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  background: var(--yhn-surface) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .yhn-post-breadcrumb-row {
  max-width: 920px !important;
  width: 100% !important;
  margin: 4px auto 14px !important;
  padding-inline: 20px !important;
  box-sizing: border-box !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .yhn-post-breadcrumb-row > .col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single > .row.row-large.row-divided,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single > .row:not(.yhn-post-breadcrumb-row) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 960px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
  box-sizing: border-box !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single > .row > .large-9.col {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 920px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  border-right: 0 !important;
}

/* Collapse empty .post-sidebar so it never leaves blank space or drops below comments */
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .post-sidebar:has(#secondary:empty),
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .post-sidebar:not(:has(.widget)) {
  display: none !important;
}

/* P0 FIX: Vietnamese-complete Be Vietnam Pro font across all editorial headings & quotes */
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single h1,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single h2,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single h3,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single h4,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single blockquote,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-title {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-title {
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.24 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--yhn-ink) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-category a {
  color: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-divider.is-divider.small {
  background: var(--yhn-brand) !important;
}

/* Reading time + updated date meta strip */
.yhn-ed-post-meta {
  max-width: var(--yhn-editorial-reading);
  margin: 0 auto 22px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  border-radius: var(--yhn-radius-md);
  background: var(--yhn-bg);
  border: 1px solid var(--yhn-line);
  font-size: 12.5px;
  color: var(--yhn-muted);
}

.yhn-ed-post-meta a {
  color: var(--yhn-brand) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.yhn-ed-post-meta a:hover {
  text-decoration: underline !important;
}

/* Harmonize custom details.yhn-toc & blockquote to Quiet Ruby */
html body.yhn-redesign-40.single-post details.yhn-toc {
  max-width: var(--yhn-editorial-reading) !important;
  margin: 22px auto 26px !important;
  border: 1px solid var(--yhn-line) !important;
  border-radius: var(--yhn-radius-lg) !important;
  background: var(--yhn-bg) !important;
  box-shadow: var(--yhn-shadow-sm) !important;
}

html body.yhn-redesign-40.single-post details.yhn-toc summary,
html body.yhn-redesign-40.single-post details.yhn-toc .yhn-toc__badge {
  color: var(--yhn-ink) !important;
}

html body.yhn-redesign-40.single-post details.yhn-toc a:hover {
  color: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single blockquote {
  background: var(--yhn-bg) !important;
  border: 1px solid var(--yhn-line) !important;
  border-left: 3px solid var(--yhn-brand) !important;
  border-radius: 0 10px 10px 0 !important;
}

/* P1 FIX: Comparison table first-column clipping (Desktop) & caption clipping (Mobile) */
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table {
  max-width: var(--yhn-editorial-media) !important;
  border-color: var(--yhn-line) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table th,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table td {
  padding: 12px 15px !important;
  border-bottom-color: var(--yhn-line) !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table th:first-child,
html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table td:first-child {
  padding-left: 16px !important;
}

html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table caption {
  caption-side: top !important;
  text-align: left !important;
  padding: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--yhn-muted) !important;
  white-space: normal !important;
}

@media (max-width: 849px) {
  html body.yhn-redesign-40.single-post .blog-wrapper.blog-single .entry-content table caption {
    position: sticky !important;
    left: 0 !important;
    max-width: calc(100vw - 44px) !important;
  }
}

/* Quiet Ruby Author / Editorial Trust Card */
.yhn-ed-author-card {
  max-width: var(--yhn-editorial-reading);
  margin: 32px auto 28px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--yhn-bg);
  border: 1px solid var(--yhn-line);
  border-left: 3px solid var(--yhn-brand);
  border-radius: var(--yhn-radius-lg);
  box-shadow: var(--yhn-shadow-sm);
}

.yhn-ed-author-card__badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yhn-brand-soft);
  border: 1px solid var(--yhn-brand-border);
  color: var(--yhn-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yhn-ed-author-card__eyebrow {
  margin: 0 0 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: var(--yhn-brand) !important;
}

.yhn-ed-author-card__body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--yhn-ink);
}

.yhn-ed-author-card__body > p:not(.yhn-ed-author-card__eyebrow) {
  margin: 0 0 10px !important;
  font-size: 13.5px !important;
  line-height: 1.62 !important;
  color: var(--yhn-muted) !important;
}

.yhn-ed-author-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.yhn-ed-author-card__links a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--yhn-brand) !important;
  text-decoration: none !important;
}

.yhn-ed-author-card__links a:hover {
  color: var(--yhn-brand-hover) !important;
  text-decoration: underline !important;
}

/* 3-card Related Posts Grid */
.yhn-ed-related {
  max-width: var(--yhn-editorial-media);
  margin: 34px auto 12px;
  padding-top: 26px;
  border-top: 1px solid var(--yhn-line);
}

.yhn-ed-related__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yhn-brand);
}

.yhn-ed-related__head h2 {
  margin: 0 0 18px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--yhn-ink) !important;
}

.yhn-ed-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.yhn-ed-related__card {
  display: flex;
  flex-direction: column;
  background: var(--yhn-bg);
  border: 1px solid var(--yhn-line);
  border-radius: var(--yhn-radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.yhn-ed-related__card:hover {
  transform: translateY(-2px);
  border-color: var(--yhn-brand-border);
  box-shadow: var(--yhn-shadow-md);
}

.yhn-ed-related__thumb {
  aspect-ratio: 16 / 10;
  background: var(--yhn-surface-2);
  overflow: hidden;
}

.yhn-ed-related__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.yhn-ed-related__body {
  padding: 13px 14px 15px;
}

.yhn-ed-related__date {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  color: var(--yhn-muted);
}

.yhn-ed-related__body h3 {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.44 !important;
  font-weight: 600 !important;
  color: var(--yhn-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yhn-ed-related__card:hover .yhn-ed-related__body h3 {
  color: var(--yhn-brand) !important;
}

/* Harmonize Comments Form (replaces raw Flatsome gray #f2f2f2 + neon pink submit) */
html body.yhn-redesign-40.single-post #comments.comments-area {
  max-width: var(--yhn-editorial-reading) !important;
  width: 100% !important;
  margin: 28px auto 0 !important;
}

html body.yhn-redesign-40.single-post #comments .comment-respond {
  background: var(--yhn-bg) !important;
  border: 1px solid var(--yhn-line) !important;
  border-radius: var(--yhn-radius-lg) !important;
  padding: 24px 26px !important;
  box-shadow: var(--yhn-shadow-sm) !important;
}

html body.yhn-redesign-40.single-post #comments .comment-reply-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--yhn-ink) !important;
  margin-bottom: 12px !important;
}

html body.yhn-redesign-40.single-post #comments input[type="text"],
html body.yhn-redesign-40.single-post #comments input[type="email"],
html body.yhn-redesign-40.single-post #comments input[type="url"],
html body.yhn-redesign-40.single-post #comments textarea {
  background: var(--yhn-surface) !important;
  border: 1px solid var(--yhn-line) !important;
  border-radius: var(--yhn-radius-md) !important;
  box-shadow: none !important;
}

html body.yhn-redesign-40.single-post #comments input:focus,
html body.yhn-redesign-40.single-post #comments textarea:focus {
  background: #ffffff !important;
  border-color: var(--yhn-brand) !important;
  box-shadow: 0 0 0 3px var(--yhn-brand-soft) !important;
}

html body.yhn-redesign-40.single-post #comments input#submit,
html body.yhn-redesign-40.single-post #comments .form-submit input[type="submit"] {
  background: var(--yhn-brand) !important;
  border-color: var(--yhn-brand) !important;
  color: #ffffff !important;
  border-radius: var(--yhn-radius-md) !important;
  min-height: 44px !important;
  padding-inline: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  box-shadow: var(--yhn-shadow-brand) !important;
}

html body.yhn-redesign-40.single-post #comments input#submit:hover {
  background: var(--yhn-brand-hover) !important;
}

@media (max-width: 849px) {
  html body.yhn-redesign-40.single-post .blog-wrapper.blog-single > .row:not(.yhn-post-breadcrumb-row) {
    padding-inline: 0 !important;
  }

  .yhn-ed-author-card {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .yhn-ed-author-card__badge {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .yhn-ed-related__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  html body.yhn-redesign-40.single-post #comments .comment-respond {
    padding: 18px 16px !important;
  }
}

/* =========================================================
   2B. BLOG-TO-SHOP CONVERSION BRIDGE (RELATED PRODUCTS + SHORTCODE)
   ========================================================= */
.yhn-ed-products {
  max-width: var(--yhn-editorial-media, 860px);
  margin: 28px auto 0;
  padding: 20px 22px 22px;
  background: var(--yhn-bg);
  border: 1px solid var(--yhn-line);
  border-radius: var(--yhn-radius-lg);
  box-shadow: var(--yhn-shadow-sm);
}

.yhn-ed-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.yhn-ed-products__eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yhn-brand);
}

.yhn-ed-products__head h2 {
  margin: 0 !important;
  font-size: clamp(17px, 1.8vw, 21px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--yhn-ink) !important;
}

.yhn-ed-products__more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--yhn-brand) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.yhn-ed-products__more:hover {
  color: var(--yhn-brand-hover) !important;
  text-decoration: underline !important;
}

.yhn-ed-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.yhn-ed-product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--yhn-line);
  border-radius: var(--yhn-radius-md);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.yhn-ed-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--yhn-brand-border);
  box-shadow: var(--yhn-shadow-md);
}

.yhn-ed-product-card__thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
  border-bottom: 1px solid #f4efe9;
  overflow: hidden;
}

.yhn-ed-product-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.yhn-ed-product-card__body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.yhn-ed-product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--yhn-ink) !important;
  text-decoration: none !important;
}

.yhn-ed-product-card:hover .yhn-ed-product-card__title {
  color: var(--yhn-brand) !important;
}

.yhn-ed-product-card__price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--yhn-brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yhn-ed-product-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--yhn-radius-md);
  background: var(--yhn-brand-soft);
  border: 1px solid var(--yhn-brand-border);
  color: var(--yhn-brand) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.yhn-ed-product-card__cta:hover {
  background: var(--yhn-brand);
  border-color: var(--yhn-brand);
  color: #ffffff !important;
}

/* Inline [yhn_product] shortcode card inside article body */
.yhn-ed-inline-products {
  max-width: var(--yhn-editorial-reading, 720px);
  margin: 22px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yhn-ed-inline-product {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--yhn-brand-border);
  border-radius: var(--yhn-radius-md);
  box-shadow: var(--yhn-shadow-sm);
}

.yhn-ed-inline-product__thumb {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--yhn-surface);
  border: 1px solid var(--yhn-line);
  border-radius: 10px;
  overflow: hidden;
}

.yhn-ed-inline-product__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.yhn-ed-inline-product__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yhn-ed-inline-product__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yhn-brand);
}

.yhn-ed-inline-product__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--yhn-ink) !important;
  text-decoration: none !important;
}

.yhn-ed-inline-product__title:hover {
  color: var(--yhn-brand) !important;
}

.yhn-ed-inline-product__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--yhn-brand);
  font-variant-numeric: tabular-nums;
}

.yhn-ed-inline-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--yhn-radius-md);
  background: var(--yhn-brand);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: var(--yhn-shadow-brand);
}

.yhn-ed-inline-product__cta:hover {
  background: var(--yhn-brand-hover);
  color: #ffffff !important;
}

@media (max-width: 849px) {
  .yhn-ed-products {
    padding: 18px 14px;
  }

  .yhn-ed-products__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yhn-ed-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .yhn-ed-product-card__body {
    padding: 9px 9px 10px;
  }

  .yhn-ed-product-card__price {
    font-size: 12px;
  }

  .yhn-ed-product-card__cta {
    padding: 0 8px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .yhn-ed-inline-product {
    grid-template-columns: 72px 1fr;
    padding: 12px;
  }

  .yhn-ed-inline-product__cta {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   3. TRUST / GUIDE / EDITORIAL / POLICY PAGES (#yhn-trust-main)
   ========================================================= */
html body.yhn-redesign-40.yhn-trust-page {
  --yhn-accent: var(--yhn-brand) !important;
  --yhn-ink: #1a1715 !important;
  --yhn-muted: #5c5550 !important;
  --yhn-line: #e8e0d8 !important;
  --yhn-soft: var(--yhn-brand-soft) !important;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main {
  background: var(--yhn-surface) !important;
  padding: 20px 0 64px !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero {
  background: linear-gradient(135deg, #ffffff 0%, #faf7f4 60%, var(--yhn-brand-soft) 100%) !important;
  border-color: var(--yhn-line) !important;
  border-radius: 20px !important;
  padding: 36px 42px !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero:before {
  border-color: rgba(181, 23, 91, 0.08) !important;
  box-shadow: 0 0 0 60px rgba(181, 23, 91, 0.025), 0 0 0 120px rgba(181, 23, 91, 0.015) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-eyebrow,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-toc__title {
  color: var(--yhn-brand) !important;
}

/* Tighter, cleaner Hero H1 (keeps /gioi-thieu/ & content comfortably above the fold) */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero h1 {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: clamp(26px, 3vw, 40px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 12px !important;
  color: var(--yhn-ink) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-lead {
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  color: var(--yhn-muted) !important;
}

.yhn-trust-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
}

.yhn-trust-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--yhn-radius-pill);
  background: #ffffff;
  border: 1px solid var(--yhn-line);
  font-size: 12px;
  font-weight: 500;
  color: var(--yhn-muted);
}

.yhn-trust-hero__pill strong {
  color: var(--yhn-ink);
  font-weight: 600;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero__mark {
  border-left-color: var(--yhn-brand-border) !important;
  color: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero__mark small {
  color: var(--yhn-brand) !important;
  opacity: 0.78;
}

/* Uniform Quiet Ruby top accent bars across ALL context cards (fixes bronze vs neon-pink mismatch) */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-context__card {
  background: #ffffff !important;
  border-color: var(--yhn-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--yhn-shadow-sm) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-context--flow .yhn-trust-context__card:before,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-context--principles .yhn-trust-context__card:before,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--editorial .yhn-trust-context--flow .yhn-trust-context__card:before {
  background: var(--yhn-brand) !important;
  height: 2.5px !important;
  opacity: 0.88 !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-context__card > span,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--editorial .yhn-trust-context--flow .yhn-trust-context__card > span {
  background: var(--yhn-brand-soft) !important;
  border: 1px solid var(--yhn-brand-border) !important;
  color: var(--yhn-brand) !important;
  border-radius: var(--yhn-radius-pill) !important;
  padding: 3px 10px !important;
  align-self: flex-start !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--support .yhn-contact-grid > a:before,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--support .yhn-contact-grid > div:before {
  background: var(--yhn-brand) !important;
}

/* Comfortable ~72ch Reading Measure inside Trust/Policy Article Card */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article {
  border-color: var(--yhn-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--yhn-shadow-sm) !important;
  color: #3d3734 !important;
  padding: 40px 48px !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > p,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > ul:not(.yhn-2col-list),
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > ol,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > h2,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > h3,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article > blockquote {
  max-width: 72ch;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--brand .yhn-trust-article h2 + ul,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--brand .yhn-trust-article h2 + ol,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--support .yhn-trust-article h2 + ul,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--support .yhn-trust-article h2 + ol,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--editorial .yhn-trust-article h2 + ul,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--editorial .yhn-trust-article h2 + ol {
  max-width: 100% !important;
  background: var(--yhn-surface) !important;
  border-color: var(--yhn-line) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article h2,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article h3 {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--yhn-ink) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-main--guide .yhn-trust-article h2:before {
  background: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article a {
  color: var(--yhn-brand) !important;
  text-decoration-color: rgba(181, 23, 91, 0.35) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article a:hover {
  color: var(--yhn-brand-hover) !important;
  text-decoration-color: var(--yhn-brand-hover) !important;
}

/* Policy callout boxes (blockquote & #yhn-shipping-details summary) */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article blockquote,
html body.yhn-redesign-40.yhn-trust-page #yhn-shipping-details {
  background: var(--yhn-surface) !important;
  border: 1px solid var(--yhn-line) !important;
  border-left: 3px solid var(--yhn-brand) !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 18px 20px !important;
  margin: 24px 0 !important;
  color: var(--yhn-ink) !important;
}

/* Table cell padding fix (prevents 0px left flush text on /huong-dan-mua-hang-van-chuyen/ mobile) */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table {
  border-color: var(--yhn-line) !important;
  background: #ffffff !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table th {
  background: var(--yhn-surface) !important;
  color: var(--yhn-ink) !important;
  font-weight: 700 !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table th,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table td {
  padding: 12px 14px !important;
  border-bottom-color: var(--yhn-line) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table th:first-child,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table td:first-child {
  padding-left: 16px !important;
}

/* Sticky TOC & Related cards Quiet Ruby hover + stacked related heading */
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin-bottom: 16px !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related .yhn-trust-eyebrow {
  margin: 0 !important;
  white-space: nowrap !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related h2 {
  margin: 0 !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-toc__inner,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related__grid a {
  border-color: var(--yhn-line) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-toc a:hover,
html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related__grid b {
  color: var(--yhn-brand) !important;
}

html body.yhn-redesign-40.yhn-trust-page .yhn-trust-related__grid a:hover {
  border-color: var(--yhn-brand-border) !important;
}

/* Mobile Trust/Policy Fixes: clean wrapping breadcrumb (fixes /gioi-thieu/ clipping) + table scroll safety */
@media (max-width: 849px) {
  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-breadcrumb {
    white-space: normal !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    row-gap: 4px !important;
    line-height: 1.45 !important;
  }

  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-hero {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }

  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  /* Keep list bullets comfortably inset inside Mobile Trust/Contact cards (fixes /lien-he/ flush bullets) */
  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article ul,
  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article ol {
    padding-left: 20px !important;
    margin-left: 0 !important;
  }

  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table th,
  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table th:first-child,
  html body.yhn-redesign-40.yhn-trust-page .yhn-trust-article table td:first-child {
    padding-left: 14px !important;
  }
}
