/* Import Open Sans font - matching existing webhelp */
@import url("https://use.typekit.net/nvb4dqr.css");

/* ============================================
   BASE STYLES (formerly from press_base.css)
   ============================================ */

/* Reset and base */
html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 11pt;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Typography - matching reference template */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  padding: 0;
}

p {
  line-height: 1.5;
}

ul, ol {
  padding-left: 1.2em;
}

li {
  line-height: 1.5;
}

strong {
  font-weight: bold;
}

/* Links - using blue instead of green */
a {
  font-weight: 500;
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blockquotes - same indentation as regular content */
.content blockquote {
  margin: 0.25em 0 0.8em 25pt;
  padding: 0;
  color: inherit;
  border: none;
}

.content blockquote p {
  margin-left: 0;
}

/* Tables - generic styles (matching original template) */
table {
  border-collapse: collapse;
  font-size: 10pt;
}

th {
  font-weight: bold;
  text-align: left;
  vertical-align: top;
  color: #FFFFFF;
  background-color: #666666;
  padding: 4px;
}

td {
  padding: 4px;
  text-align: left;
  vertical-align: top;
}

/* Code and preformatted text */
code, kbd, pre, samp, .pre {
  font-family: SFMono-Regular, Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
}

code {
  color: #476582;
  padding: 0.25rem 0.5rem;
  margin: 0;
  font-size: 0.85em;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

pre {
  line-height: 1.4;
  padding: 1.25rem 1.5rem;
  margin: 0.85rem 0;
  background-color: #282c34;
  border-radius: 6px;
  overflow: auto;
}

kbd {
  background: #eee;
  border: solid 0.15rem #ddd;
  border-bottom: solid 0.25rem #ddd;
  border-radius: 0.15rem;
  padding: 0 0.15em;
}

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid #eaecef;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track-piece {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:vertical {
  height: 6px;
  background-color: #888;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:horizontal {
  width: 6px;
  background-color: #888;
  border-radius: 6px;
}

/* Dark mode table styles */
.theme-dark th {
  background-color: #444444;
  color: #FFFFFF;
}

.theme-dark td {
  border-color: #555555;
}

/* Layout - Page structure */
.page {
  padding-left: 20rem;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.navbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  box-sizing: border-box;
}

.sidebar-mask {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
}

.vp-sidebar {
  font-family: 'open-sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  width: 20rem;
  max-width: 20rem;
  position: fixed;
  z-index: 10;
  margin: 0;
  top: 4rem;
  left: 0;
  bottom: 0;
  box-sizing: border-box;
  border-right: 1px solid #eaecef;
  overflow-y: auto;
  background-color: var(--background-color, white);
}

.theme-container.sidebar-open .sidebar-mask {
  display: block;
}

/* Nav links in navbar */
.nav-links {
  display: inline-block;
}

.nav-links a {
  line-height: 1.4rem;
  color: inherit;
}

.nav-links a:hover {
  color: inherit;
}

.nav-links .nav-item {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
  line-height: 2rem;
}

.nav-links .repo-link {
  margin-left: 1.5rem;
}

/* Dark mode switch button */
.darkmode-switch {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  height: 24px;
  display: flex;
  z-index: 100;
  background-color: var(--background-color, white);
  border-radius: 4px;
}

.darkmode-switch:hover {
  cursor: pointer;
}

.darkmode-switch .item {
  padding: 4px;
  line-height: 1;
  border: 1px solid #666;
  border-left: none;
}

.darkmode-switch .item:first-child {
  border-left: 1px solid #666;
}

.darkmode-switch .item.day {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.darkmode-switch .item.night {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.darkmode-switch .item .icon {
  width: 16px;
  height: 16px;
  fill: #666;
}

.darkmode-switch .item.active {
  background-color: #666;
}

.darkmode-switch .item.active:hover {
  cursor: default;
}

.darkmode-switch .item.active .icon {
  fill: #fff;
}


/* Responsive layout - sidebar hidden, toolbar hidden, palette padding */
@media (max-width: 1000px) {
  .vp-sidebar {
    top: 0;
    padding-top: 4rem;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .page {
    padding-left: 0;
  }
  .theme-container.sidebar-open .vp-sidebar {
    transform: translateX(0);
  }
  .content-toolbar {
    display: none !important;
  }
  .darkmode-switch {
    display: none !important;
  }
  .body-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
  }
  .rightpanel-container {
    display: none !important;
  }

  /* search overlay padding handled by max() in base rule */
}

/* ============================================
   END BASE STYLES
   ============================================ */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Scroll margin for anchor targets (accounts for fixed navbar) */
.content h1[id],
.content h2[id],
.content h3[id],
.content h4[id],
.content h5[id],
.content h6[id],
.content .rubric[id],
.content [id] {
  scroll-margin-top: 5rem;
}

/* Hide headerlink anchors (the # that appears on hover) */
.content a.headerlink {
  display: none !important;
}

/* Body/html dark mode - ensure entire page background changes */
.theme-dark,
.theme-dark body,
body.theme-dark,
html.theme-dark,
html.theme-dark body,
#app.theme-dark,
.theme-container.theme-dark {
  background-color: #1a1a1a !important;
}

/* Sidebar tabs styling - yellow theme matching original webhelp */
.sidebar-tabs {
  font-family: 'open-sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  height: 3rem;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4D4D4D;
  background-color: transparent;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4D4D4D;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 0.3125rem;
}

.sidebar-tab:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212121;
}

.sidebar-tab.active {
  background-color: #FFE51C;
  color: #212121;
  font-weight: 600;
}

/* Dark mode tabs */
.theme-dark .sidebar-tabs {
  background-color: #252525;
}

.theme-dark .sidebar-tab {
  background-color: transparent;
  color: #aaa;
}

.theme-dark .sidebar-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.theme-dark .sidebar-tab.active {
  background-color: #F2BF24;
  color: #212121;
}

/* Sidebar panels */
.sidebar-panel {
  padding: 0;
  overflow-y: auto;
  height: calc(100vh - 4rem - 1.5rem - 3rem - 0.5rem);  /* viewport - navbar - tabs margin - tabs height - tabs margin-bottom */
}

.sidebar-panel.hidden {
  display: none !important;
}

/* Make sidebar tabs sticky at top */
.sidebar-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: white;
}

/* Prevent sidebar from scrolling, let panel scroll instead */
.vp-sidebar {
  overflow-y: hidden !important;
}

/* Index panel styling */
#index-panel {
  padding: 0.5rem;
}

