/* Farma Lab Kimia — Editorial Blog Archive & Rich Article Stylesheet */

:root {
  --editorial-radius: 16px;
  --editorial-radius-sm: 11px;
  --editorial-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
  --editorial-shadow-hover: 0 16px 38px rgba(10, 37, 64, 0.12);
  --editorial-surface-soft: #f4f7fb;
  --editorial-border: #dce6ee;
}

/* 1. Dark Navy Gradient Hero Breadcrumb Banner */
.articles-hero-banner {
  position: relative;
  overflow: hidden;
  padding: 42px 0 40px;
  background: linear-gradient(
    108deg,
    var(--hero-start, #08203c) 0%,
    var(--hero-middle, #0a2747) 54%,
    var(--hero-end, #0c3f59) 100%
  );
  color: #ffffff;
  text-align: center;
  border-bottom: 1px solid rgba(165, 243, 252, 0.18);
}

.articles-hero-banner::before,
.articles-hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(125, 211, 252, 0.14);
}

.articles-hero-banner::before {
  width: 540px;
  height: 540px;
  top: -280px;
  inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(0, 94, 184, 0.16) 0%, transparent 68%);
}

.articles-hero-banner::after {
  width: 440px;
  height: 440px;
  bottom: -240px;
  inset-inline-end: -90px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.18) 0%, transparent 68%);
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.articles-hero-banner .eyebrow {
  color: var(--hero-accent, #7dd3fc) !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.articles-hero-banner .seo-breadcrumbs {
  justify-content: center;
  margin: 0 0 6px;
  color: rgba(226, 236, 244, 0.78) !important;
  font-size: 12px;
}

.articles-hero-banner .seo-breadcrumbs a {
  color: #bae6fd !important;
  text-decoration: none;
}

.articles-hero-banner .seo-breadcrumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.articles-hero-banner .seo-breadcrumbs [aria-current="page"] {
  color: #ffffff !important;
  font-weight: 600;
}

.articles-hero-banner h1,
.articles-hero-title {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(24px, 3.3vw, 34px);
  line-height: 1.45;
  font-weight: 800;
}

.articles-hero-banner #articles-lead {
  max-width: 680px;
  margin: 4px 0 0;
  color: rgba(226, 236, 244, 0.88) !important;
  font-size: 14.5px;
  line-height: 1.9;
}

.articles-hero-banner .back-to-articles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(165, 243, 252, 0.35);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.articles-hero-banner .back-to-articles:hover {
  background: rgba(0, 94, 184, 0.28);
  transform: translateY(-1px);
}

/* Override page-articles padding cleanly */
body.articles-page .articles-main {
  padding: 36px 0 72px;
}

/* 2. Two-Column Responsive Layout (Main Content + Sticky Sidebar) */
.articles-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}

.articles-main-col {
  min-width: 0;
}

.articles-sidebar {
  min-width: 0;
  position: sticky;
  top: 126px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--editorial-border);
  border-radius: var(--editorial-radius);
  padding: 18px;
  box-shadow: var(--editorial-shadow);
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf2f6;
  color: var(--navy, #0a2540);
  font-size: 14.5px;
  font-weight: 800;
}

.sidebar-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--cyan, #005eb8);
  flex-shrink: 0;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--editorial-radius-sm);
  background: #f6f9fc;
  color: #31485e;
  font: 600 12.5px/1.5 "Vazirmatn", sans-serif;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-cat-btn:hover {
  background: #edf0fc;
  border-color: #d4daf4;
  color: var(--navy, #0a2540);
}

.sidebar-cat-btn.is-active {
  background: var(--navy, #0a2540);
  border-color: var(--navy, #0a2540);
  color: #ffffff;
}

.sidebar-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-cat-btn.is-active .sidebar-cat-count {
  background: rgba(125, 211, 252, 0.24);
  color: #7dd3fc;
}

.sidebar-popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-popular-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 6px;
  margin: -6px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease;
}

.sidebar-popular-item:hover {
  background: #f2f7fc;
}

.sidebar-popular-item img {
  display: block;
  width: 74px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #eaf3fb;
}

.sidebar-popular-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-popular-item-copy b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--navy, #0a2540);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.sidebar-popular-item-copy small {
  color: var(--muted, #738294);
  font-size: 10.5px;
}

.sidebar-cta-card {
  border-radius: var(--editorial-radius);
  padding: 20px;
  background: linear-gradient(145deg, #0a2540 0%, #192d78 100%);
  color: #ffffff;
  box-shadow: var(--editorial-shadow);
}

.sidebar-cta-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #ffffff;
}

.sidebar-cta-card p {
  margin: 0 0 14px;
  color: #d2daf0;
  font-size: 12px;
  line-height: 1.85;
}

.sidebar-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-cta-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-cta-primary {
  background: var(--cyan, #005eb8);
  color: #0a2747;
}

.sidebar-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 3. Archive Search Bar & 3-Column Card Grid */
.articles-search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  background: #f4f5fc;
  border: 1px solid var(--editorial-border);
  border-radius: var(--editorial-radius);
}

.articles-search-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.articles-search-heading b {
  color: var(--navy, #0a2540);
  font-size: 14px;
}

.articles-search-heading span {
  color: var(--muted, #738294);
  font-size: 12px;
}

.articles-search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: min(100%, 300px);
  max-width: 470px;
}

.articles-search-input-wrap {
  position: relative;
  flex: 1;
}

.articles-search-input-wrap svg {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #7c8d9f;
  pointer-events: none;
}

body.articles-page .articles-search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid #cbd7e2 !important;
  border-radius: 10px;
  background: #ffffff !important;
  color: var(--ink) !important;
  font: 12.5px "Vazirmatn", sans-serif;
}

.articles-mobile-cat-pills {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0 12px;
  margin-bottom: 10px;
}

.articles-mobile-cat-pills .sidebar-cat-btn {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 7px 12px;
}

.public-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.public-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-border) !important;
  border-radius: var(--editorial-radius);
  background: #ffffff !important;
  box-shadow: var(--editorial-shadow);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--editorial-shadow-hover);
  border-color: #c5cde8 !important;
}

