/* Main documentation container */
.doc-container {
    display: grid;
    grid-template-columns: auto 1fr; /* Two columns: TOC and content */
    gap: 20px; /* Adds space between TOC and content */
    max-width: 1200px;
    margin: auto;
    line-height: 1.6;
    color: #333;
    position: relative;
    padding-bottom:1em;
}

/* Table of Contents (TOC) styling */
.doc-container .toc {
    width: 280px; /* Fixed width for TOC */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0.5em;
    overflow-y: auto;
    height: fit-content;
    max-height: 80vh;
    position: sticky;
    top: 6em;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

/* Content area */
.doc-container .content {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 4em;
    word-break: break-word; /* Prevent long words from causing overflow */
    min-width: 0; /* Prevent flexbox issues with shrinking */
    position:relative;
}

.doc-container .toc h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: bold;
  padding-left:1em;
  padding-right:1em;
  border:0;
  margin-top:1em !important;
}

.doc-container .toc ol {
    padding-left: 1.5em;
    padding-right:1em;
    list-style-type: decimal; /* Default numbering style */
}
.doc-container .toc ol li::marker {
    color:#999;
}
.doc-container .toc ol.no-marks {
  list-style-type: "-  ";
  margin:0 0 0.5em 1em;
}

.doc-container .toc ol li {
  padding:0.25em 0;
  line-height:1.4em;
}
.doc-container .toc ol ol {
  padding-left: 0;
  padding-right: 0;
  list-style-type: "-  ";
  margin:0 0 0.5em 1em;
  display:none;
  
}
.doc-container .toc li.expanded ol,
.doc-container .toc li.temp-expanded ol,
.doc-container .toc > ul.expanded,
.doc-container .toc ol.expanded li ol {
  display:block;
}

.doc-container .toc .controls {
  background:#ddd;
  padding:0.25em;
  text-align:center;
}
.doc-container .toc .controls a {
  color:#1a1a1a;
  display:inline-block;
  padding:0.25em;
  cursor: pointer;
  line-height:1.5em;
  width:2em;
  text-align:center;
  border-radius: 100%;
  position:relative;
  transition: none;
}
.doc-container .toc .controls a:hover {
  background:#da0000;
  color:#FFF;
} 


.doc-container .controls .copy-bubble {
  position: absolute;
  top: 100%;                /* place below the icon */
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #da0000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.doc-container .controls .copy-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(2px); /* subtle upward shift */
}
.doc-container .controls .copy-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;              /* arrow points up */
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #da0000;
}

.doc-container .highlight {
    background-color: #f4b2b2;

}

.doc-container .highlight.current {
  background-color: #da0000;
  font-weight: bold;
  color:#FFF;
}

.doc-container .toc a {
  text-decoration: none;
  color:#1a1a1a;
  font-weight: 500;
  transition: color 0.2s;
}

.doc-container .toc a:hover {
  text-decoration: none;
  color:#da0000;
}

.doc-container .toc a.current {
  font-weight:bold;
  color:#da0000;
}

.doc-container .toc-search {
  padding:0.5em;
}

.doc-container .toc-search input {
  background:#DDD;
  padding:0.5em;
  color:#FFF;
  border-radius:0.25em;
  box-shadow: none;
  transition: background 0.3s ease;
}
.doc-container .toc-search input:focus {
  box-shadow: none;
  background:#1a1a1a;
}
/* When input has text */
.doc-container .toc-search input:not(:placeholder-shown) {
    background:#1a1a1a;
}



/* Headings */
/* Headings */
.doc-container h2 {
  font-size: 1.5em;
  margin-top: 2em !important; /* Increased space above h2 */
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  padding-top:0 !important;
}

.doc-container .content > h2:first-child {
  margin-top:0 !important;
}

.doc-container h3 {
  font-size: 1.3em;
  margin-top: 1.6em; /* Increased space above h3 */
}

.doc-container h4 {
  font-size: 1.1em;
  margin-top: 1.6em; /* Increased space above h4 */
}

