.bottom-of-page,
.bottom-of-page .left-details,
.bottom-of-page .right-details {
    display: none !important;
}

/* Add bottom padding for previous/next navigation buttons */
.related-pages {
    margin-bottom: 2rem !important;
}

/* Add bottom padding to main content area */
article[role="main"] {
    padding-bottom: 2rem !important;
}

/* Fade out yellow highlight on anchor link targets after 3 seconds */
/* Target only the heading elements that Furo highlights, not the entire section */
:target > h1:first-of-type,
:target > h2:first-of-type,
:target > h3:first-of-type,
:target > h4:first-of-type,
:target > h5:first-of-type,
:target > h6:first-of-type,
span:target ~ h1:first-of-type,
span:target ~ h2:first-of-type,
span:target ~ h3:first-of-type,
span:target ~ h4:first-of-type,
span:target ~ h5:first-of-type,
span:target ~ h6:first-of-type {
    animation: heading-highlight-fade 3s ease-out forwards;
}

@keyframes heading-highlight-fade {
    0% { background-color: var(--color-highlight-on-target, #fff59d); }
    100% { background-color: transparent; }
}

/* Fade out yellow highlight on property/method anchors (dt elements) */
dt:target {
    background-color: transparent !important;  /* Override Furo's !important rule */
    animation: dt-highlight-fade 3s ease-out forwards;
}

@keyframes dt-highlight-fade {
    0% { box-shadow: inset 0 0 0 9999px var(--color-highlight-on-target, #fff59d); }
    100% { box-shadow: inset 0 0 0 9999px transparent; }
}

@media (prefers-reduced-motion: reduce) {
    :target > h1:first-of-type,
    :target > h2:first-of-type,
    :target > h3:first-of-type,
    :target > h4:first-of-type,
    :target > h5:first-of-type,
    :target > h6:first-of-type,
    span:target ~ h1:first-of-type,
    span:target ~ h2:first-of-type,
    span:target ~ h3:first-of-type,
    span:target ~ h4:first-of-type,
    span:target ~ h5:first-of-type,
    span:target ~ h6:first-of-type,
    dt:target {
        animation: none;
        background-color: transparent !important;
        box-shadow: none;
    }
}