.index-search-box {
  padding: 0.5rem;
}

.index-search-box input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.index-search-box input:focus {
  outline: none;
  border-color: #666;
}

.index-content {
  padding: 0.5rem;
}

.index-content a {
  color: #0F6CB6;
  text-decoration: none;
}

.index-content a:hover {
  color: #CF771E;
  text-decoration: underline;
}

/* Dark mode index panel */
.theme-dark .index-search-box input {
  background-color: #333;
  border-color: #555;
  color: #e0e0e0;
}

.theme-dark .index-search-box input:focus {
  border-color: #888;
}

.theme-dark .index-content a {
  color: #5fa8e8;
}

.theme-dark .index-content a:hover {
  color: #e8a050;
}

/* Toolbar button styling */
.toolbar-btn {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #212121;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.toolbar-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.toolbar-icon {
  width: 20px;
  height: 20px;
}

.toolbar-btn span {
  margin-left: 0.5rem;
}

.toggle-sidebar-btn {
  padding: 0.5rem;
}

/* Sidebar toggle - hidden state */
.vp-sidebar.sidebar-hidden {
  display: none !important;
}

.page.sidebar-collapsed {
  padding-left: 0 !important;
}

/* Content area styling */
.content {
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 12pt;
  background-color: #FFFFFF;
}

/* Light mode colors (default) - override press theme CSS variables */
.theme-light {
  --text-color: #343434;
  --background-color: white;
  --bg-color: white;
}

.theme-light .content,
.theme-light .vp-sidebar,
.theme-light .page,
.theme-light .content-area,
.theme-light .body-wrapper {
  color: #343434;
  background-color: white !important;
}

.theme-light .vp-sidebar .toctree-l1 a,
.theme-light .vp-sidebar .toctree-l2 a,
.theme-light .vp-sidebar .toctree-l3 a,
.theme-light .vp-sidebar .toctree-l4 a,
.theme-light .vp-sidebar .toctree-l5 a {
  color: #343434;
}

