/* HBCD HEX color codes */ 
/* green: #24AE70 */ 
/* blue: #199bd6 */ 
/* red: #be074c */ 
/* black/gray: #6b6b6b */ 

/* Specs for headers */ 
h1 {
    font-size: 2em;
    margin: 2 0 5px;
    font-weight: normal;
    border-bottom: 2px solid #6b6b6b66;
    padding-bottom: 5px;
  }
h2 {
    font-size: 1.5em;
    margin: 40px 0 5px;
    font-weight: normal;
    border-bottom: 1px solid #6b6b6b66;
    padding-bottom: 5px;
}    
h3 {
  font-size: 1.3em; 
  margin: 30px 0 0; 
  font-weight: normal;
  border-bottom: 1px solid #6b6b6b66;
  padding-bottom: 0;
  }    
h4 {
  font-family: Lato;
  font-size: 1.1em; 
  margin-bottom: 0;
  font-weight: bold;
  border-bottom: 0.5px solid #6b6b6b66;
  padding-bottom: 0;
  padding-top: 0;
  }    
h5 {
  font-family: Lato;
  font-size: 1em;
  margin: 0;
  padding: 0;
  font-weight: bold;
  border-bottom: 0.5px solid #6b6b6b66;
  line-height: 1.2;
  overflow: hidden;
}

/* SUBTLE NOTES */
.subtle-note {
  color: #6c757d;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
}

/* General Pill styling for orgs (UNIQUE TO INTERNAL DOCS)*/
.org-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin: 0 6px;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  white-space: nowrap;
  background-color: #0af0e1a7;
  position: relative;
  top: -1px;
}

/* Pill styling for pillars of HDCC (on overview page and throughout) */
.pill-center {
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  gap: 6px;
}
.pill-link-wrapper {
  text-decoration: none;
}
.pill-link {
  display: inline-flex; /* change from inline-block to flex for centering */
  align-items: center;
  justify-content: center;
  background-color: #f3e9ff;
  color: #4b0082;
  border-radius: 999px;
  padding: 1px 1px;
  font-size: 0.9em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 36px;
  height: 36px;
}
.pill-link:hover {
  background-color: #ead4ff;
  color: #3a006b;
  border-color: #b884ff;
}

/* Remove tooltip styling for the pill boxes specifically */
.pill-link .tooltip {
    border-bottom: none;
}
.pill-link .tooltip:hover {
    border-bottom: none;
}
.pill-center .tooltip {
    border-bottom: none;
}

/* styling text to make more subtle, e.g. "Click to Expand" */
.hint {
  color: #888;
  font-size: 90%;
  font-style: normal;
  font-weight: normal;
  background-color: transparent; /* <--- critical */
}

/* styling for text with hyperlinks (not TOC, previous and next footer buttons, or images) */
.rst-content a:not(.rst-footer-buttons a):not(:has(img)):not(.pill-link-wrapper a):not(.pill-center a) {
  color: #0066cc;
  font-weight: 500;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  text-decoration-thickness: thin; 
  text-decoration-thickness: 0.1px; 
  background-color: rgba(0, 102, 204, 0.031); /* Add slight color box around text with embedded links too */
  padding: 0 2px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.rst-content a:hover:not(.rst-footer-buttons a):not(:has(img)):not(.pill-center a) {
  background-color: rgba(0, 102, 204, 0.15);
  text-decoration: underline;
}

/* Inline code styling */
:not(pre) > code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #c900cc !important;
  font-size: 0.8em !important;
  font-weight: 500;
}

code, pre {
  font-family: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;
  font-size: 0.95em;
}


/* Style for expand all button (measures overview page) */
#toggle-all-btn {
  background-color: #d0dff0;
  color: #474646;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.592);
  display: block;
}
#toggle-all-btn:hover {
  transform: scale(1.05); /* Slight zoom effect */
}

/* Style for folder tree display */
.folder-tree {
  font-family: monospace;
  background-color: #282c34; 
  color: #ffffff;
  font-size: 12px;
  padding: 10px;
  border-radius: 5px;
  white-space: pre;
  display: block;
  overflow-x: auto; /* Allows horizontal scrolling */
}
/* Style for placeholder variables in angle brackets */
.folder-tree .placeholder {
  color: #0af0e1
}
.folder-tree .hashtag {
  color: #b0d619
}
.folder-tree .label {
  color: #199bd6
}
.folder-tree .subses {
  color: #ffd000
}
.gray-text {
  color: #505050;
}
.blue-text {
  color: blue;
}

/* Change color of upper left-hand background */ 
.wy-side-nav-search {background-color: #199bd6;}

/* Centering images */ 
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* References section */ 
.references p {
    font-size: smaller;
    line-height: 1.2; /* Reduce line spacing (default is around 1.5-1.6) */
    margin: 5px 0; /* Reduce spacing between paragraphs or list items */
    padding: 2.5px;
  }

/* Styling for dropdown menu for selecting webpage version if we want to use this instead of default flyout menu */ 
  .version-dropdown {
    margin: 10px 0;
    text-align: center;
  }
  #version-selector {
    padding: 5px;
    font-size: 14px;
  }

/* KNOWN ISSUES ICONS */
.icon-rotate {
  color: #199bd6;
  margin-right: 0.4em;
  font-size: 1em;
}
.icon-bug {
  color: #f97316;
  margin-right: 0.4em;
  font-size: 1em;
}

/* TOOLTIPS */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #555;
    color: teal;
    font-weight: 500;
    line-height: inherit;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    max-width: 90vw;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    position: absolute;
    transition: opacity 0.2s;
    opacity: 0;
    z-index: 1000;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 12px;
    line-height: 1.2;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.tooltip:hover {
    color: rgb(0, 207, 207);
    border-bottom: 1px dotted #0056b3;
}
.tooltip-left .tooltiptext {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 5px;
}
.tooltip-right .tooltiptext {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 5px;
}
.tooltip-bottom .tooltiptext {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
}
.tooltip-top .tooltiptext {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}