/* Paragraphs and lists */
.doc-container p {
  margin: 10px 0 20px; /* Increased space below paragraphs */
}

.doc-container ul, .doc-container ol {
  margin: 10px 0 20px 20px; /* Increased space below lists */
}

/* Code blocks */

.doc-container pre {
  background-color: #f5f5f5;
  border-radius: 0.5em;
  overflow: hidden !important; 
  max-width: 100%;
  line-height: 1.4;
  position:relative;
  margin:0.5em 0 2em;
  border:1px solid #ddd;
}

.doc-container code {
  display: inline-block !important;
  vertical-align: middle;
  background-color: #f5f5f5;
  border-radius: 0.5em !important;
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
  padding:0.25em 0.5em !important;
  font-size:0.9em;
  overflow-x:auto;
  margin:0 !important;
}


body.boundary-devices .doc-container code {
  background-color: #f5f5f5;
}

.doc-container pre code {
  padding:2em !important;

  display:block !important; 
}
.doc-container pre .actions {
  position:absolute;
  top:0em;
  right:0;
  font-size:0.9em;
}
.doc-container .ai-response {
  position: relative;
  color:#FFF;
  margin-top:-1.7em;
  background:#1a1a1a;
  border-radius: 0.5em;
  padding:2em;
  font-size:0.9em;
  margin-bottom:2em;
  line-height:1.8em;
  transition:background 3s ease;
}
.doc-container .ai-response code {
  background:#333 !important;
  color:#FFF !important;
  vertical-align:middle;
  margin:0.1em 0 !important;
}

.doc-container .ai-response pre {
background-color: transparent;
max-width: 100%;
line-height: 1.4;
position: relative;
margin: 0;
border: 0;
}

/* Loading animation */
.doc-container .ai-response::after {
  display:block;
  content: "Generated by AI. Please check for accuracy.";
  color:#999;
  font-size:0.7em;
  width:100%;
  padding:1em 0 0;
  margin-bottom:-2em;
  text-align:right;
}

.doc-container .ai-response.loading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding:0;
  height: 6px; /* Height of the gradient area */
  margin:0;
  background: linear-gradient(131deg, rgba(26,26,26,1) 0%, rgba(217,217,217,1) 19%, rgba(26,26,26,1) 44%, rgba(218,0,0,1) 72%, rgba(26,26,26,1) 99%);
  background-size: 200% 100%;
  animation: gradientScroll 3s linear infinite; 
  border-bottom-left-radius: 0.5em; /* Match parent border-radius if needed */
  border-bottom-right-radius: 0.5em;
}