.theme-light .vp-sidebar .toctree-l1 a:hover,
.theme-light .vp-sidebar .toctree-l2 a:hover,
.theme-light .vp-sidebar .toctree-l3 a:hover,
.theme-light .vp-sidebar .toctree-l4 a:hover,
.theme-light .vp-sidebar .toctree-l5 a:hover {
  color: #212121;
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-light .vp-sidebar .toctree-l1 a.current,
.theme-light .vp-sidebar .toctree-l2 a.current,
.theme-light .vp-sidebar .toctree-l3 a.current,
.theme-light .vp-sidebar .toctree-l4 a.current,
.theme-light .vp-sidebar .toctree-l5 a.current {
  color: #212121;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode colors - override press theme CSS variables */
.theme-dark {
  --text-color: #e0e0e0;
  --background-color: #1a1a1a;
  --bg-color: #1a1a1a;
}

.theme-dark .content {
  color: #e0e0e0;
  background-color: #1a1a1a !important;
}

.theme-dark .vp-sidebar {
  color: #e0e0e0;
  background-color: #252525 !important;
}

.theme-dark .vp-sidebar .toctree-l1 a,
.theme-dark .vp-sidebar .toctree-l2 a,
.theme-dark .vp-sidebar .toctree-l3 a,
.theme-dark .vp-sidebar .toctree-l4 a,
.theme-dark .vp-sidebar .toctree-l5 a {
  color: #e0e0e0;
}

.theme-dark .vp-sidebar .toctree-l1 a:hover,
.theme-dark .vp-sidebar .toctree-l2 a:hover,
.theme-dark .vp-sidebar .toctree-l3 a:hover,
.theme-dark .vp-sidebar .toctree-l4 a:hover,
.theme-dark .vp-sidebar .toctree-l5 a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .vp-sidebar .toctree-l1 a.current,
.theme-dark .vp-sidebar .toctree-l2 a.current,
.theme-dark .vp-sidebar .toctree-l3 a.current,
.theme-dark .vp-sidebar .toctree-l4 a.current,
.theme-dark .vp-sidebar .toctree-l5 a.current {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .vp-sidebar li.current > a::before {
  background-color: #e0e0e0;
}

/* Also handle .page wrapper for dark mode */
.theme-dark .page,
.theme-dark .content-area,
.theme-dark .body-wrapper {
  background-color: #1a1a1a !important;
}

/* Dark mode content text and headings */
.theme-dark .content h1 {
  color: #ffffff !important;
}

.theme-dark .content h2,
.theme-dark .content p.rubric.h2 {
  color: #b0c4c4 !important;
}

.theme-dark .content h3,
.theme-dark .content p.rubric.h3 {
  color: #b0c4c4 !important;
}

.theme-dark .content h4,
.theme-dark .content p.rubric.h4 {
  color: #6699ff !important;
}

.theme-dark .content h5,
.theme-dark .content p.rubric.h5 {
  color: #6699ff !important;
}

.theme-dark .content h6,
.theme-dark .content p.rubric.h6 {
  color: #9e9e9e !important;
}

/* Dark mode links */
.theme-dark .content a:link,
.theme-dark .content a {
  color: #5fa8e8;
}

.theme-dark .content a:visited {
  color: #8fa8b8;
}

.theme-dark .content a:hover {
  color: #e8a050;
}

/* Dark mode tables */
.theme-dark .content table.docutils th {
  background-color: #444444;
  border-color: #555555;
}

.theme-dark .content table.docutils td {
  border-color: #555555;
}

/* Dark mode procedure and other special text */
.theme-dark .content .Procedure {
  color: #6699ff;
}

.theme-dark .content .AccessHeader,
.theme-dark .content .SeeAlsoHeader,
.theme-dark .content .SysVarHeader,
.theme-dark .content .seealsoheader,
.theme-dark .content .sysvarheader {
  color: #e0e0e0;
}

.theme-dark .content .accessheader.docutils.container p,
.theme-dark .content .seealsoheader.docutils.container p,
.theme-dark .content .sysvarheader.docutils.container p {
  color: #e0e0e0;
}

.theme-dark .content .procedure.docutils.container p {
  color: #6699ff !important;
}

/* Dark mode tip/note borders */
.theme-dark .content .tip.docutils.container,
.theme-dark .content p.tip {
  border-top-color: #4080c0;
  border-bottom-color: #4080c0;
}

.theme-dark .content .note.docutils.container,
.theme-dark .content p.note {
  border-top-color: #4080c0;
  border-bottom-color: #4080c0;
}

/* Dark mode noborder table text */
.theme-dark .content table.noborder th,
.theme-dark .content table.tablesysvar th {
  color: #e0e0e0;
}

/* Header styling - matching existing webhelp (dark grey banner) */
.navbar {
  height: 4rem;
  background-color: #212121 !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem 0.5rem 1.5rem;
  font-family: 'open-sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: white;
}

.navbar .header-spacer {
  flex: 1;
}

.navbar .header-logo-box {
  display: flex;
  align-items: center;
}

.navbar .header-logo-box .logo {
  height: 3rem;
  margin-right: 0.5rem;
}

.navbar .header-title {
  display: flex;
  align-items: center;
}

.navbar .header-title-link {
  color: white !important;
  font-size: 1.675rem;
  font-weight: 500;
  text-decoration: none;
}

.navbar .header-title-link:hover {
  color: #cccccc !important;
  text-decoration: none;
}

.navbar .site-name {
  color: white !important;
  font-size: 1.675rem;
}

/* Header search box - matching existing webhelp (dark header) */
.navbar .header-search {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.navbar .search-form {
  display: flex;
  align-items: center;
  background-color: #444;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  height: 2.5rem;
}

.navbar .search-input {
  background-color: #444;
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 1rem;
  width: 200px;
  outline: none;
  font-family: 'open-sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.navbar .search-input::placeholder {
  color: #aaa;
}

.navbar .search-input:focus {
  background-color: #555;
}

.navbar .search-button {
  background-color: transparent;
  border: none;
  color: white;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2rem;
}

.navbar .search-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .search-button svg {
  fill: white;
  width: 1.25rem;
  height: 1.25rem;
}

/* Hide sidebar searchbox (search is in header) */
#searchbox, search#searchbox {
  display: none !important;
}

/* ===== EXPANDABLE SEARCH BAR ===== */

/* Search toggle button in header */
.search-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.search-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.search-toggle-btn svg {
  display: block;
}

/* Search overlay - expands in center of header */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  background-color: transparent;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem min(20%, max(1rem, calc(50vw - 325px))) 0;
  pointer-events: none;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.5rem;
  gap: 0.5rem;
  background-color: #444;
  border-radius: 4px;
  padding: 0 0.5rem;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.search-overlay #search-input {
  flex: 1;
  height: 2.5rem;
  padding: 0 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: transparent;
  color: white;
  font-size: 1rem;
  font-family: 'open-sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  outline: none;
}

.search-overlay #search-input::placeholder {
  color: #aaa;
}

.search-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.search-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Search results dropdown */
.search-results-dropdown {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background-color: white;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1001;
  pointer-events: auto;
  flex-direction: column;
  font-family: Arial, Verdana, Helvetica, sans-serif;
}

.search-results-dropdown.active {
  display: flex;
}

.search-results-dropdown .search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.search-results-dropdown .search-result-item:last-child {
  border-bottom: none;
}

.search-results-dropdown .search-result-item:hover {
  background-color: #f5f5f5;
}

.search-results-dropdown a.search-result-title {
  display: block;
  font-weight: normal;
  color: #d8931a;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.search-results-dropdown a.search-result-title:hover {
  text-decoration: underline;
  color: #b5790e;
}

.search-results-dropdown p.search-result-summary {
  font-size: 0.85rem;
  color: #212121;
  line-height: 1.5;
  margin: 0 0 0.35rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-results-dropdown p.search-result-summary:empty {
  display: none;
}

.search-results-dropdown p.search-result-summary b {
  font-weight: bold;
  color: #000;
}

.search-results-dropdown p.search-result-path {
  font-size: 0.8rem;
  color: #828282;
  margin: 0;
  font-style: italic;
}

.search-results-dropdown p.search-result-path:empty {
  display: none;
}

.search-results-dropdown .search-result-context {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.search-results-dropdown .search-result-context mark {
  background-color: #FFE51C;
  padding: 0 2px;
}

.search-results-dropdown .search-no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
  font-style: italic;
}

.search-results-dropdown .search-loading {
  padding: 1rem;
  text-align: center;
  color: #666;
}

/* Search results list */
.search-results-dropdown .search-results-list {
  max-height: 350px;
  overflow-y: auto;
}

/* Search pagination */
.search-results-dropdown .search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

.search-results-dropdown .search-page-btn {
  background-color: transparent;
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  font-weight: normal;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
  line-height: 1;
}

.search-results-dropdown .search-page-btn:hover:not(:disabled) {
  color: #333;
}

.search-results-dropdown .search-page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.search-results-dropdown .search-results-info {
  font-size: 0.85rem;
  color: #6E6E6E;
}

/* Dark mode search */
.theme-dark .search-results-dropdown {
  background-color: #2a2a2a;
}

.theme-dark .search-results-dropdown .search-result-item {
  border-bottom-color: #444;
}

.theme-dark .search-results-dropdown .search-result-item:hover {
  background-color: #333;
}

.theme-dark .search-results-dropdown .search-result-title {
  color: #e8a832;
}

.theme-dark .search-results-dropdown a.search-result-title {
  color: #e8a832;
}

.theme-dark .search-results-dropdown a.search-result-title:hover {
  color: #f0c060;
}

.theme-dark .search-results-dropdown p.search-result-summary {
  color: #ccc;
}

.theme-dark .search-results-dropdown p.search-result-summary b {
  color: #F2BF24;
}

.theme-dark .search-results-dropdown p.search-result-path {
  color: #777;
}

.theme-dark .search-results-dropdown .search-result-context {
  color: #aaa;
}

.theme-dark .search-results-dropdown .search-result-context mark {
  background-color: #F2BF24;
  color: #000;
}

.theme-dark .search-results-dropdown .search-no-results,
.theme-dark .search-results-dropdown .search-loading {
  color: #aaa;
}

.theme-dark .search-results-dropdown .search-pagination {
  background-color: #333;
  border-top-color: #444;
}

.theme-dark .search-results-dropdown .search-page-btn {
  color: #aaa;
}

.theme-dark .search-results-dropdown .search-page-btn:hover:not(:disabled) {
  color: #fff;
}

.theme-dark .search-results-dropdown .search-results-info {
  color: #aaa;
}

/* Content styling from robotheme */

/* Links */
.content a:link, .content a {
  color: #0F6CB6;
  text-decoration: none;
}

.content a:visited {
  color: #62727F;
  text-decoration: none;
}

.content a:hover {
  color: #CF771E;
  text-decoration: underline;
}

/* Headings - no left indent */
.content h1 {
  color: #000000 !important;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 14pt;
  font-weight: bold;
  margin: 0 0 1.5em 0;
}

.content h2, .content p.rubric.h2 {
  color: #2F4F4F !important;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-weight: bold;
  margin: 18pt 0 12px 25pt;
}

.content h3, .content p.rubric.h3 {
  color: #2F4F4F !important;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-weight: bold;
  margin: 18pt 0 12px 25pt;
}

.content h4, .content p.rubric.h4 {
  color: #0F6CB6 !important;
  font-size: 11pt;
  font-weight: bold;
  margin: 21pt 0 9px 25pt;
}

.content h5, .content p.rubric.h5 {
  color: #0000FF !important;
  font-size: 10pt;
  font-weight: bold;
  margin: 18pt 0 9px 25pt;
}

.content h6, .content p.rubric.h6 {
  color: #6C6C6C !important;
  font-size: 10pt;
  font-weight: bold;
  margin: 18pt 0 9px 25pt;
}

/* Content paragraphs and lists */
.content p {
  line-height: 12pt;
  margin: 0.25em 0.25em 0.8em 25pt;
}

.content ul, .content ol {
  margin: 0 12pt 0 25pt;
  padding-left: 20pt;
}

.content li {
  line-height: 12pt;
  margin: 9pt 12pt 9pt 0;
  padding-left: 0;
}

/* Remove extra margin from paragraphs inside list items */
.content li p {
  margin-left: 0;
}

/* Blockquotes and images in content */

.content img {
  margin-left: 25pt;
}

/* Tables */
.content table.docutils {
  border-collapse: collapse;
  font-size: 10pt;
  margin: 1em 0 1em 25pt;
}

.content table.docutils th {
  font-weight: bold;
  text-align: left;
  vertical-align: top;
  color: #FFFFFF;
  background-color: #666666;
  padding: 4px;
  border: 1px solid #808080;
}

.content table.docutils td {
  padding: 4px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #808080;
}

/* Hide table rows where all cells are empty (when ifconfig condition is false) */
.content tr:not(:has(td:not(:empty), th:not(:empty))) {
  display: none;
}

/* TOC toggle arrow - SVG icons matching existing webhelp */
.toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 0.75rem;
  height: 0.75rem;
  min-width: 0.75rem;
  min-height: 0.75rem;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../icons/ch-right.svg');
  margin-right: 0.35rem;
  user-select: none;
}
.toc-toggle.expanded {
  background-image: url('../icons/ch-down.svg');
}
ul.toc-hidden {
  display: none !important;
}

/* Make TOC li elements flex containers for inline arrow + link */
.vp-sidebar li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Child ul takes full width on new line */
.vp-sidebar li > ul {
  width: 100%;
  flex-basis: 100%;
}

/* Dark mode - invert arrow icons for visibility */
.theme-dark .toc-toggle {
  filter: brightness(0) invert(0.8);
}

/* Text formatting classes */
.content .Procedure {
  font-weight: bold;
  font-style: normal;
  color: #0000CC;
  margin-top: 1.4em;
  margin-bottom: 0.8em;
}

.content .AccessHeader, .content .SeeAlsoHeader, .content .SysVarHeader,
.content .seealsoheader, .content .sysvarheader {
  font-size: 12pt;
  font-style: normal;
  font-weight: bold;
  color: #000000;
  margin-top: 1.4em;
  margin-bottom: 0.8em;
}

.content .CmdReference, .content .cmdreference {
  font-weight: bold;
  font-style: normal;
}

.content .MnuReference, .content .mnureference {
  font-weight: bold;
  font-style: normal;
}

.content .RbnReference, .content .rbnreference {
  font-weight: bold;
  font-style: normal;
}

.content .TPReference_CMD, .content .tpreference_cmd {
  font-weight: bold;
  font-style: normal;
}

.content .TPReference, .content .tpreference {
  font-weight: bold;
  font-style: normal;
}

.content .TBReference, .content .tbreference {
  font-weight: bold;
  font-style: normal;
  display: none; /* Display in Kudo only */
}

/* Container classes */
.content .procedure.docutils.container {
  margin: 1.4em 0 0.8em 25pt;
}

.content .procedure.docutils.container p {
  font-weight: bold;
  font-style: normal;
  color: #0000CC !important;
  margin-top: 0;
  margin-bottom: 0.8em;
  margin-left: 0;
}

.content .accessheader.docutils.container {
  margin: 1.4em 0 0.8em 25pt;
}

.content .accessheader.docutils.container p {
  font-size: 12pt;
  font-style: normal;
  font-weight: bold;
  color: #000000;
  margin-top: 0;
  margin-bottom: 0.8em;
  margin-left: 0;
}

.content .seealsoheader.docutils.container,
.content .sysvarheader.docutils.container {
  margin: 1.4em 0 0.8em 25pt;
}

.content .seealsoheader.docutils.container p,
.content .sysvarheader.docutils.container p {
  font-size: 12pt;
  font-style: normal;
  font-weight: bold;
  color: #000000;
  margin-top: 0;
  margin-bottom: 0.8em;
  margin-left: 0;
}

.content .accessitem.docutils.container {
  margin: 0.8em 0 0.8em 25pt;
}

.content .accessitem.docutils.container p {
  font-style: normal;
  margin: 0;
  margin-bottom: 0.8em;
}

/* Command, Menu, and Ribbon reference containers */
.content .cmdreference.docutils.container,
.content .mnureference.docutils.container,
.content .rbnreference.docutils.container,
.content .rbnnewreference.docutils.container,
.content .tpreference_cmd.docutils.container,
.content .tpreference-cmd.docutils.container {
  margin: 0.8em 0 0.8em 25pt;
}

.content .cmdreference.docutils.container p,
.content .mnureference.docutils.container p,
.content .rbnreference.docutils.container p,
.content .tpreference_cmd.docutils.container p,
.content .tpreference-cmd.docutils.container p {
  font-weight: bold;
  font-style: normal;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
}

/* Special handling for RbnNewReference to support multiple ribbon lines */
.content .rbnnewreference.docutils.container p {
  font-weight: bold;
  font-style: normal;
  margin-top: 0;
  margin-bottom: 0.3em;
  margin-left: 0;
  display: block;
}

.content .rbnnewreference.docutils.container p:last-child {
  margin-bottom: 0;
}

/* Tip container styling with horizontal lines */
.content .tip.docutils.container {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
  position: relative;
}

.content .tip.docutils.container p {
  display: inline;
  margin: 0 !important;
  margin-left: 0 !important;
  font-weight: normal;
  font-style: normal;
}

.content .tip.docutils.container img {
  display: none;
}

/* Note container styling */
.content .note.docutils.container {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding: 0.2em 0;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
  position: relative;
}

.content .note.docutils.container p {
  display: block;
  margin: 0 !important;
  margin-left: 0 !important;
  font-weight: normal;
  font-style: normal;
}

.content .note.docutils.container img {
  display: none;
}

/* Tip/Note paragraph styling via rst-class directive */
.content p.tip {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
}

.content p.note {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding: 0.2em 0;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
}

.content p.warning {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding: 0.2em 0;
  border-top: 1px solid #FF0000;
  border-bottom: 1px solid #FF0000;
  background-color: transparent;
}

.content p.caution {
  margin: 1.4em 0.25em 1.4em 25pt;
  padding: 0.2em 0;
  border-top: 1px solid #FFA500;
  border-bottom: 1px solid #FFA500;
  background-color: transparent;
}

.content p.tip img, .content p.note img, .content p.warning img, .content p.caution img {
  display: none;
}

/* Tip/Note/Warning/Caution containers inside list items */
.content li .tip.docutils.container, .content ol li .tip.docutils.container, .content ul li .tip.docutils.container {
  margin-top: 1.4em !important;
  margin-bottom: 1.4em !important;
  margin-left: 0 !important;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
}

.content li .note.docutils.container, .content ol li .note.docutils.container, .content ul li .note.docutils.container {
  margin-top: 1.4em !important;
  margin-bottom: 1.4em !important;
  margin-left: 0 !important;
  padding: 0.2em 0;
  border-top: 1px solid #08407A;
  border-bottom: 1px solid #08407A;
  background-color: transparent;
}

.content li .warning.docutils.container, .content ol li .warning.docutils.container, .content ul li .warning.docutils.container {
  margin-top: 1.4em !important;
  margin-bottom: 1.4em !important;
  margin-left: 0 !important;
  padding: 0.2em 0;
  border-top: 1px solid #FF0000;
  border-bottom: 1px solid #FF0000;
  background-color: transparent;
}

.content li .caution.docutils.container, .content ol li .caution.docutils.container, .content ul li .caution.docutils.container {
  margin-top: 1.4em !important;
  margin-bottom: 1.4em !important;
  margin-left: 0 !important;
  padding: 0.2em 0;
  border-top: 1px solid #FFA500;
  border-bottom: 1px solid #FFA500;
  background-color: transparent;
}

.content li .tip.docutils.container p, .content li .note.docutils.container p,
.content li .warning.docutils.container p, .content li .caution.docutils.container p {
  margin: 0 !important;
  padding: 0;
  display: inline !important;
}

/* Syntax paragraph styling */
.content p.syntax {
  font-family: "Courier New", Courier, mono;
  font-size: 10pt;
  margin-left: 42.2pt;
}

/* Syntax container styling */
.content .syntax.docutils.container {
  font-family: "Courier New", Courier, mono;
  font-size: 10pt;
  margin: 0.25em 0 0.8em 42.2pt;
}

.content .syntax.docutils.container p {
  font-family: "Courier New", Courier, mono;
  font-size: 10pt;
  margin: 0;
}

/* Commandline container styling */
.content .commandline.docutils.container {
  font-size: 10pt;
  margin: 0.25em 0 0.8em 42.2pt;
}

.content .commandline.docutils.container p {
  font-size: 10pt;
  margin: 0;
  line-height: 1.4;
  white-space: pre-line;
}

/* Table styles - matching original template */
.content table.tablefixedtype1 {
  table-layout: fixed;
  border-collapse: collapse;
  width: 90%;
  font-size: 10pt;
  margin: 1em 0 1em 25pt;
}

.content table.tablefixedtype1 th,
.content table.tablefixedtype1 td {
  border: 1px solid #808080;
}

.content table.tablenotfixedtype1 {
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 10pt;
  margin: 1em 0 1em 25pt;
}

.content table.tablenotfixedtype1 th,
.content table.tablenotfixedtype1 td {
  border: 1px solid #808080;
}

.content table.tablefixedtyperibbon {
  table-layout: fixed;
  border-collapse: collapse;
  width: 60%;
  font-size: 10pt;
  margin: 1em 0 1em 25pt;
}

.content table.tablefixedtyperibbon th,
.content table.tablefixedtyperibbon td {
  border: 1px solid #808080;
}

.content table.tablenotfixedtyperibbon th,
.content table.tablenotfixedtyperibbon td {
  border: 1px solid #808080;
}

.content td.alignmiddle {
  vertical-align: middle;
}

.content table.tablesysvar {
  border: none;
  border-collapse: collapse;
  margin: 0 0 16px 25pt;
  font-size: 10pt;
}

.content table.tablesysvar td:first-child,
.content table.tablesysvar th:first-child {
  width: 100px;
  max-width: 100px;
  white-space: nowrap;
}

.content table.tablesysvar td:nth-child(2),
.content table.tablesysvar th:nth-child(2) {
  width: auto;
}

.content table.tablesysvar th,
.content table.tablesysvar td {
  border: none;
}

.content table.tablesysvar th {
  padding: 4px 0px;
  background-color: transparent;
  color: #000000;
}

.content table.tablesysvar td {
  padding: 2px 0px;
}

.content table.tablefixedtype1noborder,
.content table.tablefixedtype1noborder th,
.content table.tablefixedtype1noborder td {
  border: none;
}

.content table.tablefixedtype1noborder {
  table-layout: fixed;
  border-collapse: collapse;
  width: 90%;
  font-size: 10pt;
  margin-left: 25pt;
}

.content table.smallindent {
  margin-left: 2.6em;
}

.content table.mediumindent {
  margin-left: 3.9em;
}

.content table.largeindent {
  margin-left: 5.2em;
}

.content table.noindent {
  margin-left: 0em;
}

.content table.noborder,
.content table.noborder th,
.content table.noborder td {
  border: none;
}

.content table.noborder th {
  background-color: transparent;
  color: #000000;
}

/* Page navigation (prev/next links) */
.page-nav {
  padding-top: 1rem;
  padding-bottom: 0;
}

.page-nav .inner {
  min-height: 2rem;
  margin-top: 0;
  border-top: 1px solid #eaecef;
  padding-top: 1rem;
  overflow: auto;
}

.page-nav .next {
  float: right;
}

.page-nav ul,
ul.page-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-nav ul li,
ul.page-nav li {
  display: inline-block;
}

.page-nav a {
  color: #0F6CB6;
  text-decoration: none;
}

.page-nav a:visited {
  color: #62727F;
}

.page-nav a:hover {
  color: #CF771E;
  text-decoration: underline;
}

/* Body header layout */
.body-header {
  display: flex;
  margin-bottom: 1.5rem;
}

.body-header ul.page-nav {
  flex-grow: 1;
  list-style: none;
  list-style-position: inside;
  text-align: right;
  margin-right: 30px;
  padding: 0;
}

.body-header ul.page-nav li {
  display: inline-block;
}

.body-header ul.page-nav li + li:before {
  content: "|";
  padding: 0 1em;
}

/* Breadcrumbs navigation */
ul.breadcrumbs,
.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.breadcrumbs li,
.breadcrumbs li {
  display: inline-block;
  margin-right: 5px;
}

.body-header .breadcrumbs a {
  color: #0F6CB6;
  text-decoration: none;
}

.body-header .breadcrumbs a:visited {
  color: #62727F;
}

.body-header .breadcrumbs a:hover {
  color: #CF771E;
  text-decoration: underline;
}


.vp-sidebar h3 a {
  text-decoration: none;
  color: #343434;
}

.vp-sidebar h3 a:hover {
  text-decoration: underline;
  color: #212121;
}

/* Override green color for all sidebar links */
.vp-sidebar a {
  color: #343434;
}

.vp-sidebar a:hover {
  color: #212121;
}

.vp-sidebar a.current {
  color: #212121;
}

.theme-dark .vp-sidebar a {
  color: #e0e0e0;
}

.theme-dark .vp-sidebar a:hover {
  color: white;
}

.theme-dark .vp-sidebar a.current {
  color: white;
}

/* Hide "Table of Contents" h3 heading that links to index.html */
.vp-sidebar h3 {
  display: none !important;
}

/* TOC item styling */
.vp-sidebar .toctree-l1 a,
.vp-sidebar .toctree-l2 a,
.vp-sidebar .toctree-l3 a,
.vp-sidebar .toctree-l4 a,
.vp-sidebar .toctree-l5 a {
  text-decoration: none;
  display: inline;
  padding: 0.35rem 0.275rem;
  white-space: normal;
  flex: 1;
}

.vp-sidebar .toctree-l1 a:visited,
.vp-sidebar .toctree-l2 a:visited,
.vp-sidebar .toctree-l3 a:visited,
.vp-sidebar .toctree-l4 a:visited,
.vp-sidebar .toctree-l5 a:visited {
  color: inherit;
}

/* Current/selected page in sidebar */
.vp-sidebar .toctree-l1 a.current,
.vp-sidebar .toctree-l2 a.current,
.vp-sidebar .toctree-l3 a.current,
.vp-sidebar .toctree-l4 a.current,
.vp-sidebar .toctree-l5 a.current {
  font-weight: 600;
}

/* Remove green border/bar from press theme */
.vp-sidebar .toctree-l1 a,
.vp-sidebar .toctree-l2 a,
.vp-sidebar .toctree-l3 a,
.vp-sidebar .toctree-l4 a,
.vp-sidebar .toctree-l5 a {
  border-left: none !important;
}

.vp-sidebar .toctree-l1.current > a,
.vp-sidebar .toctree-l1 a.current,
.vp-sidebar .toctree-l1.current a,
.vp-sidebar .toctree-l2.current > a,
.vp-sidebar .toctree-l2 a.current,
.vp-sidebar .toctree-l2.current a {
  border-left: none !important;
}

/* Remove green vertical line on expanded items */
.vp-sidebar li.current,
.vp-sidebar li.current > ul,
.vp-sidebar .toctree-l1.current,
.vp-sidebar .toctree-l1.current > ul,
.vp-sidebar .toctree-l2.current,
.vp-sidebar .toctree-l2.current > ul {
  border-left: none !important;
}

/* Override any green border-left on sidebar toc elements */
.vp-sidebar ul,
.vp-sidebar li,
.vp-sidebar .sidebar-links,
.vp-sidebar .sidebar-group {
  border-left: none !important;
  border-left-color: transparent !important;
}

/* Indentation for nested levels - matching existing template */
.vp-sidebar .toctree-l1 {
  padding-left: 0.2rem;
}

.vp-sidebar .toctree-l2 {
  padding-left: 0.3rem;
}

.vp-sidebar .toctree-l3 {
  padding-left: 0.5rem;
}

.vp-sidebar .toctree-l4 {
  padding-left: 0.8rem;
}

.vp-sidebar .toctree-l5 {
  padding-left: 1rem;
}

.vp-sidebar .toctree-l6 {
  padding-left: 1.5rem;
}

/* Selected/current item styling - bold text instead of dot (arrow system handles expand/collapse) */
.vp-sidebar li.current > a {
  font-weight: 600;
}

/* Remove Previous/Next topic links from sidebar (rendered by theme.js) */
.vp-sidebar div:has(> .topless),
#contents-panel div:has(> .topless) {
  display: none;
}

