.dact-page-number,
.dact-section-number,
.question-label,
.exercise-label {
    color: var(--bs-primary);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

.dact-page-number,
.dact-section-number,
.exercise-label {
    scroll-margin-top: 5rem;
}

.exercise-heading > .header-section-number,
#TOC a:has(.exercise-label) > .header-section-number {
    display: none;
}

h3.exercise-heading {
    color: var(--bs-gray-700);
    font-size: 1.25rem;
}

.dact-copy-reference {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    color: var(--bs-secondary-color);
    display: inline-flex;
    font-size: 0.72em;
    justify-content: center;
    margin-left: 0.35rem;
    opacity: 0.45;
    padding: 0.15rem 0.25rem;
    vertical-align: middle;
}

.dact-copy-reference:hover,
.dact-copy-reference:focus-visible,
.dact-copy-reference.copied {
    background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
    color: var(--bs-primary);
    opacity: 1;
}

.dact-copy-reference:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

details.dact-scope {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.4rem;
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
}

details.dact-scope > summary {
    color: var(--bs-secondary-color);
    cursor: pointer;
    line-height: 1.4;
}

details.dact-scope[open] > summary {
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
}

details.dact-preview {
    background: color-mix(in srgb, var(--bs-primary) 4%, transparent);
}

details.dact-optional {
    background: color-mix(in srgb, var(--bs-secondary) 4%, transparent);
}

.callout[title^="Solution [-@"] .callout-title-container .quarto-xref {
    display: none;
}

@media print {
    .dact-copy-reference {
        display: none !important;
    }

    details.dact-scope {
        border: 0;
        padding: 0;
    }

    details.dact-scope > summary {
        font-weight: 700;
    }
}
