/* Global Styles */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
}
main {
  margin-bottom: 3rem;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid black !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}
.forced-focus-visible {
  outline: 2px solid black !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}
input {
  border-color: #777 !important;
}
/* Color Variables */
:root {
  --primary-teal: #058d96;
  --primary-green: #00a450;
  --secondary-green: #52b448;
  --accent-green: #8ac341;
}
/* Heading */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial', sans-serif;
}
h3 {
  font-size: 1.6rem;
}
h4 {
  font-size: 1.35rem;
}
/* Style Overrides */
a {
  color: var(--primary-teal);
}
.text-left {
  text-align: left !important;
}

/* Sidebar Navigation */
/* Sidebar Navigation */
.reg-nav-link {
  font-weight: 400;
  padding-left: 5px;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: var(--accent-green);
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus,
#sidebar-toggle:hover,
#sidebar-toggle:focus {
  background-color: var(--accent-green);
  transition: .5ms;
}

#sidebar-container {
  box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.205);
  padding-top: 1.25rem;
  min-width: 265px;
  margin-left: -.75rem;
}
.border-top-sidebar {
  border-top: 1px solid #dee2e6!important
  
}

/* Hamburger Menu Icon */
.hamburger {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

/* Hamburger Menu Icon */
.hamburger-icon {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #000;
    margin: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transform hamburger into X when active */
.hamburger.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-icon:nth-child(2) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    transition: opacity 0.3s ease;
}


/* Hide sidebar by default on smaller screens */
#sidebar-nav {
    display: none;
}

/* Show sidebar when it's active */
#sidebar-nav.show {
    display: block;
}

/* Ensure hamburger menu only appears on smaller screens */
@media (min-width: 1100px) {
    .hamburger {
        display: none;
    }
    #sidebar-nav {
        display: block;
        position: sticky;
        top: 0;
        overflow-y: auto;
        max-height: 100vh;
    }
}

/* Apply styles for screens narrower than 1100px */
@media (max-width: 1099px) {
    .hamburger {
        display: block;
    }
    #sidebar-nav {
        display: none; /* Hide sidebar by default on smaller screens */
    }
    #sidebar-nav.show {
        display: block; /* Show sidebar when toggled */
        position: absolute;
        background-color: #fff;
        width: 320px;
        z-index: 9999;
    }
    #sidebar-container {
      border: none !important;
      box-shadow: none;
      width: 100%;
      position: relative;
    }
}




/* End mobile menu css */

header {
  border-bottom: 1px solid rgb(0 0 0 / 11%) !important;
  box-shadow: 1rem 0rem 1px rgba(0, 0, 0, 0.205) !important;
}
.row {
  margin-right: auto;
  margin-left: auto;
}
#structure-collapse > ul > li > a:hover > i {
  color: black !important;
}
@media (min-width: 1099px) {
  .col-md-3 {
      width: auto !important;
  }
}
@media (max-width: 1099px) {
  .col-md-9{
    width: 100% !important;
  }
}

/* Copy Button */
.copy-btn {
  background-color: var(--secondary-green);
}
.copy-btn:hover,
.copy-btn:focus {
  border: 1px solid black;
}
.copy-btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle hover effect */
}
  