/* Dark mode switch styling */
.darkmode-switch .item {
  border-color: #666666;
}

.darkmode-switch .item:first-child {
  border-left-color: #666666;
}

.darkmode-switch .item .icon {
  fill: #666666;
}

.darkmode-switch .item.active {
  background-color: #666666;
}

.darkmode-switch .item:hover:not(.active) {
  background-color: rgba(102, 102, 102, 0.1);
}

/* ===== MAIN LAYOUT STRUCTURE ===== */

/* Toolbar - spans full width at top */
.content-toolbar {
  display: flex;
  align-items: center;
  background-color: #FFE51C;
  padding: 0.5rem 1rem;
  margin: 1rem 1rem 0 1rem;
  border-radius: 0.3125rem;
  min-height: 40px;
}

/* Body wrapper - content + right panel side by side */
.body-wrapper {
  display: flex;
  flex-direction: row;
  margin: 2.5rem 1rem 1rem 0;
  padding-left: 2.5rem;
  padding-right: 1rem;
}

/* Content area */
.content-area {
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

/* ===== RIGHT PANEL STYLES ===== */

/* Right panel container - sticky */
.rightpanel-container {
  display: flex;
  flex-direction: column;
  width: 14rem;
  min-width: 14rem;
  max-width: 14rem;
  padding: 1rem 0 1rem 1rem;
  background-color: white;
  position: sticky;
  top: 5rem;
  height: fit-content;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  align-self: flex-start;
}


/* Print button in header */
.rightpanel-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: color 0.2s;
}

