/*
 * Single Post (news detail) — article column + related posts.
 * Design source: Figma 407:51207 (desktop), 407:52607 (mobile).
 *
 * Structure:
 *   1. Page base
 *   2. 2-col layout (article + sidebar)
 *   3. Article header
 *   4. Article body (.iw-prose typography)
 *   5. Article tags section
 *   6. Related posts (Swiper)
 *   7. Sidebar — TOC widget
 *   8. Sidebar — Share row (shared base + sidebar variant)
 *   9. Sidebar — TOC nav (JS-built)
 *  10. Sidebar — Related products widget
 *  11. Mobile extras (inline section below body)
 *  12. Share row — inline variant (mobile)
 *  13. Related products — inline variant (mobile)
 *  14. FAB — TOC trigger (mobile)
 *  15. Bubble drawer (TOC popup từ FAB)
 *  16. Responsive overrides (@media — desc theo width)
 */

/* ─── 1. Page base ────────────────────────────────────────── */

.iw-article-page {
  background: #ffffff;
  font-family: inherit;
  color: #181d27;
  -webkit-font-smoothing: antialiased;
}

/* ─── 2. 2-col layout: article + sidebar (Figma 407:51233) ── */

.iw-article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px var(--iw-container-pad-x) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
  box-sizing: border-box;
}

.iw-article {
  background: transparent;
  min-width: 0; /* allow body to shrink inside grid track */
}

.iw-article .iw-article__inner {
  max-width: 1024px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── 3. Article header ───────────────────────────────────── */

.iw-article__header {
  margin-bottom: 24px;
}

.iw-article__meta {
  margin: 0 0 16px;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #888888;
}
.iw-article__meta-sep { margin: 0 6px; color: #d1d1d1; }

.iw-article__title {
  margin: 0 0 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: #181d27;
  letter-spacing: -0.02em;
}

.iw-article__lead {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #4a4a4a;
}

.iw-article__featured {
  margin: 0 0 32px;
}
.iw-article__featured-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ─── 4. Article body — `.iw-prose` typography ────────────── */

.iw-prose {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.7;
  color: #3d3d3d;
}
.iw-prose > * + * { margin-top: 24px; }

.iw-prose h2 {
  margin-top: 48px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: #181d27;
}
.iw-prose h3 {
  margin-top: 40px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: #181d27;
}
.iw-prose h4 {
  margin-top: 32px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: #181d27;
}

.iw-prose p { margin: 0; }

.iw-prose a {
  color: var(--iw-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iw-prose a:hover { text-decoration-thickness: 2px; }

.iw-prose strong { font-weight: 700; color: #181d27; }
.iw-prose em { font-style: italic; }

.iw-prose ul,
.iw-prose ol {
  margin: 0;
  padding-left: 24px;
}
.iw-prose ul li,
.iw-prose ol li {
  margin-bottom: 8px;
}

.iw-prose blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--iw-accent);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: #181d27;
  font-style: normal;
}

.iw-prose img,
.iw-prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.iw-prose figure { margin: 32px 0; }
.iw-prose figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #888888;
  text-align: center;
}

.iw-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.iw-prose th,
.iw-prose td {
  padding: 12px 16px;
  border: 1px solid #e7e7e7;
  text-align: left;
  font-size: 16px;
}
.iw-prose th {
  background: #f7f7f8;
  font-weight: 700;
}

.iw-prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f7f7f8;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}
.iw-prose pre {
  padding: 16px 20px;
  border-radius: 8px;
  background: #181d27;
  color: #f7f7f8;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.iw-prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ─── 5. Article tags section (Figma 407:51373) ──────────── */
/* Heading "Chủ đề" + chip list (end of post). */

.iw-article__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.iw-article__tags-title {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #181d27;
}

.iw-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.iw-article__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f7f7f8;
  color: #3d3d3d;
  font-family: inherit;
  font-weight: 510;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.12s, color 0.12s;
}
.iw-article__tag:hover {
  background: var(--iw-accent-soft);
  color: var(--iw-accent);
}

/* ─── 6. Related posts (Swiper) ───────────────────────────── */

.iw-article-related {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #ffffff;
  border-top: 1px solid #e7e7e7;
}

.iw-article-related .iw-article-related__inner {
  max-width: var(--iw-container-max);
  margin: 0 auto;
  padding: 56px var(--iw-container-pad-x) 72px;
  box-sizing: border-box;
}

.iw-article-related__title {
  margin: 0 0 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #181d27;
}

/* Slider wrapper hosts the Swiper track + the floating prev/next buttons. */
.iw-article-related__slider-wrap {
  position: relative;
}

.iw-article-related__slider {
  /* Swiper handles widths via inline style; we just clip overflow. */
  overflow: hidden;
}

.iw-article-related__slide {
  height: auto;
  display: flex;
}
.iw-article-related__slide > .iw-news-card { flex: 1 1 auto; }

/* Prev/next nav — circular icon buttons floating outside the slider track
   (Figma 407:51574). Hidden when Swiper says no overflow. */
.iw-article-related__nav {
  position: absolute;
  top: calc(50% - 28px); /* offset for typography below image */
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #d1d1d1;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, opacity 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Chevron tách sang ::before + mask → tô màu accent theo scheme mà không
   ảnh hưởng nền trắng của nút. */
.iw-article-related__nav::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--iw-accent, #4564ed);
  -webkit-mask: no-repeat center / 16px 16px;
          mask: no-repeat center / 16px 16px;
}
.iw-article-related__nav:hover {
  border-color: var(--iw-accent);
}
.iw-article-related__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.iw-article-related__nav--prev {
  left: -25px;
}
.iw-article-related__nav--prev::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M10 12 6 8l4-4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M10 12 6 8l4-4'/></svg>");
}
.iw-article-related__nav--next {
  right: -25px;
}
.iw-article-related__nav--next::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4l4 4-4 4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4l4 4-4 4'/></svg>");
}