/*** Layout Spacing ***/
h1, h2, h3, h4, h5 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.ml-1r {
  margin-left: 1rem;
}
.space-large{
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.space-medium{
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.space-small{
  padding-top: .25rem;
  padding-bottom: .25rem;
}

/* Accordion Overrides */
.accordion-item {
  border: none !important;
}
.accordion-button {
  border: #178387 solid !important;
}
.accordion-button:not(.collapsed) {
  color: #178387 !important;
  background-color: #fff !important;;
}
.accordion-button:focus {
  box-shadow: none !important;
}

/* Code */
.code-tag, code {
  font-weight: 600;
  color: #8B307F;
}

/* Tables */
.table {
  border-color: dimgrey;
}
#checklist td:empty {
  border: none;
}
.border-top {
  border-top: 1px solid dimgrey !important;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

/* Lists */
.list-unstyled {
  list-style-type: none;
}

/* Custom CSS for evenly spaced images */
.inline-flex-images {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
}
.inline-flex-images li {
  padding: 8px;
}

/* Example buttons */
.example-list-button {
  background-color: #178387;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-weight: 700;
  line-height: 1.25;
  padding: .75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  margin-bottom: .25rem;
}
.dev-tag {
  padding: 3px 8px;
  border: 3px solid var(--primary-teal);
  border-radius: 8px;
  color: rgba(0, 0, 0, .85);
  font-weight: 600;
  width: fit-content;
  display: flex;
}
.dev-tag svg {
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 4px;
}
p.dev-tag {
  font-size: 1.25rem;
}

/* Custom Checkboxes */
.custom-checkbox {
  display: inline-block;
  height: 24px;
  width: 24px;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.custom-checkbox span {
  position: absolute;
  top: 0;
  left: 5;
  height: 100%;
  width: 100%;
  background-color: transparent;
  border: 1px solid #000; /* Border color */
  pointer-events: none; /* Prevent span from blocking input */
}

.custom-checkbox input[type="checkbox"]:checked + span {
  background-color: transparent;
}

.custom-checkbox input[type="checkbox"]:checked + span:after {
  content: '\2713';
  position: absolute;
  color: green; /* Check mark color */
  font-size: 32px;
  left: 0px;
  top: -18px;
}

.custom-checkbox input[type="checkbox"]:focus + span {
  outline: 2px solid black; /* Focus indicator color */
  outline-offset: 2px; /* Adjust the offset as needed */
}

/* Fail Column: Red X with hex color and adjusted size */
.custom-checkbox input[type="checkbox"]:checked[name*="fail"] + span:after {
  content: '\2717'; /* Unicode for 'X' */
  position: absolute;
  color: #FF0000 !important; /* Hex color for red */
  font-size: 28px; /* Reduced size for a smaller X */
  left: 0px; /* Adjust left to center the X */
  top: -10px; /* Adjust top to center vertically */
}

/* Centering Checkboxes in Table Cells */
  .checkbox-td {
    text-align: center; /* Centers content horizontally */
    vertical-align: middle; /* Centers content vertically */
  }


/* Tables */
.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ddd; /* Adds border to each cell */
  padding: 8px; /* Adds padding inside each cell */
  text-align: left;
}

.styled-table thead {
  background-color: #f2f2f2; /* Adds a background color to the table header */
}

.styled-table th {
  font-weight: bold;
}

/* Zebra Stripes for Table Rows */
.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
/* Checklist Controls */
#confirmAlert {
  margin-top: .5rem;
}
.control-group{
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: end;
  flex-wrap: wrap;
}


/* Link vs Button Call out styles */
.heading-callout-container {
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  flex-wrap: wrap;
}
.btn-vs-link-parent {
  display: flex;
  flex-direction: column; 
}
.btn-vs-link-child {
  margin-left: auto;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
  border: 2px solid var(--accent-green);
  padding: 15px;
  background-color: #8ac24138;
}
.btn-vs-link-child h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}
.btn-vs-link-child small {
  font-size: .75em;
  font-family: system-ui;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/**************** Components ******************/
/* Navigation Examples */
.nav-example {
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  color: rgba(0, 0, 0, .85);
}
.navbar-toggler {
  border: 1px solid #888888 !important;
}
.page-link {
  border: 1px solid var(--primary-green);
  color: rgba(0, 0, 0, .85);
}

/* Buttons */
.button-active {
  outline: 1px solid #000;
  outline-offset: 2px;
  outline-style: auto;
}

/* Breadcrumb */
.breadcrumb li a {
  text-decoration: none !important;
}

/* Form Component */
.example-form-one {
  margin: 0px 10px;
  background-color: #DFDFDF;
  border: 1px solid #058d96;
  border-radius: .25rem;
  padding: 1rem;
}
.form-text {
  color: #212529;
}
.form-control:focus, .form-check-input:focus {
  outline: 1px solid black !important;
  outline-offset: 2px !important;
}

/* Images */
.example-img {
  max-width: 320px;
}

/* Tooltip */
.tooltip-container {
  position: relative; /* Sets the positioning context to the container */
}

#tooltiptext {
  visibility: hidden;
  background-color: black;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;

  /* Positioning and styling */
  position: absolute;
  z-index: 1000; /* Ensures the tooltip is on top */
  bottom: 100%; /* Positions the tooltip above the button */
  left: 20%; /* Centers the tooltip */
  transform: translateX(-50%); /* Precisely center align the tooltip */
  transition: visibility 0.5s;

  /* Adding some margin to separate it from the button */
  margin-bottom: 5px;
}
#tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* Arrow from bottom of tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent; /* Arrow color and orientation */
}