.rightpanel-btn:hover {
  color: #212121;
}

.rightpanel-btn svg {
  display: block;
}

/* Mini TOC container - hidden by default, shown by JS when headings exist */
.minitoc-container {
  flex: 1;
  overflow-y: auto;
  display: none;
}

.minitoc-container.has-items {
  display: block;
}

/* Print button bar with grey background */
.print-bar {
  display: flex;
  align-items: center;
  background-color: #EBECF0;
  padding: 2px 10px;
  height: 36px;
  margin-bottom: 1rem;
}

/* Mini TOC caption */
.minitoc-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.minitoc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.minitoc-item {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
  padding-left: 0.5rem;
  position: relative;
}

/* Tracker bullet - hidden by default */
.minitoc-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: transparent;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

/* Show bullet for selected/current item */
.minitoc-item.selected::before {
  background-color: #444;
}

.minitoc-item a {
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.minitoc-item a:hover {
  color: #C43C00;
}

.minitoc-item.selected a {
  color: #333;
}


/* Dark mode */
.theme-dark .content-toolbar {
  background-color: #F2BF24;
}

.theme-dark .rightpanel-container {
  background-color: #252525;
}

.theme-dark .print-bar {
  background-color: #3a3a3a;
}

.theme-dark .minitoc-caption {
  color: #e0e0e0;
  border-bottom-color: #444;
}

.theme-dark .rightpanel-btn {
  color: #aaa;
}

.theme-dark .rightpanel-btn:hover {
  color: #e0e0e0;
}

.theme-dark .minitoc-item a {
  color: #aaa;
}

.theme-dark .minitoc-item a:hover {
  color: #F2BF24;
}

.theme-dark .minitoc-item.selected::before {
  background-color: #aaa;
}

.theme-dark .minitoc-item.selected a {
  color: #e0e0e0;
}

/* ===== KEYWORD INDEX STYLES ===== */

/* Index search box */
.index-search-box {
  padding: 0.5rem;
  border-bottom: 1px solid #ebecf0;
}

.index-search-box input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ebecf0;
  border-radius: 3px;
  font-size: 0.9rem;
  box-sizing: border-box;
  background: white;
}