/* Continuous scrolling keyframes */
@keyframes gradientScroll {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.doc-container .ai-response:before {
  content: "";
  position: absolute;
  top: -14px; /* Adjusts the vertical position of the triangle */
  right: 30px; /* Adjusts the horizontal position from the right edge */
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #1a1a1a; /* Matches the border color of the container */
}

.doc-container pre .actions span {
  cursor:pointer;
  display:inline-block;
  width: 32px;                   /* Adjust size as needed */
  height: 32px; 
  background-size: 18px 18px;    /* Adjust size of the icon itself */
  background-position: center;   /* Centers the icon */
  background-repeat: no-repeat;
}
.doc-container pre .actions span.copy-icon {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%231a1a1a;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M39.87,1.86h-17.33c-3.73,0-6.76,3.03-6.76,6.76v5.29h-6.42c-3.73,0-6.76,3.03-6.76,6.76v17.33c0,3.73,3.03,6.76,6.76,6.76h17.33c3.73,0,6.76-3.03,6.76-6.76v-5.29h6.42c3.73,0,6.76-3.03,6.76-6.76V8.61c0-3.73-3.03-6.76-6.76-6.76ZM30.45,37.98c0,2.07-1.68,3.76-3.76,3.76H9.37c-2.07,0-3.76-1.69-3.76-3.76v-17.33c0-2.07,1.68-3.76,3.76-3.76h6.42v9.04c0,3.73,3.03,6.76,6.76,6.76h7.9v5.29ZM43.63,25.94c0,2.07-1.69,3.76-3.76,3.76h-17.33c-2.07,0-3.76-1.68-3.76-3.76V8.61c0-2.07,1.69-3.76,3.76-3.76h17.33c2.07,0,3.76,1.69,3.76,3.76v17.33Z'/%3E%3C/svg%3E");
}
.doc-container pre .actions span.copy-icon:hover,
body.dark-mode .doc-container pre .actions span.copy-icon {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M39.87,1.86h-17.33c-3.73,0-6.76,3.03-6.76,6.76v5.29h-6.42c-3.73,0-6.76,3.03-6.76,6.76v17.33c0,3.73,3.03,6.76,6.76,6.76h17.33c3.73,0,6.76-3.03,6.76-6.76v-5.29h6.42c3.73,0,6.76-3.03,6.76-6.76V8.61c0-3.73-3.03-6.76-6.76-6.76ZM30.45,37.98c0,2.07-1.68,3.76-3.76,3.76H9.37c-2.07,0-3.76-1.69-3.76-3.76v-17.33c0-2.07,1.68-3.76,3.76-3.76h6.42v9.04c0,3.73,3.03,6.76,6.76,6.76h7.9v5.29ZM43.63,25.94c0,2.07-1.69,3.76-3.76,3.76h-17.33c-2.07,0-3.76-1.68-3.76-3.76V8.61c0-2.07,1.69-3.76,3.76-3.76h17.33c2.07,0,3.76,1.69,3.76,3.76v17.33Z'/%3E%3C/svg%3E");
}
.doc-container pre .actions span.checked {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%231a1a1a;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M38.31,8.42c-.74-.38-1.64-.1-2.02.64l-14.14,27.19-11.04-5.74c-.74-.38-1.64-.1-2.02.64-.38.74-.1,1.64.64,2.02l12.37,6.43c.22.12.46.17.69.17.54,0,1.06-.29,1.33-.81l14.83-28.52c.38-.74.1-1.64-.64-2.02Z'/%3E%3C/svg%3E");
}
.doc-container pre .actions span.checked:hover,
body.dark-mode .doc-container pre .actions span.checked {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M38.31,8.42c-.74-.38-1.64-.1-2.02.64l-14.14,27.19-11.04-5.74c-.74-.38-1.64-.1-2.02.64-.38.74-.1,1.64.64,2.02l12.37,6.43c.22.12.46.17.69.17.54,0,1.06-.29,1.33-.81l14.83-28.52c.38-.74.1-1.64-.64-2.02Z'/%3E%3C/svg%3E");
}
.doc-container pre .actions span.ai-helper {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%231a1a1a;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M22.28,37.98c-1.74,0-3.13,1.39-3.13,3.02,0,1.74,1.39,3.13,3.13,3.13,1.62,0,3.02-1.39,3.02-3.13,0-1.62-1.39-3.02-3.02-3.02Z'/%3E%3Cpath class='cls-1' d='M23.78,3.91c-3.77,0-6.55.81-8.99,2.61-.81.64-1.97,1.56-1.97,2.55s.81,1.74,1.8,1.74c.46,0,.87-.12,1.16-.41,1.91-1.97,4.18-3.02,7.77-3.02s7.83,2.26,7.83,7.71c0,3.94-1.74,5.45-5.68,8.64-4.7,3.83-5.28,6.55-5.28,9.86,0,1.16.81,1.8,1.8,1.8,1.04,0,1.8-.64,1.8-1.74,0-2.38.35-4.35,4.64-7.83,3.94-3.25,6.55-5.57,6.55-10.9,0-7.83-6.32-11.02-11.42-11.02Z'/%3E%3C/svg%3E");
}
.doc-container pre .actions span.ai-helper:hover:not(.disabled),
body.dark-mode .doc-container pre .actions span.ai-helper {
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48.03 48.03'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M22.28,37.98c-1.74,0-3.13,1.39-3.13,3.02,0,1.74,1.39,3.13,3.13,3.13,1.62,0,3.02-1.39,3.02-3.13,0-1.62-1.39-3.02-3.02-3.02Z'/%3E%3Cpath class='cls-1' d='M23.78,3.91c-3.77,0-6.55.81-8.99,2.61-.81.64-1.97,1.56-1.97,2.55s.81,1.74,1.8,1.74c.46,0,.87-.12,1.16-.41,1.91-1.97,4.18-3.02,7.77-3.02s7.83,2.26,7.83,7.71c0,3.94-1.74,5.45-5.68,8.64-4.7,3.83-5.28,6.55-5.28,9.86,0,1.16.81,1.8,1.8,1.8,1.04,0,1.8-.64,1.8-1.74,0-2.38.35-4.35,4.64-7.83,3.94-3.25,6.55-5.57,6.55-10.9,0-7.83-6.32-11.02-11.42-11.02Z'/%3E%3C/svg%3E");
}

.doc-container pre .actions span:hover {
  background-color:#da0000;
  color:#fff;
}
.doc-container pre .actions span.disabled,
.doc-container pre .actions span.disabled:hover {
  opacity:0.5;
  background-color:transparent;
  cursor:default;
}
.doc-container pre .language-title {
  position:relative;
  background:#e6e6e6;
  padding:0.5em 0.75em;
  font-size:0.8em;
  text-transform:lowercase;
  overflow:hidden;
  color:#666;
  min-height:2.25em;
}
.doc-container hr { display:none; }

/* Links */
.doc-container a {

  text-decoration: none;
  transition: color 0.2s;
}

.doc-container a:hover {
text-decoration:underline;
}
.doc-container .doc-name a span {
  color: #1a1a1a;
  display:inline-block;
  margin-left:0.25em;
}

/* Blockquotes */
.doc-container blockquote {
  border-left: 4px solid #ddd;
  margin: 10px 0;
  padding-left: 15px;
  font-style: italic;
  color: #555;
}

/* Tables */
.doc-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  word-break: keep-all;
  font-size:0.9em;
}