/* Tabs Component styles */
.tabs {
  width: 100%;
  font-family: "lucida grande", sans-serif;
}

[role="tablist"] {
  margin: 0 0 -0.1em;
  overflow: visible;
}

[role="tab"] {
  position: relative;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid hsl(219, 1%, 72%);
  border-radius: 0.2em 0.2em 0 0;
  box-shadow: 0 0 0.2em hsl(219, 1%, 72%);
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  background: hsl(220, 20%, 94%);
  cursor: pointer;
  font-weight: bold;
}

[role="tab"]:hover::before,
[role="tab"]:focus::before,
[role="tab"][aria-selected="true"]::before {
  position: absolute;
  bottom: 100%;
  right: -1px;
  left: -1px;
  border-radius: 0.2em 0.2em 0 0;
  border-top: 3px solid var(--primary-teal);;
  content: '';
}

[role="tab"][aria-selected="true"] {
  border-radius: 0;
  background: hsl(220, 43%, 99%);
  outline: 0;
}

[role="tab"][aria-selected="true"]:not(:focus):not(:hover)::before {
  border-top: 5px solid var(--primary-teal);;
}

[role="tab"][aria-selected="true"]::after {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 0.3em;
  background: hsl(220, 43%, 99%);
  box-shadow: none;
  content: '';
}

[role="tab"]:hover,
[role="tab"]:focus,
[role="tab"]:active {
  outline: 0;
  border-radius: 0;
  color: inherit;
}

[role="tab"]:hover::before,
[role="tab"]:focus::before {
  border-color: var(--primary-teal);;
}

[role="tabpanel"] {
  position: relative;
  z-index: 2;
  padding: 24px 16px;
  border: 1px solid hsl(219, 1%, 72%);
  border-radius: 0 0.2em 0.2em 0.2em;
  box-shadow: 0 0 0.2em hsl(219, 1%, 72%);
  background: hsl(220, 43%, 99%);
}

[role="tabpanel"] p {
  margin: 0;
}

[role="tabpanel"] * + p {
  margin-top: 1em;
}

/* Video Component */
.youtube-embed{
  width: 100%;
  margin: auto;
}
.custom-video {
  width: 100%;
  margin: auto;
}
.video-container{
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dialog Component Page */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1060;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background: rgba(0, 0, 0, 0.5); /* backdrop */
}

.modal-header, .modal-footer {
  border: none !important;
}
.modal-title {
  font-size: 2rem;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  margin: 10rem auto;
  max-width: 500px;
}

.modal-content {
  background-color: #fff;
  border-radius: 0.25rem;
  padding: 1rem;
  outline: none;
}

/* Homepage Card Components */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style-type: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.card-container li {
  flex: 1 1 30%;
  max-width: 300px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Updated box shadow */
}

.icon-image-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 10px;
}

.card-heading {
  font-size: 1.1rem;
  margin: 10px 0;
}

.card-text {
  font-size: 0.9rem;
  color: #666;
}

