/* Hide all subsections in the sidebar TOC */
.chapter li>ol {
    display: none !important;
}

/* Hide bullet markers for checkbox/task list items */
.content ul > li:has(input[type="checkbox"]) {
    list-style-type: none !important;
    margin-left: 0;
}

/* Alternative: target lists containing checkboxes */
.content ul:has(input[type="checkbox"]) > li {
    list-style-type: none !important;
}

/* Apple-style floating screenshot */
.content img {
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    transition: transform 0.15s ease-out;
}

.content img:hover {
    transform: translateY(-2px);
}

/* No rounded corners / shadow on images inside tables (avoids the rounded-card look on every cell of an image grid) */
.content table img {
    border-radius: 0;
    box-shadow: none;
}

.content table img:hover {
    transform: none;
}

/* Wrapped image anchors should not pick up underline / blue link styling */
.content a:has(> img) {
    text-decoration: none;
    color: inherit;
    background: none;
    display: inline-block;
}

/* Consistent list spacing - normalize loose and tight lists */
/* .content li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.content li>p {
    margin-top: 0;
    margin-bottom: 0.25em;
}

.content li>ul,
.content li>ol {
    margin-top: 0.25em;
} */

/* Collapsible beam recovery instructions in the Spectra guide. */
.beam-help {
    border: 2px solid #d94040;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 20px 0;
}

.beam-help > summary {
    color: #e54848;
    font-weight: bold;
    cursor: pointer;
}

.beam-help > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.beam-photo {
    margin: 16px 0;
}

.beam-photo-highlight {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.beam-photo-highlight img {
    display: block;
    width: 100%;
    height: auto;
}

.content .beam-photo-highlight img:hover {
    transform: none;
}

.find-beam-box {
    position: absolute;
    left: 10%;
    top: 52.8%;
    width: 4%;
    height: 2.5%;
    border: 3px solid #ff2020;
    box-sizing: border-box;
    pointer-events: none;
}
