/* Border only below the first inset card level. Keep existing card geometry,
   backgrounds and the 2px gap that forms the search heading divider. */
.my-expand:where(.search-result .my-expand) {
    border: 2px solid var(--gray-200);
}

/* Objective trees use sibling headings, explanations and content, rather
   than a wrapper per card. Only level 3 and deeper receive an outline. */
.first-level-accordion > .accordion-container > .product-group-items > .product-group-item-title ~ .accordion-content .product-group-item-title.accordion-toggler:where(.search-sub-group .search-sub-group > *) {
    border: 2px solid var(--gray-200);
}
.first-level-accordion > .accordion-container > .product-group-items > .product-group-item-title ~ .accordion-content .product-group-item-title.accordion-toggler:where(.search-sub-group .search-sub-group > .opened) {
    border-bottom: 0;
}
.explanatory-text:where(.search-sub-group .search-sub-group > .product-group-item-title + .clear + *) {
    display: block;
    border-inline: 2px solid var(--gray-200);
}
.product-group-item-content:where(.search-sub-group .search-sub-group > *) {
    border: 2px solid var(--gray-200);
    border-top: 0;
}
.explanatory-text:where(.search-sub-group .search-sub-group > .product-group-item-title:not(.opened) + .clear + *) {
    border-bottom: 2px solid var(--gray-200);
}