/* Media query for responsive design */
@media (max-width: 900px) {
  .card-container li {
      flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .card-container li {
      flex: 1 1 100%;
  }
}

/* Fancy Checklists */
.fancy-checklist {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
}

.fancy-checklist li {
  position: relative;
  padding-left: 30px; /* Adjust padding to make space for the icon */
  margin-bottom: 10px; /* Add some space between items */
}

.fancy-checklist li::before {
  content: "\2713"; /* Unicode for the checkmark symbol */
  position: absolute;
  left: 0;
  top: 10%;
  width: 20px;
  height: 20px;
  background-color: #8ac341;
  color: black;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  border-radius: 3px; /* Rounded square */
}

/* Styles for sublists */
.fancy-checklist ul {
  list-style: none; 
  padding-left: 20px;
  margin-top: 5px;
}

.fancy-checklist ul li {
  padding-left: 25px;
  margin-bottom: 5px; 
}

.fancy-checklist ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10%;
  width: 16px; 
  height: 16px;
  background-color: #8ac341;
  color: black;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
}
/* No fancy checkmarks */
.no-pseudo-elements > li::before,
.no-pseudo-elements > li::after {
    content: none !important;
}


/* Class for splitting a list into two columns */
.two-column-list {
  column-count: 2; /* Divide the list into two columns */
  column-gap: 20px; /* Space between the columns */
  padding-left: 0; /* Remove default padding */
}

.two-column-list li {
  margin-bottom: 10px; /* Space between list items */
}
/* Call Out Bar */
.call-out-bar {
  background-color: #058d9699;
  text-align: center;
  border-radius: 8px;
}

/* Reset columns for screens narrower than 600px */
@media (max-width: 599px) {
  .two-column-list {
    column-count: 1; /* Revert to a single column */
  }
}

/* Style for ordered lists with green background for numbers */
.styled-ol {
  list-style: none; /* Remove default list numbering */
  counter-reset: list-counter; /* Reset counter for custom numbering */
  padding-left: 0; /* Remove default padding */
}

.styled-ol li {
  position: relative; /* Position relative to place the custom number */
  background: #e8f5e9; /* Light green background for the list item */
  border-radius: 5px; /* Rounded corners for the list item background */
  padding-bottom: .75rem; /* Padding inside the list item */
  padding-left: 2rem; /* Space for the custom number */
}

/* Style for the custom number */
.styled-ol li::before {
  content: counter(list-counter) '. '; /* Custom numbering */
  counter-increment: list-counter; /* Increment the counter */
  position: absolute; /* Position absolute for placement */
  left: 0; /* Align to the left of the list item */
  top: 30%; /* Center vertically */
  transform: translateY(-50%); /* Center vertically */
  background: #8ac341; /* Green background for the number */
  color: #000; /* Black color for the number */
  width: 1.5rem; /* Width of the background */
  height: 1.5rem; /* Height of the background */
  border-radius: 50%; /* Round background to a circle */
  display: flex; /* Flexbox for centering text */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  font-weight: bold; /* Bold text */
}

/* Zoomable Images */
/* Container for the image */
.zoom-container {
    position: relative;
    display: inline-block;
}

/* Hide the default cursor */
.zoomable {
    cursor: none;
}

/* The large zoom cursor */
.zoom-cursor {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
    position: absolute;
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default */
}

/* Basic styles for results */
.result-item {
    margin: 10px 0;
}
.result-item a {
    font-size: 1.2em;
    font-weight: bold;
}
.result-item p {
    margin: 5px 0;
}

/* Header in reflow */
@media (max-width: 700px) {
  header.d-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  header img {
    margin-bottom: 1rem;
    max-width: 100%;
  }

  form.d-flex {
    width: 100%;
    justify-content: flex-start;
  }

  #search-input {
    flex-grow: 1;
    margin-right: 0.5rem;
  }

  button.btn {
    width: auto;
  }
}

/* Mark element search results page */
.mark, mark {
    padding: .1em;
    background-color: #b7b7b8;
    font-weight: 600;
}
/* Search Results Heading */
.search-h2 {
  font-size: 1.25rem;
}

.skip-link {
  position: absolute;
  top: -200px; /* Hidden off-screen */
  left: 0;
  padding: 8px;
  margin-left: 8px;
  background-color: #000;
  color: #fff;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease; /* Smooth transition */
}

.skip-link:focus {
  top: 75px; /* Visible when focused */
}

.skip-link:hover {
  color: var(--accent-green);
}

#main-content {
  scroll-behavior: smooth; /* Enable smooth scrolling */
}

/* Container Styling for Preformatted Code */
pre[class*="language-"] {
  background: #1e1f26; /* Soft dark navy */
  color: #f8f8f2;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.6;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

/* Prism-style syntax coloring */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
  font-style: italic;
}