/* ─── 7. Sidebar (Figma 407:51404 + 407:51443) ────────────── */

.iw-article-sidebar {
  position: sticky;
  top: 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* Figma sidebar inset: pl-24 from grid gap. */
  padding-left: 24px;
  font-family: inherit;
  border-left: 1px solid #e7e7e7;
}

/* ─── 8. Sidebar — TOC widget ─────────────────────────────── */

.iw-article-toc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── 9. Sidebar — Share row (shared base + sidebar variant) ── */

/* Share row: shared base — used trong cả sidebar và mobile inline. Variants
   `--sidebar` (nằm trong TOC box, divider dưới) và `--inline` (mobile khối
   standalone, không divider — xem section 12). */
.iw-article-share {
  display: flex;
  align-items: center;
  gap: 16px;
}
.iw-article-share--sidebar {
  /* Divider line below the share row (Figma 407:51412). */
  padding-bottom: 16px;
  border-bottom: 1px solid #e7e7e7;
}
.iw-article-share__label {
  font-family: inherit;
  font-weight: 590;
  font-size: 16px;
  line-height: 22px;
  color: #3d3d3d;
}
.iw-article-share__icons {
  display: inline-flex;
  align-items: center;
  /* Inner gap khớp Figma 407:51407 (icon group 72w, mỗi btn 32w → gap 8). */
  gap: 8px;
}

.iw-article-share__btn {
  /* Both share buttons share the exact same box: 32×32 pill, bg #f7f7f8,
     icon 16×16 currentColor inside. Default gray, blue on hover.
     Resets below override Flatsome's `button` element styles
     (margin-bottom, min-height, line-height). Scoped to our class only. */
  appearance: none;
  margin: 0;
  min-height: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  background: #f7f7f8;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #3d3d3d;
  transition: background-color 0.12s, color 0.12s;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
}
.iw-article-share__btn:hover {
  color: var(--iw-accent);
  background: var(--iw-accent-soft);
}
.iw-article-share__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* "Đã sao chép!" tooltip popping above the copy button. */
.iw-article-share__btn--copy::after {
  content: "Đã sao chép!";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #181d27;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.iw-article-share__btn--copy.is-copied::after { opacity: 1; }

.iw-article-toc__title {
  margin: 0;
  padding: 8px 0 16px;
  border-bottom: 1px solid #e7e7e7;
  font-family: inherit;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #3d3d3d;
}

/* ─── 10. Sidebar — TOC nav (JS-built) ────────────────────── */

.iw-article-toc__nav {
  margin-top: 0;
  /* Scroll riêng trong nav khi list quá dài; sidebar không stretch theo. */
  max-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}
.iw-article-toc__nav::-webkit-scrollbar { width: 4px; }
.iw-article-toc__nav::-webkit-scrollbar-track { background: transparent; }
.iw-article-toc__nav::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 2px; }
.iw-article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.iw-article-toc__list .iw-article-toc__item {
  margin: 0;
  padding: 0;
}
.iw-article-toc__item--lvl3 { padding-left: 16px; }

