/* Links */
a {
  color: #dbad6aFF;
}
a:hover {
  color: rgba(255, 217, 0, 0.9);
}


.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: #dbad6aFF !important;
}

.sidebar nav[role=doc-toc] ul>li>a.active, .sidebar nav[role=doc-toc] ul>li>ul>li>a.active {
  border-left: 1px solid #dbad6aFF;
  color: #dbad6aFF !important;
}


/* Collapsible content (shared) */
.collapsible {
  max-height: 0;                  /* collapsed by default */
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 5px;
}


/* -----------------------------------------
   Global link colors for Quarto website
   ----------------------------------------- */

:root {
  --link-color: gray;
  --link-color-hover: #c3924eff;  /* slightly darker, optional */
  --link-color-active: #b3803cff;
}

/* Normal links */
a,
a:link,
a:visited {
  color: var(--link-color) !important;
  text-decoration: none;
}

/* Hover */
a:hover {
  color: var(--link-color-hover) !important;
}

/* Active / focus */
a:active,
a:focus {
  color: var(--link-color-active) !important;
}

/* Sidebar links (Quarto sometimes overrides these) */
.sidebar a,
.sidebar a:link,
.sidebar a:visited {
  color: var(--link-color) !important;
}

.sidebar a:hover {
  color: var(--link-color-hover) !important;
}

/* Navbar links (Bootstrap override) */
.navbar a,
.navbar-nav .nav-link {
  color: var(--link-color) !important;
}

.navbar a:hover,
.navbar-nav .nav-link:hover {
  color: var(--link-color-hover) !important;
}



/* H5 “Detail” controller */
h4.anchored {
  cursor: pointer;
  background: linear-gradient(to right, #dbad1a30, rgba(255, 217, 0, 0.1));
  
  border: 2.5px solid transparent;   /* required for border-image */
  /* border-image: linear-gradient(to right, #dbad1aaa, rgba(255, 217, 0, 0.7)) 1; */
  border-image: linear-gradient(to right, rgba(210, 160, 0, 0.35), rgba(255, 217, 0, 0.2)) 1;
  color: black;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 2px;               /* no gap to the collapsible div */
  margin-top: 2px;               /* no gap to the collapsible div */
}

/* Hover effect */
h4.anchored:hover {
  background: linear-gradient(to right, #dbad6a22, rgba(255, 217, 0, 0.3));
}

/* H5 “Detail” controller */
h5.anchored.detail {
  cursor: pointer;
  /*background: linear-gradient(to right, #dbad6aaa, rgba(255, 217, 0, 0.7)); */
  color: black;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 0;               /* no gap to the collapsible div */
}

/* Hover effect */
h5.anchored.detail:hover {
  /*background: linear-gradient(to right, #dbad6a22, rgba(255, 217, 0, 0.3));*/
}

/* Arrow indicator on H5:
   - default = ▶ (closed)
   - when open = ▼
*/
h5.anchored.detail::before {
  content: "▶ ";
  font-size: 0.75em;
}

h5.anchored.detail.is-open::before {
  content: "▼ ";
  font-size: 0.75em;
}


/* Misc (your existing extras) */
.chart {
  width: 100vw;
  max-width: 100%;
  height: 400px;
  margin-left: auto;
  margin-right: auto;
}
input[type=range] {
  -webkit-appearance: none;
  width: 25%;
  height: 2.5px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}
input[type=range]:hover {
  background: #888;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #dbad6a;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #dbad6a;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Rigid alphabet matrix in sidebar */
.alphabet-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.alphabet-table td {
  width: 25%;                  /* 4 columns */
  padding: 2px;
}

/* Letter tiles */
.alphabet-table a {
  display: block;
  text-align: center;
  padding: 6px 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background-color: #ffffff;
  box-sizing: border-box;
}

/* Hover */
.alphabet-table a:hover {
  background-color: rgba(255, 217, 0, 0.1);
  text: black;
  font-weight: 600;
}