.public-article-card > img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #edf0fc;
  transition: transform 0.35s ease;
}

.public-article-card:hover > img {
  transform: scale(1.025);
}

.public-article-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.public-article-card-cat {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0fe;
  color: #035388;
  font-size: 11px;
  font-weight: 700;
}

.public-article-card h2 {
  margin: 10px 0 8px;
  color: var(--navy, #0a2540) !important;
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 800;
}

.public-article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  margin: 2px 0 10px;
  border-top: 1px solid #eef3f7;
  border-bottom: 1px solid #eef3f7;
  color: #6b7d8f;
  font-size: 11px;
}

.public-article-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.public-article-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  min-height: 66px;
  color: #5b6e81 !important;
  font-size: 12.5px;
  line-height: 1.85;
}

.card-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #edf6fc;
  border: 1px solid #d3d8f5;
  color: #035388;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.public-article-card:hover .card-read-more {
  background: var(--navy, #0a2540);
  border-color: var(--navy, #0a2540);
  color: #ffffff;
}

/* 4. Single Article Detail Container & Header */
.public-article {
  max-width: none;
  margin: 0;
  padding: 28px 34px 40px;
  border-radius: 18px;
  border: 1px solid var(--editorial-border) !important;
  background: #ffffff !important;
  box-shadow: var(--editorial-shadow);
}

.public-article-cover-wrap {
  margin: 0 0 22px;
}

.public-article #public-article-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 0;
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.08);
}

.public-article-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f6;
}

.public-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #f2f7fc;
  border: 1px solid #e2ebf2;
  font-size: 12px;
  color: #465d73;
}

.public-article-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-article-meta-pill.is-category {
  padding: 3px 11px;
  border-radius: 999px;
  background: #eceffe;
  color: #176269;
  font-weight: 700;
}

