:local(.link) :local(.headerText) {
    content: '';
    color: rgba(18, 12, 12, 0.862); /* Black text in normal mode */
    text-decoration: none;
    transition: text-decoration 0.3s; /* Smooth transition */
    font-weight: 600;
    margin-bottom: 10px;
}

:local(.header) {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(18, 12, 12, 0.862);
    font-weight: 550;
    margin-bottom: 10px;
    text-decoration: none;
  }


  :local(.copyIcon) {
    width: 12px;
    height: 12px;
    background-image: url('/img/copy.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-left: 4px;
    vertical-align: middle;
    cursor: pointer;
  }

  :local(.header:hover) :local(.copyIcon) {
    opacity: 1;
  }

  .copy-popup {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-transform-orange-600);
    color: var(--text-neutral-primary);
    padding: 10px;
    border-radius: 5px;
    z-index: 9999;
  }
  

:local(.toggle)::before {
    content: '';
    display: inline-block;
    border: solid black; /* Arrow color */
    border-width: 0 2px 2px 0; /* Adjust for 'boldness' */
    padding: 3px; /* Adjust size */
    transform: rotate(45deg); /* Initial right-pointing arrow */
    transition: transform 0.3s; /* Smooth transition for toggle icon */
    margin-right: 8px;
}

details[open] :local(.toggle)::before {
  transform: rotate(225deg); /* this rotates the chevron down */
}

:local(.toggleDown)::before {
    transform: rotate(225deg); /* Downward arrow */
}

:local(.toggleRight)::before {
    transform: rotate(315deg); /* Right-pointing arrow */
}

:local(.toggle)::before {
    border-color: rgb(253, 153, 83); /* Orange arrow color in light mode */
}

/* Adjusting for Light and Dark Modes */
:local(html[data-theme='dark'] .link), :local(html[data-theme='dark'] .headerText) {
    color: rgba(255, 255, 255, 0.696); /* White text in dark mode */
}

:local(html[data-theme='dark'] .toggle)::before {
    border-color: white; /* White arrow in dark mode */
    border-color: rgb(253, 153, 83);
}

:local(.copyPopup) {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  :local(.copyPopup.show) {
    opacity: 1;
  }

.expandableContainer :local(.body) {
    margin-top: 2px;
    margin-left: .5em;
    padding: 5px;
    background-color: transparent;
}

:local(html[data-theme='dark'] .link),
:local(html[data-theme='dark'] .headerText) {
    color: rgba(255, 255, 255, 0.801); /* White text in dark mode */
}

:local(html[data-theme='dark'] details .headerText) {
  color: rgba(255, 255, 255, 0.9); /* Change to white text in dark mode */
}

:local(.body > p:last-child) {
    margin-bottom: 0px;
    
}

:local(.link)::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('/img/copy.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0; /* Start with icon hidden */
    transition: opacity 0.3s ease-in-out;
    margin-left: 8px;
  }

  :local(.link:not(.toggleOpen)):hover::after {
    opacity: 1; /* Only show icon on hover when toggle is not open */
    }

.expandableContainer {
    margin-bottom: 5px; /* Adjust this value as needed to create space */
}

.headerText {
  display: flex;
  align-items: center;
}