.doc-container table table {
  margin:0;
}



.doc-container th, .doc-container td {
  border: 1px solid #ddd;
  padding: 0.25em;
  min-width:6em;
}

.doc-container th {
  padding:8px;
  background-color: #CCC;
  font-weight: bold;
  text-align: left;
  background-color:#1a1a1a;
  color:#FFF;
  border-color:#444;
}

/* Images */
.doc-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  max-height:600px;
  display:block;
}
.doc-container .content table img {
  display:block;
  margin:0.5em auto;
}

.doc-container .icon-alert {
  display:block;
  background:#fbe5e5;
  border-radius:0.5em;
  position:relative;
  padding:2em;
  padding-left:3em;
  margin:0.25em 0;
}
.doc-container .icon-alert:before {
  color:#da0000;
}

.doc-container .icon-alert code {
  background:#FFF;
  color:#da0000;
}
.doc-container table td h6 {
white-space: nowrap;
}
.doc-container .icon-info {
  display:block;
  border:1px solid #ddd;
  border-radius:0.5em;
  position:relative;
  padding: 2em;
  padding-left: 3em;
}
.doc-container .icon-info:before,
.doc-container .icon-alert:before {
  position:absolute;
  left:1em;
  top:2.25em;
}

.doc-container .icon-info p,
.doc-container .icon-alert p {
  margin:0 !important;
}
.doc-container .icon-info,
.doc-container .icon-alert {
  margin:0.25em 0 0.25em;
}

.doc-container td, th {
  padding: 8px;
  border: 1px solid #ddd; /* Only if you actually want borders */
  vertical-align: top;
  line-height: 1.4;
}

.doc-container table tbody tr:nth-child(odd) {
  background:#FFF;
}
.doc-container table tbody tr:nth-child(even) {
  background:#f5f5f5;
}


.doc-container .content span > img,
.doc-container .content div > img {
  max-height:500px;
  margin:2em auto;
  display:block;
  border:1px solid #e6e6e6;
  max-width:90%;
}