.public-article-meta-pill svg {
  width: 15px;
  height: 15px;
  color: var(--cyan, #005eb8);
}

.public-article h1 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.5;
  color: var(--navy, #0a2540) !important;
}

.public-article-excerpt {
  margin: 0;
  padding: 15px 18px;
  border-radius: 12px;
  border-inline-start: 4px solid var(--cyan, #005eb8);
  border-right: 4px solid var(--cyan, #005eb8);
  background: #edf6fc !important;
  color: #27445d !important;
  font-size: 14.5px;
  line-height: 2;
  font-weight: 500;
}

/* 5. Styled Table of Contents Box */
.article-toc {
  margin: 22px 0 30px;
  border-radius: 15px;
  border: 1px solid #d7e3ec;
  background: #fafcfe;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.04);
}

.article-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: var(--navy, #0a2540);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.article-toc-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc-head svg {
  width: 17px;
  height: 17px;
  color: #7dd3fc;
}

.article-toc-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(165, 243, 252, 0.2);
  color: #bae6fd;
  font-size: 11px;
}

.article-toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
}

.article-toc-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e4ecf2;
  color: #16296b !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.article-toc-list a:hover {
  border-color: var(--cyan, #005eb8);
  background: #f2f3fe;
  transform: translateX(-2px);
}

.article-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e6f4fb;
  color: #035388;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* 6. Deep Rich Body Typography & Components */
.public-article-body {
  color: #2d4256;
  font-size: 15px;
  line-height: 2.15;
}

.public-article-body h2,
.public-article-body h3,
.public-article-body h4 {
  scroll-margin-top: 150px;
}

.public-article-body h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  padding-top: 22px;
  border-top: 1px solid #edf2f6;
  font-size: clamp(19.5px, 2.2vw, 23.5px);
  line-height: 1.5;
  font-weight: 800;
  color: var(--navy, #0a2540) !important;
}

.public-article-body h2:first-child {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.public-article-body h2::before {
  content: "";
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan, #005eb8), #0a2540);
  flex-shrink: 0;
}

.public-article-body h3 {
  margin: 24px 0 10px;
  font-size: clamp(16.5px, 1.8vw, 19px);
  font-weight: 800;
  color: #10345c !important;
}

.public-article-body p {
  margin: 0 0 16px;
}

.public-article-body bdi[dir="ltr"],
.public-article-body code {
  unicode-bidi: isolate;
  font-family: "DM Sans", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.public-article-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #f0f5f9;
  color: #0a2747;
  font-size: 0.9em;
}

/* Custom Editorial List Styling */
.public-article-body ul {
  margin: 14px 0 22px;
  padding: 0;
  list-style: none;
}

.public-article-body ul > li {
  position: relative;
  padding-inline-start: 22px;
  padding-block: 8px;
  border-bottom: 1px solid #f0f4f8;
}

.public-article-body ul > li:last-child {
  border-bottom: 0;
}

.public-article-body ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan, #005eb8);
}

.public-article-body ol {
  margin: 14px 0 22px;
  padding-inline-start: 24px;
}

.public-article-body ol > li {
  padding-block: 5px;
}

/* Editorial Figures (16:9 In-Body Images) */
.article-figure {
  margin: 24px 0 28px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--editorial-border);
  background: #fafcfd;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.05);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 10px 16px;
  background: #f4f5fc;
  border-top: 1px solid #e3ebf1;
  color: #4b6175;
  font-size: 12.5px;
  line-height: 1.75;
  text-align: center;
}