.token.punctuation {
  color: #f8f8f2;
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #ff79c6; /* Pinkish-purple */
}

.token.boolean,
.token.number {
  color: #bd93f9; /* Purple */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #a6e22e; /* Light green */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: #f1fa8c; /* Yellow */
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #50fa7b; /* Mint green */
}

.token.function {
  color: #66d9ef; /* Aqua */
}

.token.regex,
.token.important {
  color: #fd971f; /* Orange */
}

.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}

/* Line Numbers (Optional if using plugin) */
pre[class*="language-"].line-numbers {
  padding-left: 3.8em;
  position: relative;
}

/* Accessibility Focus */
pre:focus-within {
  outline: 2px solid #8be9fd;
  outline-offset: 4px;
}

/* Style for the Copy to Clipboard button */
.copy-code-btn {
  width: 63px;
  height: 62px;
  background-color: #52b448; /* Bright green background */
  color: #000; /* Black text */
  border: none;
  border-radius: 8px; /* Rounded corners */
  font-family: Arial, sans-serif; /* Clean font for label */
  font-size: 14px; /* Readable label size */
  font-weight: bold; /* Emphasized label */
  display: flex;
  flex-direction: column; /* Stack icon and text vertically */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 8px; /* Spacing between button and code snippet */
  padding: 0;
  gap: 2px; /* Small spacing between icon and label */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-code-btn:hover {
  border: 1px solid black;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle hover effect */
}

.copy-code-btn svg {
  width: 24px; /* Fixed width */
  height: 24px; /* Fixed height */
  fill: #000; /* Black icon color */
  flex-shrink: 0; /* Prevent resizing within flex container */
}

pre {
  margin-top: 0; /* Remove any extra spacing if button is above */
}
/* Drag and Drop Pattern */
#draggable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#draggable-list li {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #777;
  background: #f9f9f9;
  cursor: grab;
  outline: none;
  transition: border 0.2s ease;
}

#draggable-list li:focus {
  border: 3px solid var(--primary-green);
}

#draggable-list li.dragging {
  background-color: #e0e0e0;
  font-weight: bold;
  cursor: grabbing;
}

#draggable-list li.dragover {
  border: 2px dashed #000;
}

.drag-icon {
  margin-right: 8px;
  display: inline-flex;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* HHMI Contrast Grid Styles */
.hhmi-contrast-grid {
  margin: 20px 0;
}

.hhmi-contrast-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.hhmi-contrast-table th, .hhmi-contrast-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

.hhmi-contrast-table th {
  background-color: #f4f4f4;
}

.hhmi-contrast-table td:nth-child(2) {
  width: 50px;
}

.hhmi-contrast-table td:nth-child(3) {
  font-weight: bold;
}

.hhmi-contrast-table td:nth-child(4) {
  font-weight: bold;
}

.hhmi-contrast-table td span {
  padding: 5px 10px;
  border-radius: 4px;
}

/* Slider with Input */
.form-label {
    font-weight: bold;
  }
  .range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -12px;
    font-size: 0.875rem;
    color: #333;
  }
  .slider-custom::-webkit-slider-thumb {
    background-color: #000000;
  }
  .slider-custom::-moz-range-thumb {
    background-color: #000000;
  }
  .slider-custom::-ms-thumb {
    background-color: #000000;
  }
  .slider-custom {
    background-color: #777777;
    opacity: 1;
    height: 6px;
  }
  .slider-custom::-webkit-slider-runnable-track {
    background-color: #777777;
    opacity: 1; /* Ensure full visibility */
    border-radius: 4px;
    height: 6px;
  }
  .slider-custom::-moz-range-track {
    background-color: #777777;
    opacity: 1;
    border-radius: 4px;
    height: 6px;
  }
  input[type="range"].slider-custom:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 6px; /* optional for rounder ends */
  }
  .visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .error-message {
    color: #b42318;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }

  /* Footer Component */
  .footer-example { 
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px;
    box-shadow: inset 0 .5em 1.5em #0000001a, inset 0 .125em .5em #00000026;
  }