.iw-article-toc__link {
  display: block;
  padding: 8px 16px;
  border-left: 3px solid transparent;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #888888;
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s, font-weight 0.12s;
}
.iw-article-toc__link:hover { color: var(--iw-accent); }
.iw-article-toc__link.is-active {
  color: #3d3d3d;
  border-left-color: var(--iw-accent);
  font-weight: 590;
}

/* ─── 11. Sidebar — Related products widget (Figma 407:51443) ──── */

.iw-article-products {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.iw-article-products__title {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7e7e7;
  font-family: inherit;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #3d3d3d;
}

.iw-article-products__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.iw-article-products__list .iw-article-products__item {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.iw-article-products__media {
  display: block;
  width: 124px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f7f8;
}
.iw-article-products__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iw-article-products__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.iw-article-products__name {
  margin: 0;
  font-family: inherit;
  font-weight: 590;
  font-size: 16px;
  line-height: 22px;
  color: #3d3d3d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iw-article-products__name a {
  color: inherit;
  text-decoration: none;
}
.iw-article-products__name a:hover { color: var(--iw-accent); }

.iw-article-products__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.iw-article-products__price-label {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #888888;
}
.iw-article-products__price-value {
  font-family: inherit;
  font-weight: 590;
  font-size: 14px;
  line-height: 20px;
  color: var(--iw-price, var(--iw-accent, #4564ed));
  white-space: nowrap;
}

/* ─── 12. Mobile extras (inline section below body) ──────── */
/* Inline section dưới article body chứa share + related products. Hidden
   trên desktop (sidebar lo phần này). Visibility toggle ở section 16. */

.iw-article-mobile-extras {
  display: none;
}
.iw-article-mobile-extras__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

/* ─── 13. Share row — inline variant (Figma 407:52798) ───── */
/* Mobile: Share label + icons trên 1 hàng, không divider. */
.iw-article-share--inline {
  /* Inherit base flex; chỉ thêm padding-top tách block share với products. */
  padding-top: 16px;
  border-top: 1px solid #e7e7e7;
}

/* ─── 14. Related products — inline variant (Figma 407:52837) ──── */
/* Mobile: heading 24px Bold, list ngang dạng card horizontal (image trái 124×100
   + text phải). Khác sidebar: image rounded-4 (sidebar cũng 4), gap 16 giữa items. */
.iw-article-products--inline .iw-article-products__title {
  /* Bỏ divider của sidebar variant; gap đã có trên __inner wrapper. */
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 24px;
  line-height: 32px;
  color: #181d27;
}
.iw-article-products--inline .iw-article-products__list {
  gap: 16px;
}
.iw-article-products--inline .iw-article-products__item {
  /* Per Figma 407:52840: image 124.4 + gap 12 + text fill */
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.iw-article-products--inline .iw-article-products__name {
  font-size: 16px;
  line-height: 22px;
}
.iw-article-products--inline .iw-article-products__price {
  /* Figma stack price-label trên price-value, line-height 20 cả 2. */
  gap: 2px;
}

/* ─── 15. FAB — TOC trigger button (Figma 407:52660) ───── */
/* Floating circular button anchor top-right viewport. Hidden ≥820 — visibility
   toggle ở section 16. */

.iw-article-toc-fab {
  display: none;
  position: fixed;
  /* Đặt top dưới header (~80px theo header IW), right padding-x. */
  top: 96px;
  right: 16px;
  z-index: 1000;
}

.iw-article-toc-fab__btn {
  /* Reset Flatsome button defaults (margin-bottom, min-height, line-height,
     box-shadow, text-shadow, font-size). Scope to our class only. */
  appearance: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  font-size: 0;
  text-shadow: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #ffffff;
  color: #3d3d3d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* Stack 3 shadow layers per Figma "Shadown Popup". */
  box-shadow: 0 3px 3px -1.5px rgba(10,13,18,0.04),
              0 8px 8px -4px rgba(10,13,18,0.03),
              0 20px 24px -4px rgba(10,13,18,0.08);
  transition: color 0.12s, transform 0.12s;
}
.iw-article-toc-fab__btn:hover { color: var(--iw-accent); background: #ffffff; }
.iw-article-toc-fab__btn:active { transform: scale(0.96); }
.iw-article-toc-fab__btn > svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── 16. Bubble drawer (TOC popup từ FAB) ────────────────── */
/* Per screenshot: bubble nhỏ floating top-right, không full-screen, không
   backdrop. Header "Nội dung bài viết" + close button + scrollable list. */

.iw-article-toc-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  box-shadow: 0 3px 3px -1.5px rgba(10,13,18,0.04),
              0 8px 8px -4px rgba(10,13,18,0.03),
              0 20px 24px -4px rgba(10,13,18,0.08);
  overflow: hidden;
  font-family: inherit;
}
.iw-article-toc-drawer[hidden] { display: none; }

.iw-article-toc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e7e7e7;
  flex: 0 0 auto;
}
.iw-article-toc-drawer__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #181d27;
}
.iw-article-toc-drawer__title svg { flex: 0 0 18px; }

.iw-article-toc-drawer__close {
  appearance: none;
  margin: 0;
  min-height: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s;
}
.iw-article-toc-drawer__close:hover { color: #3d3d3d; }

.iw-article-toc-drawer__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}
.iw-article-toc-drawer__nav::-webkit-scrollbar { width: 4px; }
.iw-article-toc-drawer__nav::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 2px; }

/* Drawer reuse cùng list/item/link classes của sidebar TOC — tránh
   duplicate styling. Override font-size 14 (compact hơn sidebar 16). */
.iw-article-toc-drawer__nav .iw-article-toc__link {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
}

/* ─── 17. Responsive overrides ────────────────────────────── */
/* Cascade order: rộng → hẹp. */

/* Tablet 820-1023: sidebar thu nhỏ + gap giảm để body không quá hẹp. */
@media (max-width: 1023px) and (min-width: 820px) {
  .iw-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
}

/* ≤991: typography + related-posts mobile + news-card override. */
@media (max-width: 991px) {
  .iw-article-layout {
    padding: 24px var(--iw-container-pad-x) 24px;
  }
  .iw-article .iw-article__inner {
    padding: 0;
  }

  .iw-article__title {
    font-size: 24px;
    line-height: 1.3;
  }

  .iw-article__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .iw-prose {
    font-size: 16px;
    line-height: 1.65;
  }
  .iw-prose h2 { font-size: 22px; margin-top: 32px; }
  .iw-prose h3 { font-size: 18px; margin-top: 28px; }
  .iw-prose blockquote { font-size: 18px; padding-left: 16px; }

  .iw-article-related .iw-article-related__inner {
    padding: 32px var(--iw-container-pad-x) 40px;
  }
  .iw-article-related__title {
    font-size: 24px;
    line-height: 32px;
  }
  /* Mobile: hide nav buttons — touch swipe handles slider nav. */
  .iw-article-related__nav { display: none; }

  /* Override news-card compact horizontal-row reflow inside related slider —
     Figma 407:52895 mobile cards stay VERTICAL (image top + text below) trong
     swiper. Cards width Swiper auto-tính theo slidesPerView. */
  .iw-article-related .iw-news-card--compact {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .iw-article-related .iw-news-card--compact .iw-news-card__media {
    flex: 0 0 auto;
    width: 100%;
    height: 96px;
    border-radius: 8px;
  }
  .iw-article-related .iw-news-card--compact .iw-news-card__title {
    font-weight: 590;
    font-size: 14px;
    line-height: 20px;
  }
}

/* ≤819: mobile main — sidebar hidden + inline extras + FAB hiện + tag heading nhỏ.
   NOTE: gộp từ 4 block `@media (max-width: 819px)` cũ — tags-title, layout grid,
   mobile-extras display, FAB display. Cùng breakpoint, không có selector trùng. */
@media (max-width: 819px) {
  /* Tags heading nhỏ lại. */
  .iw-article__tags-title {
    font-size: 24px;
    line-height: 32px;
  }

  /* Layout 1-col + ẩn sidebar (mobile dùng FAB + inline extras). */
  .iw-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  /* Hide sidebar dưới 820px (mobile uses bookmark icon inline + recent posts
     at bottom — not rendered yet). Tablet 820-1199 vẫn hiện sidebar. */
  .iw-article-sidebar { display: none; }

  /* Mobile inline extras hiện. */
  .iw-article-mobile-extras { display: block; }

  /* FAB hiện. */
  .iw-article-toc-fab { display: block; }
}