.doc-container .toc > ol {
  padding-bottom: 1em;
}
.doc-container .toc ol + .related-products,
.doc-container .toc .buttons + .related-products  {
  border-top:1px solid #e6e6e6 !important;
}

.doc-container .toc .related-products a {
  display:flex;
  flex-wrap:nowrap;
  padding:0.5em 3em 0.5em 1em;
  background-color:#FFF;
  
  align-items: center;
  position:relative;
}
.doc-container .toc .related-products a.product {
font-size:0.9em;
}
.doc-container .toc .related-products a.part {
  padding:0.3rem 2rem 0.3rem 1rem;
  font-size:0.9em;
}

.doc-container .toc .related-products a.part span {
  display:inline-block;
  white-space: nowrap;       
overflow: hidden;              
text-overflow: ellipsis; 
}
.doc-container .toc .related-products a + a {
border-top:1px solid #e6e6e6;
}
.doc-container .toc .related-products a:before {
  position:absolute;
  right:0.75rem;
  top:50%;
  margin-top:-0.5em;
  color:#CCC;
  transition: right 0.5s ease;
}
.doc-container .toc .related-products a:hover:before {
  display:block;
  right:0.5em;
  color:#da0000;
}
.doc-container .toc .button {
  width:100%;
  border-radius:0;
  margin:0;
  padding:1em;
}
.doc-container .toc .buttons {
  padding:0em;
}

.doc-container a.button:hover { text-decoration: none; }

.doc-container .toc .related-products img { width:40px; margin-right:0.5em; }

.doc-container .file-bar { width:100%; text-align:right; }
.doc-container .file-bar a:hover { text-decoration:none; }