.index-search-box input:focus {
  outline: none;
  border-color: #0F6CB6;
}

/* Index content area */
.index-content {
  overflow-y: auto;
  flex: 1;
}

/* Keyword row */
.idx-keyword {
  display: flex;
  align-items: center;
  padding: 0.475rem;
  color: #343434;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.idx-keyword:hover {
  background-color: #EBECF0;
}

/* Direct link keywords (single topic) */
a.idx-direct {
  color: #343434;
}

a.idx-direct:hover {
  color: #343434;
  text-decoration: none;
}

/* Chevron icon */
.idx-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.4rem;
  flex-shrink: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #666;
  transition: transform 0.15s;
}

.idx-expanded .idx-chevron {
  transform: rotate(90deg);
}

.idx-label {
  flex: 1;
}

/* Active/selected item (keyword or topic) */
.idx-keyword.idx-active,
.idx-topic.idx-active {
  font-weight: 700;
  background-color: #EBECF0;
}

/* Collapsed children */
.idx-children.idx-collapsed {
  display: none;
}

/* Topic row */
.idx-topic {
  padding: 0.35rem 0.475rem;
}

.idx-topic a {
  color: #343434;
  text-decoration: none;
  font-size: 0.9rem;
}

.idx-topic:hover {
  background-color: #EBECF0;
}