/* Callout / Warning / Tip Boxes */
.article-callout {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: 13px;
  border: 1px solid #dce2f0;
  border-inline-start: 5px solid var(--cyan, #005eb8);
  background: #f4f4fe;
  color: #1c286b;
}

.article-callout.is-warning {
  border-color: #f3d7a3;
  border-inline-start-color: #d97706;
  background: #fffaf0;
  color: #54370e;
}

.article-callout.is-navy {
  border-color: #cfdbe8;
  border-inline-start-color: var(--navy, #0a2540);
  background: #f3f6fb;
  color: #0a2540;
}

.callout-title {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Numbered Step Checklist Cards */
.article-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.article-step-card {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #dce6ee;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.04);
}

.article-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: #eceffe;
  color: #035388;
  font-size: 13px;
  font-weight: 800;
}

.article-step-card h4 {
  margin: 0 0 7px !important;
  font-size: 14px !important;
  color: var(--navy, #0a2540) !important;
}

.article-step-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: #4b6176;
}

/* 7. Accessible Responsive Tables (modern-web-guidance) */
.sb-table-wrap {
  container-type: inline-size;
  container-name: article-table;
  overflow-x: auto;
  max-width: 100%;
  margin: 24px 0 28px;
  border: 1px solid var(--editorial-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.04);
}

.sb-table-wrap:focus-visible {
  outline: 2px solid var(--cyan, #005eb8);
  outline-offset: 2px;
}

.sb-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.sb-table-wrap caption {
  padding: 12px 16px;
  background: #f4f5fc;
  border-bottom: 1px solid var(--editorial-border);
  color: var(--navy, #0a2540);
  font-size: 13.5px;
  font-weight: 800;
  text-align: right;
}

.sb-table-wrap thead th {
  padding: 11px 13px;
  background: var(--navy, #0a2540);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}

.sb-table-wrap thead th:last-child {
  border-inline-end: 0;
}

.sb-table-wrap tbody tr:nth-child(even) {
  background: #f6fafe;
}

.sb-table-wrap tbody th,
.sb-table-wrap tbody td {
  padding: 10px 13px;
  border-bottom: 1px solid #eaf0f5;
  vertical-align: middle;
}

.sb-table-wrap tbody th bdi[dir="ltr"],
.sb-table-wrap tbody td bdi[dir="ltr"] {
  white-space: nowrap;
}

.sb-table-wrap tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: #ffffff;
  color: var(--navy, #0a2540);
  font-weight: 700;
}

.sb-table-wrap tbody tr:nth-child(even) th {
  background: #f6fafe;
}

.tier-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tier-badge.is-green {
  background: #e5f6ed;
  color: #166534;
}

.tier-badge.is-amber {
  background: #fef3c7;
  color: #92400e;
}

.tier-badge.is-red {
  background: #fee2e2;
  color: #991b1b;
}

@container article-table (width < 600px) {
  .sb-table-wrap thead {
    display: none;
  }

  .sb-table-wrap table,
  .sb-table-wrap caption,
  .sb-table-wrap tbody,
  .sb-table-wrap tr,
  .sb-table-wrap th,
  .sb-table-wrap td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sb-table-wrap tbody tr {
    margin: 10px;
    width: auto;
    border: 1px solid #dde7ef;
    border-radius: 11px;
    overflow: hidden;
    background: #ffffff;
  }

  .sb-table-wrap tbody tr:nth-child(even) {
    background: #fafcfe;
  }

  .sb-table-wrap tbody th {
    position: static;
    background: #eef5f8 !important;
    border-bottom: 1px solid #dce6ee;
    font-size: 13.5px;
  }

  .sb-table-wrap tbody td {
    display: grid;
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    font-size: 12.5px;
  }

  .sb-table-wrap tbody td[data-col-label]::before {
    content: attr(data-col-label);
    color: #5b7186;
    font-weight: 700;
    font-size: 11.5px;
  }
}

/* 8. Native FAQ Accordion (modern-web-guidance) */
.article-faq {
  margin: 34px 0 28px;
}

.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-faq-item {
  border: 1px solid var(--editorial-border);
  border-radius: 13px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-faq-item[open] {
  border-color: #b8d7ee;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.05);
}

.article-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--navy, #0a2540);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.article-faq-item > summary::-webkit-details-marker {
  display: none;
}

.article-faq-item > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan, #005eb8);
  border-bottom: 2px solid var(--cyan, #005eb8);
  transform: rotate(45deg);
  transition: transform 0.24s ease;
  flex-shrink: 0;
  margin-inline-end: 4px;
}

.article-faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

.article-faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid #f0f4f7;
  color: #3b5166;
  font-size: 13.5px;
  line-height: 2;
}

.article-faq-answer p {
  margin: 12px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .article-faq-item {
    interpolate-size: allow-keywords;
  }

  .article-faq-item::details-content {
    overflow: clip;
    contain: layout;
    block-size: 0;
    transition: block-size 0.28s ease, content-visibility 0.28s ease allow-discrete;
  }

  .article-faq-item[open]::details-content {
    block-size: auto;
  }
}

/* 9. Related Products Grid Inside Single Article */
.article-related-products {
  margin: 34px 0 24px;
  padding: 20px;
  border-radius: 16px;
  background: #f2f7fc;
  border: 1px solid var(--editorial-border);
}

.article-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.article-related-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 18px !important;
}

.article-related-head a {
  color: var(--link-color, #035388);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

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

.article-product-mini {
  display: flex;
  flex-direction: column;
  padding: 13px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #dde7ef;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-product-mini:hover {
  transform: translateY(-3px);
  border-color: var(--cyan, #005eb8);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
}

.article-product-mini-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf5f9;
  color: #24347a;
  font-size: 10.5px;
  font-weight: 700;
}

.article-product-mini b {
  display: block;
  margin-bottom: 4px;
  color: var(--navy, #0a2540);
  font-size: 13px;
  line-height: 1.5;
}

.article-product-mini small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted, #738294);
  font-size: 11px;
}

.article-product-mini span.mini-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #035388;
  font-size: 11.5px;
  font-weight: 700;
}

/* 10. Tags & Share Action Bar */
.public-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.public-article-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef6f6 !important;
  color: #035388 !important;
  font-size: 11.5px;
  font-weight: 600;
}

.public-article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4ecf2;
}

.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid #d8e0ef;
  background: #ffffff;
  color: var(--navy, #0a2540);
  font: 600 12px "Vazirmatn", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.article-share-pill:hover {
  background: #f4f5fc;
  border-color: var(--cyan, #005eb8);
}

.article-share-pill.is-whatsapp {
  background: #eaf8f0 !important;
  border-color: #b7e4ca !important;
  color: #166534 !important;
}

.article-share-pill.is-telegram {
  background: #eef6fc !important;
  border-color: #c2dff5 !important;
  color: #00529b !important;
}

/* 11. Responsive Breakpoints */
@media (max-width: 1080px) {
  .articles-shell {
    grid-template-columns: minmax(0, 1fr) 256px;
    gap: 20px;
  }

  .public-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .articles-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .articles-sidebar {
    position: static;
  }

  .articles-mobile-cat-pills {
    display: flex;
  }
}

@media (max-width: 680px) {
  .articles-hero-banner {
    padding: 30px 0 28px;
  }

  .public-article {
    padding: 18px 16px 26px;
  }

  .article-toc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-article-share {
    flex-direction: column;
    align-items: stretch;
  }

  .article-share-actions {
    justify-content: flex-start;
  }
}