body.documentation .block-page-title-block h1 span,
body.document .block-page-title-block h1 span { font-size:1.4rem; margin-bottom:0.25em; display:block; color:#dfd5c8; }


body.documentation .ask-question {
  margin: auto;
  padding: 9em 2rem 5em;
  background: rgb(26, 26, 26);
  color: rgb(255, 255, 255);
  text-align: left;
}
body.documentation .ask-question h1 { max-width:1200px; margin:auto; font-size:3.2em; text-align:center; }
body.documentation .ask-question input[name="question"] {
  border-radius:2em;
  max-width:600px;
  margin:1rem auto 0;
  display:block;
}

img.thumb-circle { max-width:50px; padding:2px; background:#FFF; border-radius:100%; vertical-align: middle; border:2px solid #1a1a1a; margin-right:0.5em; }
a:hover img.thumb-circle { border-color:#da0000; }

body.documentation table { width:100%; }
body.documentation table a:before { display:none; }
body.documentation .content h2 { margin-top:2em; }

body.documentation .doc-entry {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  padding: 0.5em 0;
  border-bottom: 1px solid #ddd;
}

body.documentation .doc-entry:nth-child(even) {
  background-color: #f9f9f9;
}

body.documentation .doc-previous {
  border-top:1px solid #ddd;
  margin-top:0.5em;
  opacity:0.7;
}
body.documentation .doc-previous .doc-entry {
  border:0 !important;
  background-color:transparent;
}

body.documentation .doc-os {
  font-weight: bold;
  color: #1a1a1a;
  padding: 0 1em 0.25em;
  font-size: 0.95em;
  position:relative;
}
body.documentation .doc-previous {
  display:none;
}
body.documentation .release-toggle {
  color:#1a1a1a;
  background:0;
  padding:0;
  font-size:0.9em;
  margin-left:1em;
  /* right:1em;
  top:0.25em;
  position:absolute; */
}
body.documentation .release-toggle:hover {
  color:#da0000;
}
body.documentation .doc-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.documentation .doc-name {
  flex: 1;
  padding: 0 1em;
}

body.documentation .doc-date {
  text-align: right;
  padding: 0 1em;
}

body.faq .doc-container pre code { 
  margin:0 !important;
  background:transparent !important;
  border-radius:0;
}

.doc-container .content ol {
  padding-left:2em;
}

.doc-container .content li {
  margin-bottom:0.5em;
}

.doc-container .content li p {
margin:0 !important;
}

.doc-container .content ul,
.doc-container .content ol {
margin: 0.5em 0 1em 0;
}

.doc-container .content li ul,
.doc-container .content li ol {
margin: 0;
}

.doc-container .content td p {
margin: 0 0 1em 0;
}

body.documentation main.main .block-page-title-block {
  padding:7em 2rem 4rem 2rem;
}
body.documentation main.main .block-page-title-block ul {
  max-width:1200px;
  margin:1em auto 0;
  list-style:none;
  padding:0;
  width:100%;
}
body.documentation main.main .block-page-title-block ul li {
  display:inline-block;
  padding-right:1.6em;
}
body.documentation main.main .block-page-title-block ul a {
  color: #dfd5c8;
  font-weight:bold;
}
body.documentation main.main .block-page-title-block ul a:hover {
  color:#FFF; 
}

body.documentation main.main .block-page-title-block p {
  margin:1em auto 0 !important;
}

/* Product tile container */
body.documentation .product-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top:1em;
}

/* Individual product tile */
body.documentation .product-tile {
    width: 150px;
    padding:1em;
    border:1px solid #e6e6e6;
    border-radius: 0.5em;
    text-align: center;
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

body.documentation .product-tile a {
  color:#1a1a1a;
}
body.documentation .product-tile a:hover {
  text-decoration: none; 
}
body.documentation .product-tile:hover a {
  color:#da0000; 
}
/* Tile hover effect */
body.documentation .product-tile:hover {
    box-shadow: 0 0 0.5em rgba(218, 0, 0, 0.2); 
    border-color:#da0000;

}

/* Product image styling */
body.documentation .product-tile img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom:1em;
}

/* Product title styling */
body.documentation .product-tile span {
    font-size: 1em;
    font-weight: 600;

}

.doc-container .content .sort-toggle {
  position:absolute;
  right:0;
  top:0;
}
.sort-toggle {
    display: flex;
    align-items: center;
    position: relative;
    width: fit-content;
    border-radius: 2em;
    background-color: #f6f6f6; /* Default background */
    overflow: hidden;
    border:1px solid #ddd;
    cursor: pointer;
    transition: border 0.3s ease;
    font-size:0.9em;
}

/* Each option styling */
.sort-option {
    padding: 0.25em 1.2em;
    position: relative;
    z-index: 1; /* Ensure options stay on top of the slider */
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease; /* Text color transition */
}
.sort-toggle:hover {
  border-color:#1a1a1a;
}

/* Active slider background */
.sort-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: var(--active-width, 0px);
    left: var(--active-left, 0px);
    border-radius: 2em;
    background-color: #1a1a1a;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 0;
}

/* Active state for text color */
.sort-option.active {
    color: #fff;
}

/* Responsive layout */
@media (max-width: 768px) {
    body.documentation .product-tiles {
        flex-direction: column;
        align-items: center;
    }

    body.documentation .product-tile {
        width: 100%;
        max-width: 350px;
    }
}

/* Main container styling for the PDF viewer */
#pdf-viewer {
    width: 100%; /* Take full width of the parent container */
    height: 80vh; /* Take full height of the viewport */

    background-color: #f5f5f5; /* Light background color for contrast */
    border:1px solid #ddd;
    overflow-y: auto; /* Allow scrolling through pages */
    border-radius:0.5em;
}

/* Optional: Add a border or shadow for aesthetic */
#pdf-viewer embed {
    width: 100%; /* Ensure embedded PDF fills the container */
    height: 100%; /* Ensure embedded PDF fills the container */
    border: 1px solid #ddd; /* Light border for contrast */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#pdf-viewer .page {
  display:block;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#pdf-viewer .page canvas {
    width: 100%; /* Make the canvas responsive */
    height: auto; /* Maintain aspect ratio */
}