.idx-topic a:hover {
  text-decoration: none;
}

/* Indentation levels (matching original: 0.5rem per level) */
.idx-level-0 { padding-left: 0.5rem; }
.idx-level-1 { padding-left: 1rem; }
.idx-level-2 { padding-left: 1.5rem; }
.idx-level-3 { padding-left: 2rem; }
.idx-level-4 { padding-left: 2.5rem; }
.idx-level-5 { padding-left: 3rem; }
.idx-level-6 { padding-left: 3.5rem; }
.idx-level-7 { padding-left: 4rem; }

/* Dark mode */
.theme-dark .index-search-box {
  border-bottom-color: #444;
}

.theme-dark .index-search-box input {
  background-color: #333;
  border-color: #555;
  color: #e0e0e0;
}

.theme-dark .idx-keyword,
.theme-dark a.idx-direct {
  color: #e0e0e0;
}

.theme-dark .idx-keyword:hover,
.theme-dark .idx-topic:hover {
  background-color: #3a3a3a;
}

.theme-dark .idx-keyword.idx-active,
.theme-dark .idx-topic.idx-active {
  background-color: #3a3a3a;
}

.theme-dark .idx-chevron {
  border-left-color: #aaa;
}

.theme-dark .idx-topic a {
  color: #e0e0e0;
}


