/* DQL premium editorial article template — scoped to generated blog articles */
  /* Final spacing: compact 6px hero-to-article gap; preserve article/TOC alignment. */
  .dql-editorial.section{padding-top:16px!important;padding-bottom:36px!important}
  .dql-editorial .dql-reading-grid{padding-top:0!important;gap:clamp(28px,4vw,48px);align-items:start}
  .dql-editorial .dql-inline-image{margin:28px auto;max-width:100%;text-align:center}.dql-editorial .dql-inline-image img{display:block;width:auto;max-width:100%;height:auto;max-height:720px;margin:0 auto;border-radius:16px}.dql-editorial .dql-inline-image figcaption{font-size:13px;color:#65767b;margin-top:8px}
 .dql-editorial .dql-article-body>h2:first-child{margin-top:0!important;padding-top:0!important}
  .dql-editorial .dql-article-body>h3:first-child{margin-top:0!important;padding-top:0!important}
  .dql-editorial .dql-avatar{display:none!important}
  .dql-editorial .dql-byline{gap:0;padding-top:0}
  @media(max-width:850px){.dql-editorial.section{padding-bottom:24px!important}.dql-editorial .dql-reading-grid{padding-top:0!important}}
 .dql-editorial{--dql-ink:#071c24;--dql-muted:#65767b;--dql-line:#dce6e4;--dql-teal:#00b8a9;--dql-lime:#b9f34a;color:var(--dql-ink)}
 .dql-editorial .dql-article-head{max-width:1230px;margin:0 auto;padding:30px 24px 34px}
 .dql-editorial .dql-breadcrumbs{font-size:13px;color:var(--dql-muted);margin-bottom:18px}.dql-editorial .dql-breadcrumbs a{color:#008f86;text-decoration:none}
 .dql-editorial .dql-kicker{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#008f86;margin-bottom:16px}.dql-editorial .dql-kicker:before{content:"";display:inline-block;width:24px;height:2px;background:var(--dql-lime)}
 .dql-editorial .dql-hero-grid{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,430px);gap:clamp(30px,4vw,60px);align-items:center;padding:clamp(28px,4vw,48px);border:1px solid #dce8e4;border-radius:26px;background:linear-gradient(118deg,#fff 0%,#f8fbf8 57%,#eef7f4 100%);box-shadow:0 18px 55px rgba(7,28,36,.055);overflow:hidden}.dql-editorial .dql-hero-grid:before{content:"";position:absolute;z-index:-1;right:34%;top:-90px;width:220px;height:220px;border:1px solid rgba(0,184,169,.16);border-radius:50%;box-shadow:0 0 0 28px rgba(0,184,169,.035),0 0 0 58px rgba(185,243,74,.035)}.dql-editorial .dql-hero-grid:after{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,var(--dql-teal),var(--dql-lime))}
 .dql-editorial .dql-hero-copy{min-width:0}
 .dql-editorial h1{font-size:clamp(36px,4.1vw,56px);line-height:1.02;letter-spacing:-.048em;max-width:720px;margin:0 0 18px;color:var(--dql-ink);text-wrap:balance}
 .dql-editorial .dql-deck{font-size:clamp(14px,1.3vw,16px);line-height:1.65;color:#52656a;max-width:620px;margin:0 0 20px}
 .dql-editorial .dql-byline{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--dql-muted);padding-top:4px}
 .dql-editorial .dql-avatar{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e6f7f4;color:#007e76;font-weight:800;font-size:12px}
 .dql-editorial .dql-featured{width:100%;margin:0;padding:0}.dql-editorial .dql-featured img{display:block;width:100%;height:300px;object-fit:cover;border-radius:16px;border:1px solid rgba(7,28,36,.08);box-shadow:0 14px 34px rgba(7,28,36,.12)}
 .dql-editorial .dql-reading-grid{max-width:1230px;margin:0 auto;padding:34px 24px 80px;display:grid;grid-template-columns:minmax(0,790px) minmax(240px,300px);gap:clamp(32px,4.5vw,60px);align-items:start}
 .dql-editorial .dql-article-body{min-width:0;font-size:17px;line-height:1.9;color:#24383d}.dql-editorial .dql-article-body p{margin:0 0 1.35em}.dql-editorial .dql-article-body h2{scroll-margin-top:50px;font-size:clamp(24px,3vw,32px);letter-spacing:-.025em;line-height:1.2;margin:1.9em 0 .65em;padding-top:5px;color:var(--dql-ink)}.dql-editorial .dql-article-body h3{scroll-margin-top:50px;font-size:21px;line-height:1.3;margin:1.5em 0 .55em;color:var(--dql-ink)}.dql-editorial .dql-article-body a{color:#007f78;text-decoration-thickness:1px;text-underline-offset:3px}.dql-editorial .dql-article-body ul,.dql-editorial .dql-article-body ol{padding-left:1.4em;margin:0 0 1.4em}.dql-editorial .dql-article-body li{padding-left:.25em;margin:.35em 0}
 .dql-editorial .dql-sidebar{position:sticky;top:142px;display:grid;gap:14px;align-self:start;max-height:calc(100vh - 164px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7d8d4 transparent;padding-right:4px}.dql-editorial .dql-side-card{border:1px solid var(--dql-line);border-radius:14px;background:rgba(255,255,255,.92);padding:18px;box-shadow:0 5px 20px rgba(7,28,36,.025)}.dql-editorial .dql-side-card h2{font-size:14px;letter-spacing:.02em;margin:0 0 14px}.dql-editorial .dql-toc-toggle{display:none}.dql-editorial .dql-toc{list-style:decimal!important;padding-left:22px;margin:0;display:grid;gap:10px}.dql-editorial .dql-toc li{font-size:13px;line-height:1.45}.dql-editorial .dql-toc a,.dql-editorial .dql-related a{color:#33494e;text-decoration:none}.dql-editorial .dql-toc a:hover,.dql-editorial .dql-related a:hover{color:#008f86}.dql-editorial .dql-toc .dql-toc-h3{padding-left:12px}.dql-editorial .dql-related{display:grid;gap:14px}.dql-editorial .dql-related-item{padding-bottom:12px;border-bottom:1px solid #edf1f0}.dql-editorial .dql-related-item:last-child{padding:0;border:0}.dql-editorial .dql-related small{display:block;color:var(--dql-muted);font-size:11px;margin-bottom:4px}.dql-editorial .dql-back{display:inline-flex;margin-top:28px;padding:11px 16px;border-radius:999px;background:var(--dql-ink);color:white!important;text-decoration:none!important;font-size:13px;font-weight:700}
 @media(max-width:850px){
.dql-editorial .dql-toc-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;border:0;background:transparent;color:var(--dql-ink);font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer}
.dql-editorial .dql-toc-card{padding:16px}
.dql-editorial .dql-toc-card h2{display:none}
.dql-editorial .dql-toc-card .dql-toc{display:none;margin-top:16px}
.dql-editorial .dql-toc-card.is-open .dql-toc{display:grid}
.dql-editorial .dql-toc-card.is-open .dql-toc-chevron{transform:rotate(180deg)}
.dql-editorial .dql-toc-chevron{transition:transform .2s ease}
.dql-editorial .dql-hero-grid{grid-template-columns:1fr;gap:22px;padding:28px}
.dql-editorial .dql-featured{max-width:620px}
.dql-editorial .dql-featured img{height:clamp(190px,38vw,280px)}
.dql-editorial .dql-reading-grid{grid-template-columns:1fr}
.dql-editorial .dql-sidebar{position:static;grid-row:1;max-height:none;overflow:visible;padding-right:0}
}
@media(max-width:520px){.dql-editorial .dql-article-head{padding:22px 16px 22px}.dql-editorial .dql-hero-grid{padding:22px 18px;border-radius:18px}.dql-editorial .dql-reading-grid{padding:20px 18px 48px}.dql-editorial .dql-featured img{height:210px;border-radius:10px}.dql-editorial h1{font-size:clamp(30px,9vw,40px)}}


/* Markdown comparison tables */
.dql-editorial .dql-markdown-table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:1.5rem 0;border:1px solid var(--dql-line,#dce6e3);border-radius:12px;background:#fff;-webkit-overflow-scrolling:touch}
.dql-editorial table.dql-markdown-table{width:100%;min-width:560px;border-collapse:collapse;border-spacing:0;font-size:.95em;line-height:1.55;margin:0}
.dql-editorial .dql-markdown-table th{background:#09242b;color:#fff;text-align:left;font-weight:700;padding:14px 16px;border-bottom:1px solid #dce6e3}
.dql-editorial .dql-markdown-table td{padding:13px 16px;text-align:left;vertical-align:top;border-bottom:1px solid #e6eeeb;color:var(--dql-ink,#233b40)}
.dql-editorial .dql-markdown-table tbody tr:nth-child(even){background:#f5f8f7}
.dql-editorial .dql-markdown-table tbody tr:last-child td{border-bottom:0}


/* Plain, uncoloured Markdown tables */
.dql-editorial .dql-article-body table,
.dql-article-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 1.25rem 0;
  color: inherit;
  background: transparent !important;
  border: 1px solid #b8c4c6;
}
.dql-editorial .dql-article-body thead,
.dql-article-body thead,
.dql-editorial .dql-article-body tbody,
.dql-article-body tbody,
.dql-editorial .dql-article-body tr,
.dql-article-body tr,
.dql-editorial .dql-article-body th,
.dql-article-body th,
.dql-editorial .dql-article-body td,
.dql-article-body td {
  background: transparent !important;
  color: inherit;
}
.dql-editorial .dql-article-body th,
.dql-editorial .dql-article-body td,
.dql-article-body th,
.dql-article-body td {
  border: 1px solid #b8c4c6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.dql-editorial .dql-article-body th,
.dql-article-body th {
  font-weight: 700;
}
.dql-editorial .dql-article-body .table-wrap,
.dql-article-body .table-wrap {
  width: 100%;
  overflow-x: auto;
}



/* Final override: plain, fully bordered Markdown table grid */
.dql-editorial table.dql-markdown-table {
  width: 100% !important;
  min-width: 560px;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #b8c4c6 !important;
  background: transparent !important;
}
.dql-editorial table.dql-markdown-table thead,
.dql-editorial table.dql-markdown-table tbody,
.dql-editorial table.dql-markdown-table tr {
  background: transparent !important;
}
.dql-editorial table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table td {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  border: 1px solid #b8c4c6 !important;
  padding: 10px 12px !important;
  text-align: left !important;
  vertical-align: top !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.dql-editorial table.dql-markdown-table th {
  font-weight: 700 !important;
}
/* Adjust column widths here when needed. Example for a 3-column table:
   first column 25%, second column 37.5%, third column 37.5%. */
.dql-editorial table.dql-markdown-table th:nth-child(1),
.dql-editorial table.dql-markdown-table td:nth-child(1) { width: 25%; }
.dql-editorial table.dql-markdown-table th:nth-child(2),
.dql-editorial table.dql-markdown-table td:nth-child(2) { width: 37.5%; }
.dql-editorial table.dql-markdown-table th:nth-child(3),
.dql-editorial table.dql-markdown-table td:nth-child(3) { width: 37.5%; }



/* FORCE plain table grid in rendered article previews; no fills or centred text */
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table,
.dql-editorial table.dql-markdown-table,
table.dql-markdown-table {
  width: 100% !important;
  min-width: 560px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #aebabc !important;
  background: transparent !important;
}
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table thead,
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table tbody,
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table tr,
.dql-editorial table.dql-markdown-table thead,
.dql-editorial table.dql-markdown-table tbody,
.dql-editorial table.dql-markdown-table tr,
table.dql-markdown-table thead,
table.dql-markdown-table tbody,
table.dql-markdown-table tr {
  background: transparent !important;
  background-color: transparent !important;
}
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table th,
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table td,
.dql-editorial table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table td,
table.dql-markdown-table th,
table.dql-markdown-table td {
  border: 1px solid #aebabc !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  text-align: left !important;
  vertical-align: top !important;
  padding: 10px 12px !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.dql-editorial .dql-markdown-table-wrap table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table th,
table.dql-markdown-table th {
  font-weight: 700 !important;
}
/* Default three-column proportions; change these percentages to resize columns. */
.dql-editorial table.dql-markdown-table th:nth-child(1),
.dql-editorial table.dql-markdown-table td:nth-child(1),
table.dql-markdown-table th:nth-child(1),
table.dql-markdown-table td:nth-child(1) { width: 25% !important; }
.dql-editorial table.dql-markdown-table th:nth-child(2),
.dql-editorial table.dql-markdown-table td:nth-child(2),
table.dql-markdown-table th:nth-child(2),
table.dql-markdown-table td:nth-child(2) { width: 37.5% !important; }
.dql-editorial table.dql-markdown-table th:nth-child(3),
.dql-editorial table.dql-markdown-table td:nth-child(3),
table.dql-markdown-table th:nth-child(3),
table.dql-markdown-table td:nth-child(3) { width: 37.5% !important; }


/* Remove decorative outer border around Markdown table wrapper; retain cell grid lines. */
.dql-editorial .dql-markdown-table-wrap {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}


/* Responsive Markdown tables — authoritative override */
.dql-editorial .dql-markdown-table-wrap,
.dql-editorial .dql-article-body .dql-markdown-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: visible !important;
  box-sizing: border-box !important;
}
.dql-editorial table.dql-markdown-table,
.dql-editorial .dql-article-body table.dql-markdown-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
}
.dql-editorial table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table td,
.dql-editorial .dql-article-body table.dql-markdown-table th,
.dql-editorial .dql-article-body table.dql-markdown-table td {
  min-width: 0 !important;
  max-width: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
}
@media (max-width: 640px) {
  .dql-editorial .dql-markdown-table-wrap,
  .dql-editorial .dql-article-body .dql-markdown-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .dql-editorial table.dql-markdown-table,
  .dql-editorial .dql-article-body table.dql-markdown-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
  }
  .dql-editorial table.dql-markdown-table thead,
  .dql-editorial .dql-article-body table.dql-markdown-table thead {
    display: none !important;
  }
  .dql-editorial table.dql-markdown-table tbody,
  .dql-editorial .dql-article-body table.dql-markdown-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .dql-editorial table.dql-markdown-table tr,
  .dql-editorial .dql-article-body table.dql-markdown-table tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 1px solid #dce6e3 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  .dql-editorial table.dql-markdown-table td,
  .dql-editorial .dql-article-body table.dql-markdown-table td {
    display: grid !important;
    grid-template-columns: minmax(105px, 40%) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
  }
  .dql-editorial table.dql-markdown-table td:last-child,
  .dql-editorial .dql-article-body table.dql-markdown-table td:last-child {
    border-bottom: 0 !important;
  }
  .dql-editorial table.dql-markdown-table td::before,
  .dql-editorial .dql-article-body table.dql-markdown-table td::before {
    content: attr(data-label) !important;
    display: block !important;
    min-width: 0 !important;
    font-weight: 700 !important;
    color: #40565b !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}


/* V4 fix: prevent the last column (e.g. Priority) from collapsing on desktop.
   Earlier nth-child width rules assigned 25% + 37.5% + 37.5% to the first
   three columns, leaving no usable width for a fourth or later column. */
@media (min-width: 641px) {
  .dql-editorial .dql-markdown-table-wrap,
  .dql-editorial .dql-article-body .dql-markdown-table-wrap {
    overflow-x: auto !important;
    max-width: 100% !important;
  }
  .dql-editorial table.dql-markdown-table,
  .dql-editorial .dql-article-body table.dql-markdown-table,
  table.dql-markdown-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }
  .dql-editorial table.dql-markdown-table th,
  .dql-editorial table.dql-markdown-table td,
  .dql-editorial .dql-article-body table.dql-markdown-table th,
  .dql-editorial .dql-article-body table.dql-markdown-table td,
  table.dql-markdown-table th,
  table.dql-markdown-table td {
    width: auto !important;
    min-width: 72px !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: manual !important;
  }
  .dql-editorial table.dql-markdown-table th:last-child,
  .dql-editorial table.dql-markdown-table td:last-child,
  .dql-editorial .dql-article-body table.dql-markdown-table th:last-child,
  .dql-editorial .dql-article-body table.dql-markdown-table td:last-child,
  table.dql-markdown-table th:last-child,
  table.dql-markdown-table td:last-child {
    min-width: 100px !important;
  }
  .dql-editorial table.dql-markdown-table th:nth-child(1),
  .dql-editorial table.dql-markdown-table td:nth-child(1),
  .dql-editorial table.dql-markdown-table th:nth-child(2),
  .dql-editorial table.dql-markdown-table td:nth-child(2),
  .dql-editorial table.dql-markdown-table th:nth-child(3),
  .dql-editorial table.dql-markdown-table td:nth-child(3),
  table.dql-markdown-table th:nth-child(1),
  table.dql-markdown-table td:nth-child(1),
  table.dql-markdown-table th:nth-child(2),
  table.dql-markdown-table td:nth-child(2),
  table.dql-markdown-table th:nth-child(3),
  table.dql-markdown-table td:nth-child(3) {
    width: auto !important;
  }
}


/* DQL MOBILE TABLE BEHAVIOUR v7
   Desktop: preserve normal semantic tables.
   Mobile: keep the table structure and scroll horizontally within its wrapper.
   This final block overrides the earlier Smart View/card rules. */
.dql-editorial .dql-article-body .dql-markdown-table-wrap,
.dql-editorial .dql-markdown-table-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain;
  box-sizing: border-box !important;
  scrollbar-width: thin;
}
.dql-editorial .dql-article-body table.dql-markdown-table,
.dql-editorial table.dql-markdown-table {
  display: table !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}
.dql-editorial .dql-article-body table.dql-markdown-table thead,
.dql-editorial table.dql-markdown-table thead { display: table-header-group !important; }
.dql-editorial .dql-article-body table.dql-markdown-table tbody,
.dql-editorial table.dql-markdown-table tbody { display: table-row-group !important; }
.dql-editorial .dql-article-body table.dql-markdown-table tr,
.dql-editorial table.dql-markdown-table tr { display: table-row !important; }
.dql-editorial .dql-article-body table.dql-markdown-table th,
.dql-editorial .dql-article-body table.dql-markdown-table td,
.dql-editorial table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table td {
  display: table-cell !important;
  width: auto !important;
  min-width: 120px !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  vertical-align: top !important;
  box-sizing: border-box !important;
}
.dql-editorial .dql-article-body table.dql-markdown-table td::before,
.dql-editorial table.dql-markdown-table td::before { content: none !important; display: none !important; }
@media (max-width: 640px) {
  .dql-editorial .dql-article-body .dql-markdown-table-wrap,
  .dql-editorial .dql-markdown-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    margin: 1.1rem 0 !important;
    border: 1px solid #dce6e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    touch-action: pan-x pan-y;
  }
  .dql-editorial .dql-article-body table.dql-markdown-table,
  .dql-editorial table.dql-markdown-table {
    width: max-content !important;
    min-width: 640px !important;
    max-width: none !important;
    table-layout: auto !important;
    margin: 0 !important;
  }
  .dql-editorial .dql-article-body table.dql-markdown-table th,
  .dql-editorial .dql-article-body table.dql-markdown-table td,
  .dql-editorial table.dql-markdown-table th,
  .dql-editorial table.dql-markdown-table td {
    min-width: 140px !important;
    padding: 10px 12px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
}


/* DQL MOBILE SCROLL TABLE FIX v8
   Explicitly undo legacy Smart View/card rules that changed table rows and cells
   to block/flex elements. Keep semantic table layout and scroll at the wrapper. */
.dql-editorial .dql-article-body .dql-markdown-table-wrap,
.dql-editorial .dql-markdown-table-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  box-sizing: border-box !important;
}
.dql-editorial .dql-article-body table.dql-markdown-table,
.dql-editorial table.dql-markdown-table {
  display: table !important;
  width: max-content !important;
  min-width: 640px !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.dql-editorial .dql-article-body table.dql-markdown-table thead,
.dql-editorial table.dql-markdown-table thead { display: table-header-group !important; }
.dql-editorial .dql-article-body table.dql-markdown-table tbody,
.dql-editorial table.dql-markdown-table tbody { display: table-row-group !important; }
.dql-editorial .dql-article-body table.dql-markdown-table tr,
.dql-editorial table.dql-markdown-table tr { display: table-row !important; }
.dql-editorial .dql-article-body table.dql-markdown-table th,
.dql-editorial .dql-article-body table.dql-markdown-table td,
.dql-editorial table.dql-markdown-table th,
.dql-editorial table.dql-markdown-table td {
  display: table-cell !important;
  min-width: 120px !important;
  max-width: 360px !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  vertical-align: top !important;
  box-sizing: border-box !important;
}
.dql-editorial .dql-article-body table.dql-markdown-table td::before,
.dql-editorial table.dql-markdown-table td::before {
  content: none !important;
  display: none !important;
}
@media (max-width: 640px) {
  .dql-editorial .dql-article-body .dql-markdown-table-wrap,
  .dql-editorial .dql-markdown-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x pan-y !important;
    margin: 1.1rem 0 !important;
  }
  .dql-editorial .dql-article-body table.dql-markdown-table,
  .dql-editorial table.dql-markdown-table {
    min-width: 640px !important;
  }
}



/* DQL MOBILE SCROLL TABLE FIX v9
   Higher-specificity reset for legacy Smart View rules on tbody/tr/td.
   Keep a real multi-column table; scrolling belongs to the wrapper only. */
@media (max-width: 850px) {
  html body .dql-editorial .dql-article-body .dql-markdown-table-wrap,
  html body .dql-editorial .dql-markdown-table-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    box-sizing: border-box !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table,
  html body .dql-editorial table.dql-markdown-table {
    display: table !important;
    width: max-content !important;
    min-width: 640px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table thead,
  html body .dql-editorial table.dql-markdown-table thead {
    display: table-header-group !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody,
  html body .dql-editorial table.dql-markdown-table tbody {
    display: table-row-group !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody tr,
  html body .dql-editorial table.dql-markdown-table tbody tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody td,
  html body .dql-editorial table.dql-markdown-table tbody td,
  html body .dql-editorial .dql-article-body table.dql-markdown-table thead th,
  html body .dql-editorial table.dql-markdown-table thead th {
    display: table-cell !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: 360px !important;
    padding: 10px 12px !important;
    border: 1px solid #dce6e3 !important;
    background: #fff !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody td::before,
  html body .dql-editorial table.dql-markdown-table tbody td::before {
    content: none !important;
    display: none !important;
  }
}



/* DQL MOBILE SCROLL TABLE FIX v10
   Let simple tables fit the viewport; only force a wider canvas for 3+ columns. */
@media (max-width: 850px) {
  html body .dql-editorial .dql-article-body .dql-markdown-table-wrap,
  html body .dql-editorial .dql-markdown-table-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    box-sizing: border-box !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table,
  html body .dql-editorial table.dql-markdown-table {
    display: table !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
  }

  /* Three or more columns get a wider canvas; two-column tables fit the phone. */
  html body .dql-editorial table.dql-markdown-table:has(th:nth-child(3)),
  html body .dql-editorial table.dql-markdown-table:has(td:nth-child(3)) {
    width: max-content !important;
    min-width: 640px !important;
    max-width: none !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table thead,
  html body .dql-editorial table.dql-markdown-table thead {
    display: table-header-group !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody,
  html body .dql-editorial table.dql-markdown-table tbody {
    display: table-row-group !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody tr,
  html body .dql-editorial table.dql-markdown-table tbody tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody td,
  html body .dql-editorial table.dql-markdown-table tbody td,
  html body .dql-editorial .dql-article-body table.dql-markdown-table thead th,
  html body .dql-editorial table.dql-markdown-table thead th {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 10px 12px !important;
    border: 1px solid #dce6e3 !important;
    background: #fff !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
  }

  html body .dql-editorial .dql-article-body table.dql-markdown-table tbody td::before,
  html body .dql-editorial table.dql-markdown-table tbody td::before {
    content: none !important;
    display: none !important;
  }
}


/* DQL MOBILE TABLE SCROLL HINT v20 — deep teal arrow with gentle right-left motion */
.dql-table-cue-host { position: relative; }
.dql-table-scroll-cue { display: none; }
@media (max-width: 850px) {
  .dql-table-scroll-cue {
    position: absolute;
    z-index: 3;
    top: -25px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #006B5E;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .dql-table-scroll-cue.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .dql-table-scroll-cue.is-scrolled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .dql-table-scroll-cue svg {
    display: block;
    width: 22px;
    height: 22px;
    animation: dql-teal-arrow-nudge-v20 1.2s ease-in-out infinite;
  }
  .dql-table-scroll-cue.is-scrolled svg { animation: none; }
  @keyframes dql-teal-arrow-nudge-v20 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }
  .dql-table-scroll-cue:focus-visible {
    outline: 2px solid #006B5E;
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dql-table-scroll-cue { transition: none !important; }
  .dql-table-scroll-cue svg { animation: none !important; }
}
