/* User Provided Stylesheet */

/* Force headers to remain fully opaque */
h1,
h2,
h3,
h4,
h5,
h6 {
    opacity: 1 !important;
}

/* Fix the hidden anchor link (pilcrow ¶) issue causing the contrast scanner error.
   Since MyST doesn't use the `.headerlink` class, we target internal anchor links inside headers. */
h1 a[href^="#"],
h2 a[href^="#"],
h3 a[href^="#"],
h4 a[href^="#"],
h5 a[href^="#"],
h6 a[href^="#"] {
    visibility: hidden;
    opacity: 0 !important;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

h1:hover a[href^="#"],
h2:hover a[href^="#"],
h3:hover a[href^="#"],
h4:hover a[href^="#"],
h5:hover a[href^="#"],
h6:hover a[href^="#"],
h1 a[href^="#"]:focus,
h2 a[href^="#"]:focus,
h3 a[href^="#"]:focus,
h4 a[href^="#"]:focus,
h5 a[href^="#"]:focus,
h6 a[href^="#"]:focus {
    visibility: visible !important;
    opacity: 0.7 !important;
    /* Match MyST theme's default hover opacity */
}

/* Hide the anchor attached to the autogenerated References heading */
.myst-bibliography-header a[href^="#"] {
    visibility: hidden;
    opacity: 0 !important;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.myst-bibliography-header:hover a[href^="#"],
.myst-bibliography-header a[href^="#"]:focus {
    visibility: visible !important;
    opacity: 0.7 !important;
}

/* Autogenerated bibliography entry text */
.myst-bibliography li {
    color: #374151 !important;
    opacity: 1 !important;
}

/* Links inside bibliography entries */
.myst-bibliography li a {
    color: #005ea8 !important;
    opacity: 1 !important;
    text-decoration: underline;
}