/* ===== PRINT STYLES ===== */
@media print {
  /* Hide everything except content */
  .navbar,
  .vp-sidebar,
  .sidebar-mask,
  .content-toolbar,
  .body-header,
  .page-nav,
  .rightpanel-container,
  .darkmode-switch,
  .sidebar-tabs,
  .sidebar-panel {
    display: none !important;
  }

  /* Reset layout for print */
  .theme-container,
  .body-wrapper,
  .content-area,
  .page {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
  }

  /* Ensure proper text colors for print */
  body,
  .content,
  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h5,
  .content h6,
  .content p,
  .content li,
  .content td,
  .content th {
    color: #000 !important;
    background: white !important;
  }

  /* Links - don't show URL after link text */
  .content a[href]:after {
    content: none;
  }

  /* Hide headerlinks */
  .content a.headerlink {
    display: none !important;
  }

  /* Page breaks */
  .content h1,
  .content h2 {
    page-break-after: avoid;
  }

  .content table,
  .content img {
    page-break-inside: avoid;
  }

  /* Tables */
  .content table {
    border-collapse: collapse !important;
  }

  .content table th,
  .content table td {
    border: 1px solid #000 !important;
  }
}

/* ============================================
   SEARCH HIGHLIGHT (from Sphinx basic.css)
   ============================================ */
dt:target, span.highlighted {
  background-color: #fbe54e;
}

rect.highlighted {
  fill: #fbe54e;
}
