
/* ===== Sticky RIGHT-SIDEBAR TOC  ===== */

/* Make the right column behave */
body:not(.editor) .wiki-content .columnLayout .cell.right {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

/* Style the TOC with sticky + floating card look */
body:not(.editor) .toc-macro {
  position: sticky !important;
  top: 40px !important;
  max-height: calc(100vh - 50px) !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Add faux header */
body:not(.editor) .toc-macro::before {
  content: "On this page";
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef1f6;
  padding-bottom: 4px;
  font-size: 0.9rem;
  color: #333;
}

/* TOC list formatting */
body:not(.editor) .toc-macro ul {
  list-style: none;
  margin: 0;
  padding-left: 12px !important;
}
body:not(.editor) .toc-macro li {
  margin: 3px 0;
  line-height: 1.35;
}
body:not(.editor) .toc-macro a {
  text-decoration: none;
  color: #0052cc;
font-size: 14px !important;
}
body:not(.editor) .toc-macro a:hover {
  text-decoration: underline;
}

/* Hide on smaller screens */
@media (max-width: 1024px) {
  body:not(.editor) .toc-macro { display: none !important; }
}

/* Hide any TOC item that links to an "Overview" heading (global) */
body:not(.editor) .toc-macro li:has(a[href*="#overview" i]) {
  display: none !important;
}

/* Fallback for browsers without :has() — hides just the link */
body:not(.editor) .toc-macro a[href*="#overview" i] {
  display: none !important;
}

hr {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* === Body typography for docs === */
body:not(.editor) .wiki-content {
  font-size: 16px !important;
  line-height: 1.45 !important;
  color: #222;
}

/* Make sure common text elements follow the body size */
body:not(.editor) .wiki-content p,
body:not(.editor) .wiki-content li,
body:not(.editor) .wiki-content td,
body:not(.editor) .wiki-content th {
  font-size: 16px !important;
  line-height: 1.45 !important;
}

/* Code blocks & inline code: slightly smaller than body, but readable */
body:not(.editor) .wiki-content pre,
body:not(.editor) .wiki-content code,
body:not(.editor) .wiki-content .code {
  font-size: 0.95em !important;
  line-height: 1.4 !important;
}

/* === Tatsoft FrameworX Documentation - Header Colors === */

/* Primary section headers */
body:not(.editor) .wiki-content h2 {
  color: #703BE2 !important;       /* Tatsoft Purple */
  font-weight: 600;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
  letter-spacing: -0.2px;
}

/* Sub-section headers */
body:not(.editor) .wiki-content h3 {
  color: #1F2937 !important;       /* Dark Gray */
  font-weight: 600;
  margin-top: 22px;
}

/* Minor headers */
body:not(.editor) .wiki-content h4,
body:not(.editor) .wiki-content h5 {
  color: #333333 !important;       /* Neutral Gray */
  font-weight: 600;
  margin-top: 16px;
}

/* Supporting elements */
body:not(.editor) .wiki-content table.confluenceTable thead th {
  background-color: #F5F0FF;       /* Light Purple Tint */
  border-color: #E5E7EB;           /* Light Gray */
}

/* Info/Tip/Note macros with purple accent */
body:not(.editor) .wiki-content .confluence-information-macro.tip,
body:not(.editor) .wiki-content .confluence-information-macro.note {
  border-left: 3px solid #703BE2;  /* Purple accent bar */
}




