/* Article 2122 only. Presentation overrides; no content is removed or hidden. */
body.postid-2122 {
  --a2122-text: #152f40;
  --a2122-muted: #49616a;
  --a2122-surface: #ffffff;
  --a2122-soft: #e7f4f0;
  --a2122-border: #c5ded7;
  --a2122-accent: #087765;
  --a2122-danger: #8f2936;
  --a2122-table-head: #102d40;
  --a2122-head-text: #ffffff;
  --a2122-table-alt: #f3f8f6;
}
html[data-finaf-theme="dark"] body.postid-2122 {
  --a2122-text: #e3eff2;
  --a2122-muted: #b6cad0;
  --a2122-surface: #102731;
  --a2122-soft: #143b36;
  --a2122-border: #35535c;
  --a2122-accent: #79dfca;
  --a2122-danger: #ffb9bc;
  --a2122-table-head: #153b37;
  --a2122-head-text: #edf9f5;
  --a2122-table-alt: #142f3a;
}

/* The one-column grid must not retain a table's intrinsic minimum width. */
body.postid-2122 .affin-article-page > .site-container,
body.postid-2122 .affin-article-layout,
body.postid-2122 .affin-article-layout > *,
body.postid-2122 .affin-article-content,
body.postid-2122 .affin-article-aside,
body.postid-2122 .affin-more,
body.postid-2122 .affin-more-grid,
body.postid-2122 .affin-more-grid > *,
body.postid-2122 .affin-breadcrumb,
body.postid-2122 .affin-breadcrumb > * {
  min-width: 0;
}
body.postid-2122 .affin-article-layout {
  grid-template-columns: minmax(0, 760px) minmax(0, 290px);
}
body.postid-2122 .affin-article-header {
  max-width: min(880px, 100%);
  min-width: 0;
}
body.postid-2122 .affin-article-header h1,
body.postid-2122 .affin-article-content :where(p, li, a, h2, h3),
body.postid-2122 .affin-editorial-note,
body.postid-2122 .affin-article-aside {
  overflow-wrap: anywhere;
}

body.postid-2122 .affin-article-content,
body.postid-2122 .affin-article-content :where(div, p, h2, h3, h4, ul, ol, li, table, th, td, a, strong, b, em, span) {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}
body.postid-2122 .affin-article-content {
  color: var(--a2122-text) !important;
  font-size: 1.08rem;
  line-height: 2;
  min-width: 0;
}
body.postid-2122 .affin-article-content :where(p, li, strong, b, em, small) {
  color: var(--a2122-text) !important;
}
body.postid-2122 .affin-article-content :where(p, li) {
  text-align: start !important;
}
body.postid-2122 .affin-article-content a {
  color: var(--a2122-accent) !important;
  text-underline-offset: .2em;
}

/* Match only the extra author-supplied wrapper, not every content div. */
body.postid-2122 .affin-article-content > div[style*="font-family: Tahoma"] {
  max-width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--a2122-text) !important;
  line-height: 2 !important;
}
body.postid-2122 .affin-article-content > div[style*="font-family: Tahoma"] > div[style*="border-left: 6px"] {
  background: var(--a2122-soft) !important;
  color: var(--a2122-text) !important;
  border-left: 0 !important;
  border-right: 4px solid var(--a2122-accent) !important;
  border-radius: 10px !important;
  padding: 1rem 1.15rem !important;
  margin-bottom: 1.75rem !important;
  font-size: 1rem !important;
  line-height: 2 !important;
}
body.postid-2122 .affin-article-content h2 {
  background: var(--a2122-soft) !important;
  color: var(--a2122-text) !important;
  border: 0 !important;
  border-right: 4px solid var(--a2122-accent) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: .6rem .9rem !important;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem) !important;
  line-height: 1.75 !important;
  margin: 2rem 0 .9rem !important;
}
body.postid-2122 .affin-article-content h3,
body.postid-2122 .affin-article-content h4 {
  color: var(--a2122-text) !important;
  line-height: 1.8 !important;
}
body.postid-2122 .affin-article-summary,
body.postid-2122 .affin-editorial-note {
  max-width: 100%;
  box-sizing: border-box;
  background: var(--a2122-soft) !important;
  border-color: var(--a2122-border) !important;
  color: var(--a2122-text) !important;
}

/* The render-only wrapper retains the complete semantic table and its text. */
body.postid-2122 .affin-article-content .finaf-article-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border: 1px solid var(--a2122-border);
  border-radius: 12px;
  background: var(--a2122-surface);
  scrollbar-width: auto;
  scrollbar-color: var(--a2122-accent) var(--a2122-soft);
}
body.postid-2122 .affin-article-content .finaf-article-table-scroll:focus-visible {
  outline: 3px solid var(--a2122-accent);
  outline-offset: 3px;
}
body.postid-2122 .affin-article-content table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: var(--a2122-surface) !important;
  color: var(--a2122-text) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 1rem !important;
  line-height: 1.9;
}
body.postid-2122 .affin-article-content table :where(th, td) {
  border-color: var(--a2122-border) !important;
  background: var(--a2122-surface) !important;
  color: var(--a2122-text) !important;
  padding: .85rem 1rem !important;
  text-align: start !important;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}
body.postid-2122 .affin-article-content table thead :where(tr, th) {
  background: var(--a2122-table-head) !important;
  color: var(--a2122-head-text) !important;
}
body.postid-2122 .affin-article-content table tbody tr:nth-child(even) td {
  background: var(--a2122-table-alt) !important;
}
/* Retain the positive/warning distinction already encoded in the cells. */
body.postid-2122 .affin-article-content table td[style*="color: #276749"] {
  color: var(--a2122-accent) !important;
}
body.postid-2122 .affin-article-content table td[style*="color: #9b2c2c"] {
  color: var(--a2122-danger) !important;
}
body.postid-2122 .affin-article-content table td[style*="color: #2c5282"] {
  color: var(--a2122-accent) !important;
}

@media (max-width: 900px) {
  body.postid-2122 .affin-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  body.postid-2122 .affin-article-content .finaf-article-table-scroll table {
    min-width: 600px;
  }
  /* A missing render filter still leaves a locally scrollable readable table. */
  body.postid-2122 .affin-article-content > div[style*="font-family: Tahoma"] > table {
    display: block;
    max-width: 100% !important;
    overflow-x: auto !important;
    table-layout: auto;
  }
  body.postid-2122 .affin-article-content > div[style*="font-family: Tahoma"] > table :where(th, td) {
    min-width: 160px;
  }
}
@media (max-width: 620px) {
  body.postid-2122 .affin-article-header h1 {
    font-size: clamp(1.75rem, 7.8vw, 2.3rem);
    line-height: 1.55;
  }
  body.postid-2122 .affin-article-content {
    font-size: 1rem;
    line-height: 2;
  }
  body.postid-2122 .affin-article-summary,
  body.postid-2122 .affin-editorial-note {
    padding: 1rem;
  }
  body.postid-2122 .affin-article-content > div[style*="font-family: Tahoma"] > div[style*="border-left: 6px"] {
    padding: .85rem 1rem !important;
  }
}