@media screen {
  /* ===== DARK MODE ===== */

  /* Page backgrounds / text */
  body.dark-mode:is(.document, .documentation, .faq) main.main {
    background:#1a1a1a !important;
    color:#e6e6e6;
  }
  body.dark-mode.faq section.center.margin { margin-bottom:0 !important; }

  /* Title blocks + ask-question */
  body.dark-mode:is(.document, .documentation, .faq) main.main .block-page-title-block,
  body.dark-mode.documentation .ask-question { background:#333; }

  /* Container baseline */
  body.dark-mode .doc-container { color:#e6e6e6; }

  /* TOC panel */
  body.dark-mode .doc-container .toc {
    background:#191919;
    border-color:#333;
  }
  body.dark-mode .doc-container .toc h2 { color:#f0f0f0; }
  body.dark-mode .doc-container .toc a { color:#dfd5c8; }
  body.dark-mode .doc-container .toc a:hover,
  body.dark-mode .doc-container .toc a.current { color:#da0000; }
  body.dark-mode .doc-container .toc ol li::marker { color:#888; }

  /* TOC controls */
  body.dark-mode .doc-container .toc .controls { background:#333; }
  body.dark-mode .doc-container .toc .controls a { color:#fff; }
  body.dark-mode .doc-container .toc .controls a:hover { background:#da0000; color:#fff; }

  /* Search */
  body.dark-mode .doc-container .toc-search input {
    background:#2a2a2a;
    color:#fff;
  }
  body.dark-mode .doc-container .toc-search input:is(:focus, :not(:placeholder-shown)) { background:#111; }

  /* Headings & rules */
  body.dark-mode .doc-container h2 { border-bottom-color:#333; color:#fff; }
  body.dark-mode .doc-container :is(h3, h4) { color:#f0f0f0; }

  /* Links in content */
  body.dark-mode .doc-container .content a { color:#dfd5c8; }
  body.dark-mode .doc-container .content a:hover,
  body.dark-mode .doc-container .doc-name a span { color:#fff; }

  /* Highlights (search) */
  body.dark-mode .doc-container .highlight { background:#5a2b2b; color:#fff; }
  body.dark-mode .doc-container .highlight.current { background:#da0000; color:#fff; }

  /* Code blocks */
  body.dark-mode .doc-container pre {
    background:#333;
    border-color:#444;
  }
  body.dark-mode .doc-container code { background:#202020; color:#f3f3f3; }
  body.dark-mode .doc-container pre code { background:transparent; }
  body.dark-mode .doc-container pre .language-title { background:#2a2a2a; color:#bbb; }
  body.dark-mode .doc-container pre .actions span { color:#fff; }
  body.dark-mode .doc-container pre .actions span:hover { background-color:#da0000; color:#fff; }

  /* AI response */
  body.dark-mode .doc-container .ai-response { background:#111; }
  body.dark-mode .doc-container .ai-response::before { border-bottom-color:#111; }
  body.dark-mode .doc-container .ai-response::after { color:#aaa; }

  /* Blockquotes */
  body.dark-mode .doc-container blockquote { border-left-color:#444; color:#cfcfcf; }

  /* Tables (general) */
  body.dark-mode .doc-container table { background:#181818; }
  body.dark-mode .doc-container :is(th, td) { border-color:#333; color:#e6e6e6; }
  body.dark-mode .doc-container th { background:#333; color:#f0f0f0; border-color:#444; }
  body.dark-mode .doc-container table tbody tr:nth-child(odd) { background:#1a1a1a; }
  body.dark-mode .doc-container table tbody tr:nth-child(even) { background:#1f1f1f; }

  /* Images framing inside rich text */
  body.dark-mode .doc-container .content :is(span, div) > img { border-color:#333; }

  /* Info/alert boxes (general) */
  body.dark-mode .doc-container .icon-info { border-color:#333; }
  body.dark-mode .doc-container .icon-alert { background:#3a1a1a; }
  body.dark-mode .doc-container .icon-alert code { background:#111; color:#ffb3b3; }

  /* TOC related products list */
  body.dark-mode .doc-container .toc .related-products { border-top-color:#333 !important; }
  body.dark-mode .doc-container .toc .related-products a {
    background:#1c1c1c;
    color:#ddd;
  }
  body.dark-mode .doc-container .toc .related-products a + a { border-top-color:#333; }
  body.dark-mode .doc-container .toc .related-products a::before { color:#666; }
  body.dark-mode .doc-container .toc .related-products a:hover::before { color:#da0000; }

  /* Copy bubble */
  body.dark-mode .doc-container .controls .copy-bubble { background:#da0000; color:#fff; }
  body.dark-mode .doc-container .controls .copy-bubble::after { border-bottom-color:#da0000; }

  /* Inline HR hidden */
  body.dark-mode .doc-container hr { display:none; }

  /* === DARK MODE: DOCUMENTATION-SPECIFIC === */
  body.dark-mode:is(.documentation, .document) h1 span { color:#dfd5c8; }

  /* Docs list/grid */
  body.dark-mode.documentation img.thumb-circle { background:#1a1a1a; border-color:#444; }
  body.dark-mode.documentation a:hover img.thumb-circle { border-color:#da0000; }
  body.dark-mode.documentation .doc-entry { border-bottom-color:#333; }
  body.dark-mode.documentation .doc-entry:nth-child(even) { background-color:#1f1f1f; }
  body.dark-mode.documentation .doc-previous { border-top-color:#333; opacity:.9; }
  body.dark-mode.documentation .doc-os { color:#fff; }
  body.dark-mode.documentation .release-toggle { color:#dfd5c8; }
  body.dark-mode.documentation .release-toggle:hover { color:#da0000; }
  body.dark-mode.documentation :is(.doc-name, .doc-date) { color:#e6e6e6; }
  body.dark-mode.documentation .content h2 { color:#eee; }

  /* Title block links */
  body.dark-mode.documentation main.main .block-page-title-block ul a { color:#dfd5c8; }
  body.dark-mode.documentation main.main .block-page-title-block ul a:hover { color:#fff; }

  /* Product tiles */
  body.dark-mode.documentation .product-tile {
    border-color:#333;
    background:#1f1f1f;
  }
  body.dark-mode.documentation .product-tile a { color:#dfd5c8; }
  body.dark-mode.documentation .product-tile:hover {
    box-shadow:0 0 0.5em rgba(218,0,0,.15);
    border-color:#da0000;
  }
  body.dark-mode.documentation .product-tile:hover a { color:#da0000; }
  body.dark-mode.documentation .product-tile span { color:#f0f0f0; }

  /* Sort toggle */
  body.dark-mode.documentation .sort-toggle { background-color:#222; border-color:#333; }
  body.dark-mode.documentation .sort-toggle:hover { border-color:#555; }
  body.dark-mode.documentation .sort-toggle::before { background-color:#333; }
  body.dark-mode.documentation .sort-option { color:#dfd5c8; }
  body.dark-mode.documentation .sort-option.active { color:#fff; }

  /* Tables (docs page overrides) */
  body.dark-mode.documentation table { color:#e6e6e6; }
  body.dark-mode.documentation td { border-color:#333; }
  body.dark-mode.documentation th { border-color:#222; background-color:#333; color:#f0f0f0; }
  body.dark-mode.documentation table tbody tr:nth-child(even) { background:#1f1f1f; }

  /* Info/alert blocks (docs page) */
  body.dark-mode.documentation .icon-info {
    border-color:#333;
    background:#1f1f1f;
    color:#e6e6e6;
  }
  body.dark-mode.documentation .icon-alert { background:#3a2020; color:#ffd9d9; }
  body.dark-mode.documentation .icon-alert code { background:#1a1a1a; color:#ffb3b3; }

  /* Images + copy bubble within docs container (mirror general styles) */
  body.dark-mode.documentation .doc-container .content :is(span, div) > img { border-color:#333; }
  body.dark-mode.documentation .doc-container .controls .copy-bubble { background:#da0000; color:#fff; }
  body.dark-mode.documentation .doc-container .controls .copy-bubble::after { border-bottom-color:#da0000; }
}