/* dti-blog.css */

.blog_toc_link_item:last-child .blog_toc_link {
  border-bottom: 0px;
}

.blog-rich-text h2 {
  padding-bottom: 0.25em;
  border-bottom: 1px solid white;
}

.report-rich-text h2 {
  padding-bottom: 0.25em;
  border-bottom: 1px solid white;
}

.report-rich-text code {
  background-color: #2e2e2e;
  border: 1px solid #3d3d3d;
  padding-inline: 0.4rem;
  width: fit-content;
  overflow-x: auto;
  display: inline;
}

.theme-dark .report-rich-text p:has(code) {
  padding: 0.5rem;
  background-color: #111;
  border: 0px solid var(--_theme---grid-stroke);
}

.data-table-wrapper {
  margin-bottom: 2rem;
  overflow-x: auto;
}

/* =========================================================
   Tables
   ======================================================= */
.table-wrapper {
  margin-bottom: 2rem;
  overflow-x: auto;
}

.data-table {
  overflow-x: auto;
}

.data-table {
  min-width: 40rem !important;
  border: 1px solid var(--_theme---grid-stroke);
  border-collapse: collapse;
}

@media (max-width: 767px) {
  .data-table {
    min-width: 20rem;
  }
}

td,
th {
  vertical-align: top;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--_theme---grid-stroke);
}

td *,
th * {
  text-align: left;
}

td {
  white-space: normal;
  word-wrap: break-word;
}

th {
  min-width: max-content;
  white-space: normal;
}

.rt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.rt-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.rt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.rt-modal__content {
  position: fixed;
  inset: 3rem;
  overflow: auto;
  z-index: 1000;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  border: 1px solid white;
  border-radius: 1.5rem;
}

.rt-modal__content img {
  display: block;
  max-width: none;
  cursor: grab;
}

.rt-modal__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
